| @@ -37,7 +37,7 @@ | ||
| 37 | 37 | * @param string $username | 
| 38 | 38 | * @param string $password | 
| 39 | 39 | * @param string $accept | 
| 40 | - * @param ClientInterface|null $client | |
| 40 | + * @param null|Browser $client | |
| 41 | 41 | */ | 
| 42 | 42 | public function __construct($username, $password, $accept, ClientInterface $client = null) | 
| 43 | 43 |      { | 
| @@ -42,6 +42,7 @@ discard block | ||
| 42 | 42 | |
| 43 | 43 | /** | 
| 44 | 44 | * @param AdapterInterface $adapter | 
| 45 | + * @param string $content_type | |
| 45 | 46 | */ | 
| 46 | 47 | public function __construct(AdapterInterface $adapter, $content_type, $endpoint = null) | 
| 47 | 48 |      { | 
| @@ -277,7 +278,7 @@ discard block | ||
| 277 | 278 | } | 
| 278 | 279 | |
| 279 | 280 | /** | 
| 280 | - * @return mixed | |
| 281 | + * @return string | |
| 281 | 282 | */ | 
| 282 | 283 | public function deliveryReport($params) | 
| 283 | 284 |      { | 
| @@ -297,8 +297,9 @@ | ||
| 297 | 297 | $time = gmmktime($parts[4], $parts[5], $parts[6], $parts[2], $parts[3], $parts[1]); | 
| 298 | 298 | |
| 299 | 299 | $input_time = strtotime($date); | 
| 300 | - if ($input_time === false) | |
| 301 | - return false; | |
| 300 | +            if ($input_time === false) { | |
| 301 | + return false; | |
| 302 | + } | |
| 302 | 303 | |
| 303 | 304 | return $input_time == $time; | 
| 304 | 305 |          } else { | 
| @@ -32,7 +32,7 @@ discard block | ||
| 32 | 32 | /** | 
| 33 | 33 | * Create a new filesystem factory instance. | 
| 34 | 34 | * | 
| 35 | - * @param \IlGala\LaravelSMSFactor\Adapters\ConnectionFactory $adapter | |
| 35 | + * @param AdapterFactory $adapter | |
| 36 | 36 | * | 
| 37 | 37 | * @return void | 
| 38 | 38 | */ | 
| @@ -57,7 +57,7 @@ discard block | ||
| 57 | 57 | /** | 
| 58 | 58 | * Establish an adapter connection. | 
| 59 | 59 | * | 
| 60 | - * @param array $config | |
| 60 | + * @param string[] $config | |
| 61 | 61 | * | 
| 62 | 62 | * @return \IlGala\LaravelSMSFactor\Adapters\AdapterInterface | 
| 63 | 63 | */ | 
| @@ -72,7 +72,7 @@ discard block | ||
| 72 | 72 | */ | 
| 73 | 73 | protected function registerAdapterFactory() | 
| 74 | 74 |      { | 
| 75 | -        $this->app->singleton('smsfactor.adapterfactory', function () { | |
| 75 | +        $this->app->singleton('smsfactor.adapterfactory', function() { | |
| 76 | 76 | return new AdapterFactory(); | 
| 77 | 77 | }); | 
| 78 | 78 |          $this->app->alias('smsfactor.adapterfactory', AdapterFactory::class); | 
| @@ -85,7 +85,7 @@ discard block | ||
| 85 | 85 | */ | 
| 86 | 86 | protected function registerDigitalOceanFactory() | 
| 87 | 87 |      { | 
| 88 | -        $this->app->singleton('smsfactor.factory', function (Container $app) { | |
| 88 | +        $this->app->singleton('smsfactor.factory', function(Container $app) { | |
| 89 | 89 | $adapter = $app['smsfactor.adapterfactory']; | 
| 90 | 90 | return new SMSFactorFactory($adapter); | 
| 91 | 91 | }); | 
| @@ -99,7 +99,7 @@ discard block | ||
| 99 | 99 | */ | 
| 100 | 100 | protected function registerManager() | 
| 101 | 101 |      { | 
| 102 | -        $this->app->singleton('smsfactor', function (Container $app) { | |
| 102 | +        $this->app->singleton('smsfactor', function(Container $app) { | |
| 103 | 103 | $config = $app['config']; | 
| 104 | 104 | $factory = $app['smsfactor.factory']; | 
| 105 | 105 | return new SMSFactorManager($config, $factory); | 
| @@ -114,7 +114,7 @@ discard block | ||
| 114 | 114 | */ | 
| 115 | 115 | protected function registerBindings() | 
| 116 | 116 |      { | 
| 117 | -        $this->app->bind('smsfactor.connection', function (Container $app) { | |
| 117 | +        $this->app->bind('smsfactor.connection', function(Container $app) { | |
| 118 | 118 | $manager = $app['smsfactor']; | 
| 119 | 119 | return $manager->connection(); | 
| 120 | 120 | }); |