@@ -20,8 +20,9 @@ |
||
20 | 20 | $agentFileName = end($formattedClassName); |
21 | 21 | $agents = config("sms.agents"); |
22 | 22 | foreach ($agents as $key => $value) { |
23 | - if (strcmp($value['executableFile'], $agentFileName) == 0) |
|
24 | - return $key; |
|
23 | + if (strcmp($value['executableFile'], $agentFileName) == 0) { |
|
24 | + return $key; |
|
25 | + } |
|
25 | 26 | } |
26 | 27 | } |
27 | 28 | throw new \InvalidArgumentException("Unauthorized access."); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function register() |
35 | 35 | { |
36 | - $this->app->singleton('sms', function () { |
|
36 | + $this->app->singleton('sms', function() { |
|
37 | 37 | return new Manager($this->app); |
38 | 38 | }); |
39 | 39 | } |