Skip to content

Commit d3ff07d

Browse files
CS fixes
1 parent b029a1b commit d3ff07d

23 files changed

+109
-93
lines changed

src/Illuminate/Auth/EloquentUserProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ public function retrieveByToken($identifier, $token)
7474

7575
$rememberToken = $retrievedModel->getRememberToken();
7676

77-
return $rememberToken && hash_equals($rememberToken, $token)
78-
? $retrievedModel : null;
77+
return $rememberToken && hash_equals($rememberToken, $token) ? $retrievedModel : null;
7978
}
8079

8180
/**

src/Illuminate/Database/Eloquent/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,8 +1706,8 @@ public static function __callStatic($method, $parameters)
17061706
protected static function registerMixin($mixin, $replace)
17071707
{
17081708
$methods = (new ReflectionClass($mixin))->getMethods(
1709-
ReflectionMethod::IS_PUBLIC | ReflectionMethod::IS_PROTECTED
1710-
);
1709+
ReflectionMethod::IS_PUBLIC | ReflectionMethod::IS_PROTECTED
1710+
);
17111711

17121712
foreach ($methods as $method) {
17131713
if ($replace || ! static::hasGlobalMacro($method->name)) {

src/Illuminate/Foundation/Auth/EmailVerificationRequest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ class EmailVerificationRequest extends FormRequest
1414
*/
1515
public function authorize()
1616
{
17-
if (! hash_equals((string) $this->user()->getKey(),
18-
(string) $this->route('id'))) {
17+
if (! hash_equals((string) $this->user()->getKey(), (string) $this->route('id'))) {
1918
return false;
2019
}
2120

22-
if (! hash_equals(sha1($this->user()->getEmailForVerification()),
23-
(string) $this->route('hash'))) {
21+
if (! hash_equals(sha1($this->user()->getEmailForVerification()), (string) $this->route('hash'))) {
2422
return false;
2523
}
2624

src/Illuminate/Foundation/Console/ServeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected function serverCommand()
141141
*/
142142
protected function host()
143143
{
144-
[$host, ] = $this->getHostAndPort();
144+
[$host] = $this->getHostAndPort();
145145

146146
return $host;
147147
}

src/Illuminate/Queue/Console/ClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function handle()
4646
// connection being run for the queue operation currently being executed.
4747
$queueName = $this->getQueue($connection);
4848

49-
$queue = ($this->laravel['queue'])->connection($connection);
49+
$queue = $this->laravel['queue']->connection($connection);
5050

5151
if ($queue instanceof ClearableQueue) {
5252
$count = $queue->clear($queueName);

src/Illuminate/Queue/Console/WorkCommand.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,12 @@ public function handle()
111111
*/
112112
protected function runWorker($connection, $queue)
113113
{
114-
return $this->worker->setName($this->option('name'))
115-
->setCache($this->cache)
116-
->{$this->option('once') ? 'runNextJob' : 'daemon'}(
117-
$connection, $queue, $this->gatherWorkerOptions()
118-
);
114+
return $this->worker
115+
->setName($this->option('name'))
116+
->setCache($this->cache)
117+
->{$this->option('once') ? 'runNextJob' : 'daemon'}(
118+
$connection, $queue, $this->gatherWorkerOptions()
119+
);
119120
}
120121

121122
/**

src/Illuminate/Redis/Connectors/PhpRedisConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ protected function establishConnection($client, array $config)
150150
}
151151
}
152152

153-
$client->{($persistent ? 'pconnect' : 'connect')}(...$parameters);
153+
$client->{$persistent ? 'pconnect' : 'connect'}(...$parameters);
154154
}
155155

156156
/**

src/Illuminate/Support/Facades/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @method static \Illuminate\Cache\TaggedCache tags(array|mixed $names)
77
* @method static \Illuminate\Contracts\Cache\Lock lock(string $name, int $seconds = 0, mixed $owner = null)
88
* @method static \Illuminate\Contracts\Cache\Lock restoreLock(string $name, string $owner)
9-
* @method static \Illuminate\Contracts\Cache\Repository store(string|null $name = null)
9+
* @method static \Illuminate\Contracts\Cache\Repository store(string|null $name = null)
1010
* @method static \Illuminate\Contracts\Cache\Store getStore()
1111
* @method static bool add(string $key, $value, \DateTimeInterface|\DateInterval|int $ttl = null)
1212
* @method static bool flush()

src/Illuminate/Testing/PendingCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ protected function verifyExpectations()
324324
protected function mockConsoleOutput()
325325
{
326326
$mock = Mockery::mock(OutputStyle::class.'[askQuestion]', [
327-
(new ArrayInput($this->parameters)), $this->createABufferedOutputMock(),
327+
new ArrayInput($this->parameters), $this->createABufferedOutputMock(),
328328
]);
329329

330330
foreach ($this->test->expectedQuestions as $i => $question) {

src/Illuminate/Testing/TestComponent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function assertSee($value, $escape = true)
6161
*/
6262
public function assertSeeInOrder(array $values, $escape = true)
6363
{
64-
$values = $escape ? array_map('e', ($values)) : $values;
64+
$values = $escape ? array_map('e', $values) : $values;
6565

6666
PHPUnit::assertThat($values, new SeeInOrder($this->rendered));
6767

@@ -93,7 +93,7 @@ public function assertSeeText($value, $escape = true)
9393
*/
9494
public function assertSeeTextInOrder(array $values, $escape = true)
9595
{
96-
$values = $escape ? array_map('e', ($values)) : $values;
96+
$values = $escape ? array_map('e', $values) : $values;
9797

9898
PHPUnit::assertThat($values, new SeeInOrder(strip_tags($this->rendered)));
9999

0 commit comments

Comments
 (0)