Passed
Push — master ( 6d6669...feea48 )
by Andrey
03:52
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/Traits/RecipientProperty.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
 
35 35
         //указываем строками проверяем и вставляем
36
-        if (isset($Recipient['RecipientName']) &&     //имя получателя
36
+        if (isset($Recipient['RecipientName']) && //имя получателя
37 37
             isset($Recipient['RecipientCityName']) && //город
38 38
             isset($Recipient['RecipientAddressName']) //отделение или улица
39 39
         ) {
Please login to merge, or discard this patch.
src/NovaPoshta.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function getApi(): string
35 35
     {
36
-        if (! $this->api) {
36
+        if (!$this->api) {
37 37
             $this->api = config('novaposhta.api_key');
38 38
         }
39 39
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $answer = $answer[0];
96 96
         }
97 97
 
98
-        if (! isset($answer['success']) || ! isset($answer['data']) || empty($answer['data'])) {
98
+        if (!isset($answer['success']) || !isset($answer['data']) || empty($answer['data'])) {
99 99
             /**
100 100
              * Что-то не так в ответе.
101 101
              */
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             }
126 126
         }
127 127
 
128
-        if (! $info && isset($answer['info']) && $answer['info']) {
128
+        if (!$info && isset($answer['info']) && $answer['info']) {
129 129
             $info['info'] = $answer['info'];
130 130
         }
131 131
 
Please login to merge, or discard this patch.
src/Traits/InternetDocumentProperty.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -193,10 +193,10 @@
 block discarded – undo
193 193
      */
194 194
     public function setBackwardDeliveryData($RedeliveryString, ?string $PayerType = null, ?string $CargoType = null): void
195 195
     {
196
-        if (! $PayerType) {
196
+        if (!$PayerType) {
197 197
             $PayerType = config('novaposhta.back_delivery_payer_type');
198 198
         }
199
-        if (! $CargoType) {
199
+        if (!$CargoType) {
200 200
             $CargoType = config('novaposhta.back_delivery_cargo_type');
201 201
         }
202 202
         $this->BackwardDeliveryData = [
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
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function getCounterpartyType(): void
52 52
     {
53
-        if (! $this->counterpartyType) {
53
+        if (!$this->counterpartyType) {
54 54
             $this->counterpartyType = 'PrivatePerson';
55 55
         }
56 56
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             return;
69 69
         }
70 70
 
71
-        if (! $this->counterpartyProperty) {
71
+        if (!$this->counterpartyProperty) {
72 72
             $this->counterpartyProperty = 'Recipient';
73 73
         }
74 74
 
Please login to merge, or discard this patch.
src/Traits/OptionsSeatProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function getOptionsSeat(): void
39 39
     {
40
-        if (! $this->OptionsSeat) {
40
+        if (!$this->OptionsSeat) {
41 41
             $defaultSeat = [
42 42
                 'volumetricVolume' => '1',
43 43
                 'volumetricWidth' => '24',
Please login to merge, or discard this patch.
src/Models/AdditionalService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         $this->getSubtypeReason();
121 121
         $this->getNote();
122 122
 
123
-        if (! $this->Note) {
123
+        if (!$this->Note) {
124 124
             $this->methodProperties['Note'] = config('novaposhta.return_note');
125 125
         }
126 126
 
Please login to merge, or discard this patch.
src/Traits/AdditionalServiceProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
         }
86 86
 
87 87
         //Если другие идентификаторы не заполнены - оформляем возврат на отделение по умолчанию (из конфига)
88
-        if (! $this->ReturnAddressRef && ! $this->RecipientWarehouse && ! $this->RecipientSettlement) {
88
+        if (!$this->ReturnAddressRef && !$this->RecipientWarehouse && !$this->RecipientSettlement) {
89 89
             $this->methodProperties['RecipientWarehouse'] = config('novaposhta.ref_return_warehouse');
90 90
         }
91 91
     }
Please login to merge, or discard this patch.