@@ -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 | { |
@@ -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 | }); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | /** |
33 | 33 | * Create a new filesystem factory instance. |
34 | 34 | * |
35 | - * @param \IlGala\SMSFactor\Adapters\ConnectionFactory $adapter |
|
35 | + * @param AdapterFactory $adapter |
|
36 | 36 | * |
37 | 37 | * @return void |
38 | 38 | */ |
@@ -52,6 +52,9 @@ |
||
52 | 52 | return new SMSFactorFactory($adapter); |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param Mockery\MockInterface $manager |
|
57 | + */ |
|
55 | 58 | protected function getMockedFactory($config, $manager) |
56 | 59 | { |
57 | 60 | $adapter = Mockery::mock(ConnectionFactory::class); |