Skip to content

Commit

Permalink
[8.x] Fixed typos and formatting (#36979)
Browse files Browse the repository at this point in the history
* Typo & Format

* Update HasAttributes.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
rochdiNassah and taylorotwell committed Apr 14, 2021
1 parent dbc1a19 commit a106b93
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Collections/Traits/EnumeratesValues.php
Expand Up @@ -730,7 +730,7 @@ public function tap(callable $callback)
* Reduce the collection to a single value.
*
* @param callable $callback
* @param mixed $initial
* @param mixed $initial
* @return mixed
*/
public function reduce(callable $callback, $initial = null)
Expand All @@ -748,7 +748,7 @@ public function reduce(callable $callback, $initial = null)
* Reduce an associative collection to a single value.
*
* @param callable $callback
* @param mixed $initial
* @param mixed $initial
* @return mixed
*/
public function reduceWithKeys(callable $callback, $initial = null)
Expand Down
Expand Up @@ -695,7 +695,7 @@ public function setAttribute($key, $value)
{
// First we will check for the presence of a mutator for the set operation
// which simply lets the developers tweak the attribute as it is set on
// the model, such as "json_encoding" an listing of data for storage.
// this model, such as "json_encoding" a listing of data for storage.
if ($this->hasSetMutator($key)) {
return $this->setMutatedAttributeValue($key, $value);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Events/MigrationEvent.php
Expand Up @@ -8,7 +8,7 @@
abstract class MigrationEvent implements MigrationEventContract
{
/**
* An migration instance.
* A migration instance.
*
* @var \Illuminate\Database\Migrations\Migration
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Schema/Grammars/Grammar.php
Expand Up @@ -31,7 +31,7 @@ abstract class Grammar extends BaseGrammar
/**
* Compile a create database command.
*
* @param string $name
* @param string $name
* @param \Illuminate\Database\Connection $connection
* @return string
*/
Expand All @@ -43,7 +43,7 @@ public function compileCreateDatabase($name, $connection)
/**
* Compile a drop database if exists command.
*
* @param string $name
* @param string $name
* @return string
*/
public function compileDropDatabaseIfExists($name)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php
Expand Up @@ -29,7 +29,7 @@ class MySqlGrammar extends Grammar
/**
* Compile a create database command.
*
* @param string $name
* @param string $name
* @param \Illuminate\Database\Connection $connection
* @return string
*/
Expand All @@ -46,7 +46,7 @@ public function compileCreateDatabase($name, $connection)
/**
* Compile a drop database if exists command.
*
* @param string $name
* @param string $name
* @return string
*/
public function compileDropDatabaseIfExists($name)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php
Expand Up @@ -38,7 +38,7 @@ class PostgresGrammar extends Grammar
/**
* Compile a create database command.
*
* @param string $name
* @param string $name
* @param \Illuminate\Database\Connection $connection
* @return string
*/
Expand All @@ -54,7 +54,7 @@ public function compileCreateDatabase($name, $connection)
/**
* Compile a drop database if exists command.
*
* @param string $name
* @param string $name
* @return string
*/
public function compileDropDatabaseIfExists($name)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php
Expand Up @@ -31,7 +31,7 @@ class SqlServerGrammar extends Grammar
/**
* Compile a create database command.
*
* @param string $name
* @param string $name
* @param \Illuminate\Database\Connection $connection
* @return string
*/
Expand All @@ -46,7 +46,7 @@ public function compileCreateDatabase($name, $connection)
/**
* Compile a drop database if exists command.
*
* @param string $name
* @param string $name
* @return string
*/
public function compileDropDatabaseIfExists($name)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Schema/MySqlBuilder.php
Expand Up @@ -7,7 +7,7 @@ class MySqlBuilder extends Builder
/**
* Create a database in the schema.
*
* @param string $name
* @param string $name
* @return bool
*/
public function createDatabase($name)
Expand All @@ -20,7 +20,7 @@ public function createDatabase($name)
/**
* Drop a database from the schema if the database exists.
*
* @param string $name
* @param string $name
* @return bool
*/
public function dropDatabaseIfExists($name)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Schema/PostgresBuilder.php
Expand Up @@ -7,7 +7,7 @@ class PostgresBuilder extends Builder
/**
* Create a database in the schema.
*
* @param string $name
* @param string $name
* @return bool
*/
public function createDatabase($name)
Expand All @@ -20,7 +20,7 @@ public function createDatabase($name)
/**
* Drop a database from the schema if the database exists.
*
* @param string $name
* @param string $name
* @return bool
*/
public function dropDatabaseIfExists($name)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Schema/SQLiteBuilder.php
Expand Up @@ -9,7 +9,7 @@ class SQLiteBuilder extends Builder
/**
* Create a database in the schema.
*
* @param string $name
* @param string $name
* @return bool
*/
public function createDatabase($name)
Expand All @@ -20,7 +20,7 @@ public function createDatabase($name)
/**
* Drop a database from the schema if the database exists.
*
* @param string $name
* @param string $name
* @return bool
*/
public function dropDatabaseIfExists($name)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Schema/SqlServerBuilder.php
Expand Up @@ -7,7 +7,7 @@ class SqlServerBuilder extends Builder
/**
* Create a database in the schema.
*
* @param string $name
* @param string $name
* @return bool
*/
public function createDatabase($name)
Expand All @@ -20,7 +20,7 @@ public function createDatabase($name)
/**
* Drop a database from the schema if the database exists.
*
* @param string $name
* @param string $name
* @return bool
*/
public function dropDatabaseIfExists($name)
Expand Down
6 changes: 3 additions & 3 deletions src/Illuminate/Support/Str.php
Expand Up @@ -573,9 +573,9 @@ public static function replaceLast($search, $replace, $subject)
/**
* Remove any occurrence of the given string in the subject.
*
* @param string|array<string> $search
* @param string $subject
* @param bool $caseSensitive
* @param string|array<string> $search
* @param string $subject
* @param bool $caseSensitive
* @return string
*/
public static function remove($search, $subject, $caseSensitive = true)
Expand Down
6 changes: 3 additions & 3 deletions src/Illuminate/Support/Stringable.php
Expand Up @@ -426,7 +426,7 @@ public function parseCallback($default = null)
/**
* Call the given callback and return a new string.
*
* @param callable $callback
* @param callable $callback
* @return static
*/
public function pipe(callable $callback)
Expand Down Expand Up @@ -470,8 +470,8 @@ public function prepend(...$values)
/**
* Remove any occurrence of the given string in the subject.
*
* @param string|array<string> $search
* @param bool $caseSensitive
* @param string|array<string> $search
* @param bool $caseSensitive
* @return static
*/
public function remove($search, $caseSensitive = true)
Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Testing/Concerns/TestDatabases.php
Expand Up @@ -107,8 +107,8 @@ protected function ensureSchemaIsUpToDate()
/**
* Runs the given callable using the given database.
*
* @param string $database
* @param callable $callable
* @param string $database
* @param callable $callable
* @return void
*/
protected function usingDatabase($database, $callable)
Expand All @@ -126,7 +126,7 @@ protected function usingDatabase($database, $callable)
/**
* Apply the given callback when tests are not using in memory database.
*
* @param callable $callback
* @param callable $callback
* @return void
*/
protected function whenNotUsingInMemoryDatabase($callback)
Expand All @@ -141,7 +141,7 @@ protected function whenNotUsingInMemoryDatabase($callback)
/**
* Switch to the given database.
*
* @param string $database
* @param string $database
* @return void
*/
protected function switchToDatabase($database)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Testing/ParallelRunner.php
Expand Up @@ -106,7 +106,7 @@ public function getExitCode(): int
/**
* Apply the given callback for each process.
*
* @param callable $callback
* @param callable $callback
* @return void
*/
protected function forEachProcess($callback)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Testing/ParallelTesting.php
Expand Up @@ -238,7 +238,7 @@ public function callTearDownTestCaseCallbacks($testCase)
}

/**
* Get an parallel testing option.
* Get a parallel testing option.
*
* @param string $option
* @return mixed
Expand Down Expand Up @@ -269,7 +269,7 @@ public function token()
/**
* Apply the callback if tests are running in parallel.
*
* @param callable $callback
* @param callable $callback
* @return void
*/
protected function whenRunningInParallel($callback)
Expand Down
6 changes: 3 additions & 3 deletions tests/Queue/QueueBeanstalkdQueueTest.php
Expand Up @@ -112,9 +112,9 @@ public function testDeleteProperlyRemoveJobsOffBeanstalkd()
}

/**
* @param string $default
* @param int $timeToRun
* @param int $blockFor
* @param string $default
* @param int $timeToRun
* @param int $blockFor
*/
private function setQueue($default, $timeToRun, $blockFor = 0)
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Validation/ValidationValidatorTest.php
Expand Up @@ -1998,9 +1998,9 @@ public function testValidateMax()
}

/**
* @param mixed $input
* @param mixed $allowed
* @param bool $passes
* @param mixed $input
* @param mixed $allowed
* @param bool $passes
*
* @dataProvider multipleOfDataProvider
*/
Expand Down

0 comments on commit a106b93

Please sign in to comment.