Skip to content

Commit 8dff6bb

Browse files
authored
Fix typos in documentation and code comments (#1733)
- Fixed 'seperate' to 'separate' in README.md (2 occurrences) - Fixed 'columname' to 'columnname' in README.md (2 occurrences) - Fixed 'Wether' to 'Whether' in src/Method.php PHPDoc comments (2 occurrences)
1 parent 53854ea commit 8dff6bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ php artisan ide-helper:models -RW
5151

5252
If you don't want the full _ide_helper.php file, you can run add `--write-eloquent-helper` to the model command to generate small version, which is required for the `@mixin \Eloquent` to be able to add the QueryBuilder methods.
5353

54-
If you don't want to add all the phpdocs to your Models directly, you can use `--nowrite` to create a seperate file. The `--write-mixin` option can be used to only add a `@mixin` to your models, but add the generated phpdocs in a seperate file. This avoids having the results marked as duplicate.
54+
If you don't want to add all the phpdocs to your Models directly, you can use `--nowrite` to create a separate file. The `--write-mixin` option can be used to only add a `@mixin` to your models, but add the generated phpdocs in a separate file. This avoids having the results marked as duplicate.
5555

5656

5757
_Check out [this Laracasts video](https://laracasts.com/series/how-to-be-awesome-in-phpstorm/episodes/15) for a quick introduction/explanation!_
@@ -212,7 +212,7 @@ If for some reason it's undesired to have them generated (one for each column),
212212

213213
#### Magic `*_count` and `*_exists` properties
214214

215-
You may use the [`::withCount`](https://laravel.com/docs/master/eloquent-relationships#counting-related-models) and [`::withExists`](https://laravel.com/docs/master/eloquent-relationships#other-aggregate-functions) methods to count the number results from a relationship without actually loading them. Those results are then placed in attributes following the `<columname>_count` and `<columname>_exists` convention.
215+
You may use the [`::withCount`](https://laravel.com/docs/master/eloquent-relationships#counting-related-models) and [`::withExists`](https://laravel.com/docs/master/eloquent-relationships#other-aggregate-functions) methods to count the number results from a relationship without actually loading them. Those results are then placed in attributes following the `<columnname>_count` and `<columnname>_exists` convention.
216216

217217
By default, these attributes are generated in the phpdoc. You can turn them off by setting the config `write_model_relation_count_properties` and `write_model_relation_exists_properties` to `false`.
218218

src/Method.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function getRealName()
178178
/**
179179
* Get the parameters for this method
180180
*
181-
* @param bool $implode Wether to implode the array or not
181+
* @param bool $implode Whether to implode the array or not
182182
* @return string
183183
*/
184184
public function getParams($implode = true)
@@ -208,7 +208,7 @@ public function getReturnTag($phpdoc = null)
208208
/**
209209
* Get the parameters for this method including default values
210210
*
211-
* @param bool $implode Wether to implode the array or not
211+
* @param bool $implode Whether to implode the array or not
212212
* @return string
213213
*/
214214
public function getParamsWithDefault($implode = true)

0 commit comments

Comments
 (0)