@@ -100,7 +100,7 @@ |
||
| 100 | 100 | |
| 101 | 101 | protected function useAsCallable($value): bool |
| 102 | 102 | { |
| 103 | - return ! is_string($value) && is_callable($value); |
|
| 103 | + return !is_string($value) && is_callable($value); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | public function __toString() |
@@ -36,13 +36,13 @@ |
||
| 36 | 36 | { |
| 37 | 37 | $message = $notification->toSms($notifiable); |
| 38 | 38 | $receiver = $this->resolveReceiver($notifiable, $notification); |
| 39 | - if (! $receiver) { |
|
| 39 | + if (!$receiver) { |
|
| 40 | 40 | return; |
| 41 | 41 | } |
| 42 | 42 | if (is_string($message)) { |
| 43 | 43 | $message = Message::text($message); |
| 44 | 44 | } |
| 45 | - if (! $message instanceof Message) { |
|
| 45 | + if (!$message instanceof Message) { |
|
| 46 | 46 | return; |
| 47 | 47 | } |
| 48 | 48 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function make(array $config) |
| 17 | 17 | { |
| 18 | - if (! isset($config['driver'])) { |
|
| 18 | + if (!isset($config['driver'])) { |
|
| 19 | 19 | throw new InvalidArgumentException('A driver must be specified.'); |
| 20 | 20 | } |
| 21 | 21 | $driver = $config['driver']; |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | |
| 30 | 30 | public function register() |
| 31 | 31 | { |
| 32 | - $this->app->singleton('sms', function (Application $app) { |
|
| 32 | + $this->app->singleton('sms', function(Application $app) { |
|
| 33 | 33 | return $app->make(SmsManager::class); |
| 34 | 34 | }); |
| 35 | - Notification::resolved(function (ChannelManager $service) { |
|
| 36 | - $service->extend('sms', function (Application $app) { |
|
| 35 | + Notification::resolved(function(ChannelManager $service) { |
|
| 36 | + $service->extend('sms', function(Application $app) { |
|
| 37 | 37 | return $app->make(SmsChannel::class); |
| 38 | 38 | }); |
| 39 | 39 | }); |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | foreach (explode('.', $key) as $segment) { |
| 48 | - if (! is_array($config) || ! array_key_exists($segment, $config)) { |
|
| 48 | + if (!is_array($config) || !array_key_exists($segment, $config)) { |
|
| 49 | 49 | return $default; |
| 50 | 50 | } |
| 51 | 51 | $config = $config[$segment]; |