Skip to content

Commit 60c5fc7

Browse files
authored
[9.x] Use "number" rather than "amount" when discussing items that can be counted (#41453)
* Use "number" rather than "amount" when discussing items that can be counted * Correct grammar
1 parent a075753 commit 60c5fc7

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

src/Illuminate/Contracts/Queue/Monitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface Monitor
1313
public function looping($callback);
1414

1515
/**
16-
* Register a callback to be executed when a job fails after the maximum amount of retries.
16+
* Register a callback to be executed when a job fails after the maximum number of retries.
1717
*
1818
* @param mixed $callback
1919
* @return void

src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getRan()
5454
}
5555

5656
/**
57-
* Get list of migrations.
57+
* Get the list of migrations.
5858
*
5959
* @param int $steps
6060
* @return array

src/Illuminate/Database/Query/Grammars/Grammar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ protected function compileJoins(Builder $query, $joins)
190190
*/
191191
public function compileWheres(Builder $query)
192192
{
193-
// Each type of where clauses has its own compiler function which is responsible
193+
// Each type of where clause has its own compiler function, which is responsible
194194
// for actually creating the where clauses SQL. This helps keep the code nice
195195
// and maintainable since each clause has a very small method that it uses.
196196
if (is_null($query->wheres)) {
@@ -973,7 +973,7 @@ public function compileInsert(Builder $query, array $values)
973973
$columns = $this->columnize(array_keys(reset($values)));
974974

975975
// We need to build a list of parameter place-holders of values that are bound
976-
// to the query. Each insert should have the exact same amount of parameter
976+
// to the query. Each insert should have the exact same number of parameter
977977
// bindings so we will loop through the record and parameterize them all.
978978
$parameters = collect($values)->map(function ($record) {
979979
return '('.$this->parameterize($record).')';

src/Illuminate/Foundation/Console/ServeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ protected function getHostAndPort()
191191
}
192192

193193
/**
194-
* Check if the command has reached its max amount of port tries.
194+
* Check if the command has reached its maximum number of port tries.
195195
*
196196
* @return bool
197197
*/

src/Illuminate/Pagination/UrlWindow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected function getUrlSlider($onEachSide)
100100
}
101101

102102
/**
103-
* Get the slider of URLs when too close to beginning of window.
103+
* Get the slider of URLs when too close to the beginning of the window.
104104
*
105105
* @param int $window
106106
* @param int $onEachSide
@@ -116,7 +116,7 @@ protected function getSliderTooCloseToBeginning($window, $onEachSide)
116116
}
117117

118118
/**
119-
* Get the slider of URLs when too close to ending of window.
119+
* Get the slider of URLs when too close to the ending of the window.
120120
*
121121
* @param int $window
122122
* @param int $onEachSide

src/Illuminate/Queue/Listener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Listener
3030
protected $sleep = 3;
3131

3232
/**
33-
* The amount of times to try a job before logging it failed.
33+
* The number of times to try a job before logging it failed.
3434
*
3535
* @var int
3636
*/

src/Illuminate/Queue/WorkerOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class WorkerOptions
4747
public $rest;
4848

4949
/**
50-
* The maximum amount of times a job may be attempted.
50+
* The maximum number of times a job may be attempted.
5151
*
5252
* @var int
5353
*/

src/Illuminate/Support/DateFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function __call($method, $parameters)
211211

212212
$dateClass = static::$dateClass ?: $defaultClassName;
213213

214-
// Check if date can be created using public class method...
214+
// Check if the date can be created using the public class method...
215215
if (method_exists($dateClass, $method) ||
216216
method_exists($dateClass, 'hasMacro') && $dateClass::hasMacro($method)) {
217217
return $dateClass::$method(...$parameters);

src/Illuminate/View/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function render(callable $callback = null)
112112
*/
113113
protected function renderContents()
114114
{
115-
// We will keep track of the amount of views being rendered so we can flush
115+
// We will keep track of the number of views being rendered so we can flush
116116
// the section after the complete rendering operation is done. This will
117117
// clear out the sections for any separate views that may be rendered.
118118
$this->factory->incrementRender();

0 commit comments

Comments
 (0)