Skip to content

Commit a37b40b

Browse files
authored
Remove a few useless return void statements. (#53225)
1 parent d2895c7 commit a37b40b

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

src/Illuminate/Database/Schema/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static function defaultMorphKeyType(string $type)
9595
*/
9696
public static function morphUsingUuids()
9797
{
98-
return static::defaultMorphKeyType('uuid');
98+
static::defaultMorphKeyType('uuid');
9999
}
100100

101101
/**
@@ -105,7 +105,7 @@ public static function morphUsingUuids()
105105
*/
106106
public static function morphUsingUlids()
107107
{
108-
return static::defaultMorphKeyType('ulid');
108+
static::defaultMorphKeyType('ulid');
109109
}
110110

111111
/**

src/Illuminate/Pipeline/Hub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(?Container $container = null)
4141
*/
4242
public function defaults(Closure $callback)
4343
{
44-
return $this->pipeline('default', $callback);
44+
$this->pipeline('default', $callback);
4545
}
4646

4747
/**

src/Illuminate/Queue/QueueManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ protected function getConnector($driver)
190190
*/
191191
public function extend($driver, Closure $resolver)
192192
{
193-
return $this->addConnector($driver, $resolver);
193+
$this->addConnector($driver, $resolver);
194194
}
195195

196196
/**

src/Illuminate/Redis/Connections/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function client()
8787
*/
8888
public function subscribe($channels, Closure $callback)
8989
{
90-
return $this->createSubscription($channels, $callback, __FUNCTION__);
90+
$this->createSubscription($channels, $callback, __FUNCTION__);
9191
}
9292

9393
/**
@@ -99,7 +99,7 @@ public function subscribe($channels, Closure $callback)
9999
*/
100100
public function psubscribe($channels, Closure $callback)
101101
{
102-
return $this->createSubscription($channels, $callback, __FUNCTION__);
102+
$this->createSubscription($channels, $callback, __FUNCTION__);
103103
}
104104

105105
/**

src/Illuminate/Support/Facades/Queue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class Queue extends Facade
6868
*/
6969
public static function popUsing($workerName, $callback)
7070
{
71-
return Worker::popUsing($workerName, $callback);
71+
Worker::popUsing($workerName, $callback);
7272
}
7373

7474
/**

src/Illuminate/Support/Lottery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public static function alwaysLose($callback = null)
211211
*/
212212
public static function fix($sequence, $whenMissing = null)
213213
{
214-
return static::forceResultWithSequence($sequence, $whenMissing);
214+
static::forceResultWithSequence($sequence, $whenMissing);
215215
}
216216

217217
/**
@@ -255,7 +255,7 @@ public static function forceResultWithSequence($sequence, $whenMissing = null)
255255
*/
256256
public static function determineResultsNormally()
257257
{
258-
return static::determineResultNormally();
258+
static::determineResultNormally();
259259
}
260260

261261
/**

src/Illuminate/Support/Sleep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ public static function assertSequence($sequence)
461461
*/
462462
public static function assertNeverSlept()
463463
{
464-
return static::assertSleptTimes(0);
464+
static::assertSleptTimes(0);
465465
}
466466

467467
/**

src/Illuminate/Support/Testing/Fakes/MailFake.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public function send($view, array $data = [], $callback = null)
488488
*/
489489
public function sendNow($mailable, array $data = [], $callback = null)
490490
{
491-
return $this->sendMail($mailable, shouldQueue: false);
491+
$this->sendMail($mailable, shouldQueue: false);
492492
}
493493

494494
/**

src/Illuminate/Support/Testing/Fakes/NotificationFake.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function assertSentTo($notifiable, $notification, $callback = null)
101101
*/
102102
public function assertSentOnDemandTimes($notification, $times = 1)
103103
{
104-
return $this->assertSentToTimes(new AnonymousNotifiable, $notification, $times);
104+
$this->assertSentToTimes(new AnonymousNotifiable, $notification, $times);
105105
}
106106

107107
/**

0 commit comments

Comments
 (0)