Passed
Push — master ( 59622b...014342 )
by Andrey
03:48
created
src/Models/TrackingDocument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         $answer = $this->checkTTN($ttns, $phone);
67 67
         $statuses = [];
68 68
 
69
-        if ($answer['success'] && ! empty($answer['result'])) {
69
+        if ($answer['success'] && !empty($answer['result'])) {
70 70
             foreach ($answer['result'] as $key => $status) {
71 71
                 $statuses[$key]['Number'] = $status['Number'];
72 72
                 $statuses[$key]['StatusCode'] = $status['StatusCode'];
Please login to merge, or discard this patch.
src/NovaPoshtaServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         $this->mergeConfigFrom(__DIR__.'/../config/novaposhta.php', 'novaposhta');
35 35
 
36
-        $this->app->singleton('novaposhta', function () {
36
+        $this->app->singleton('novaposhta', function() {
37 37
             return $this->app->make(NovaPoshta::class);
38 38
         });
39 39
 
Please login to merge, or discard this patch.
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
 
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
         }
90 90
 
91 91
         $answer = $response->json();
92
-        if (! $auth && isset($answer[0])) {
92
+        if (!$auth && isset($answer[0])) {
93 93
             //костыль для НовойПочты. Спасибо Вам большое :)
94 94
             $answer = $answer[0];
95 95
         }
96 96
 
97
-        if (! isset($answer['success']) || ! isset($answer['data']) || empty($answer['data'])) {
97
+        if (!isset($answer['success']) || !isset($answer['data']) || empty($answer['data'])) {
98 98
             // что-то не так в ответе
99 99
             $info = trans('novaposhta::novaposhta.error_answer');
100 100
             $success = false;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             }
121 121
         }
122 122
 
123
-        if (! $info && isset($answer['info'])) {
123
+        if (!$info && isset($answer['info'])) {
124 124
             $info = $answer['info'];
125 125
         }
126 126
 
Please login to merge, or discard this patch.
src/Traits/CounterpartyProperty.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function getCounterpartyType()
56 56
     {
57
-        if (! $this->counterpartyType) {
57
+        if (!$this->counterpartyType) {
58 58
             $this->counterpartyType = 'PrivatePerson';
59 59
         }
60 60
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             return $this;
75 75
         }
76 76
 
77
-        if (! $this->counterpartyProperty) {
77
+        if (!$this->counterpartyProperty) {
78 78
             $this->counterpartyProperty = 'Recipient';
79 79
         }
80 80
 
Please login to merge, or discard this patch.
src/Traits/DateTimes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function getDateTime()
51 51
     {
52
-        if ($this->dateTime && (! $this->dateTimeFrom || ! $this->dateTimeTo)) {
52
+        if ($this->dateTime && (!$this->dateTimeFrom || !$this->dateTimeTo)) {
53 53
             $this->methodProperties['DateTime'] = $this->dateTime;
54 54
         }
55 55
 
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
     public function getDateTimeFromTo()
63 63
     {
64 64
         if ($this->dateTimeFrom || $this->dateTimeTo) {
65
-            if (! $this->dateTimeTo) {
65
+            if (!$this->dateTimeTo) {
66 66
                 $this->dateTimeTo = Carbon::now()->format($this->format);
67 67
             }
68
-            if (! $this->dateTimeFrom) {
68
+            if (!$this->dateTimeFrom) {
69 69
                 $this->dateTimeFrom = $this->dateTimeTo;
70 70
             }
71 71
 
Please login to merge, or discard this patch.