@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | /* |
| 64 | 64 | * |
| 65 | 65 | */ |
| 66 | - private function cmdGetData($file,$timeout,$digitsCount) |
|
| 66 | + private function cmdGetData($file, $timeout, $digitsCount) |
|
| 67 | 67 | { |
| 68 | 68 | $this->addCommand("GetData('$file',$timeout,$digitsCount)"); |
| 69 | 69 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | /* |
| 96 | 96 | * |
| 97 | 97 | */ |
| 98 | - private function cmdSayDate($date,$calender) |
|
| 98 | + private function cmdSayDate($date, $calender) |
|
| 99 | 99 | { |
| 100 | 100 | $this->addCommand("SayDate('$date','$calender')"); |
| 101 | 101 | } |
@@ -16,12 +16,14 @@ |
||
| 16 | 16 | $appName = $apiData['app_name']; |
| 17 | 17 | $apiMethodsRepositoryClassPath = config("simotel.smartApi.methodsRepositoryClass"); |
| 18 | 18 | $apiMethodsRepository = new $apiMethodsRepositoryClassPath; |
| 19 | - if (!method_exists($apiMethodsRepository, $appName)) |
|
| 20 | - return false; |
|
| 19 | + if (!method_exists($apiMethodsRepository, $appName)) { |
|
| 20 | + return false; |
|
| 21 | + } |
|
| 21 | 22 | |
| 22 | 23 | $apiResponse = $apiMethodsRepository->$appName($apiData); |
| 23 | - if (!is_array($apiResponse)) |
|
| 24 | - return false; |
|
| 24 | + if (!is_array($apiResponse)) { |
|
| 25 | + return false; |
|
| 26 | + } |
|
| 25 | 27 | |
| 26 | 28 | return $apiResponse; |
| 27 | 29 | |
@@ -20,8 +20,9 @@ |
||
| 20 | 20 | $response = Http::withBasicAuth($user, $pass)->post($endpoint); |
| 21 | 21 | $res = $response->json(); |
| 22 | 22 | $this->message = $res["message"]; |
| 23 | - if ($res["ok"] == 1) |
|
| 24 | - return true; |
|
| 23 | + if ($res["ok"] == 1) { |
|
| 24 | + return true; |
|
| 25 | + } |
|
| 25 | 26 | return false; |
| 26 | 27 | |
| 27 | 28 | } catch (\Exception $e) { |
@@ -23,6 +23,6 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function boot() |
| 25 | 25 | { |
| 26 | - $this->publishes([__DIR__ . '/../config/simotel.php' => config_path('simotel.php'),], 'config'); |
|
| 26 | + $this->publishes([__DIR__ . '/../config/simotel.php' => config_path('simotel.php'), ], 'config'); |
|
| 27 | 27 | } |
| 28 | 28 | } |