Passed
Branch master (12bf02)
by Andrey
04:22 queued 28s
created
src/NovaPoshta.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function getApi()
33 33
     {
34
-        if (! $this->api) {
34
+        if (!$this->api) {
35 35
             $this->api = config('novaposhta.api_key');
36 36
         }
37 37
 
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
         }
89 89
 
90 90
         $answer = $response->json();
91
-        if (! $auth && isset($answer[0])) {
91
+        if (!$auth && isset($answer[0])) {
92 92
             //костыль для НовойПочты. Спасибо Вам большое :)
93 93
             $answer = $answer[0];
94 94
         }
95 95
 
96
-        if (! isset($answer['success']) || ! isset($answer['data']) || empty($answer['data'])) {
96
+        if (!isset($answer['success']) || !isset($answer['data']) || empty($answer['data'])) {
97 97
             // что-то не так в ответе
98 98
             $info = trans('novaposhta::novaposhta.error_answer');
99 99
             $success = false;
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             $info = $answer['warnings'];
118 118
         }
119 119
 
120
-        if (! $info) {
120
+        if (!$info) {
121 121
             $info = $answer['info'];
122 122
         }
123 123
 
Please login to merge, or discard this patch.