Passed
Push — master ( dcfae2...8ba7ec )
by Hossein
01:17
created
src/SmartApiCommands.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/SmartApi.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,12 +16,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/SimotelApi.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,9 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/SimotelApiServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.