@@ -66,7 +66,7 @@ |
||
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']; |
@@ -33,7 +33,7 @@ |
||
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 |
@@ -54,7 +54,7 @@ discard block |
||
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 |
||
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 |
@@ -49,11 +49,11 @@ discard block |
||
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 | |
56 | - if (! $this->dateTime) { |
|
56 | + if (!$this->dateTime) { |
|
57 | 57 | $this->dateTime = Carbon::now()->format($this->format); |
58 | 58 | $this->methodProperties['DateTime'] = $this->dateTime; |
59 | 59 | } |
@@ -67,10 +67,10 @@ discard block |
||
67 | 67 | public function getDateTimeFromTo() |
68 | 68 | { |
69 | 69 | if ($this->dateTimeFrom || $this->dateTimeTo) { |
70 | - if (! $this->dateTimeTo) { |
|
70 | + if (!$this->dateTimeTo) { |
|
71 | 71 | $this->dateTimeTo = Carbon::now()->format($this->format); |
72 | 72 | } |
73 | - if (! $this->dateTimeFrom) { |
|
73 | + if (!$this->dateTimeFrom) { |
|
74 | 74 | $this->dateTimeFrom = $this->dateTimeTo; |
75 | 75 | } |
76 | 76 |
@@ -232,10 +232,10 @@ |
||
232 | 232 | */ |
233 | 233 | public function setBackwardDeliveryData($RedeliveryString, ?string $PayerType = null, ?string $CargoType = null) |
234 | 234 | { |
235 | - if (! $PayerType) { |
|
235 | + if (!$PayerType) { |
|
236 | 236 | $PayerType = config('novaposhta.back_delivery_payer_type'); |
237 | 237 | } |
238 | - if (! $CargoType) { |
|
238 | + if (!$CargoType) { |
|
239 | 239 | $CargoType = config('novaposhta.back_delivery_cargo_type'); |
240 | 240 | } |
241 | 241 | $this->BackwardDeliveryData = [ |
@@ -33,7 +33,7 @@ |
||
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 | ) { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function getOptionsSeat() |
42 | 42 | { |
43 | - if (! $this->OptionsSeat) { |
|
43 | + if (!$this->OptionsSeat) { |
|
44 | 44 | $defaultSeat = [ |
45 | 45 | 'volumetricVolume' => '1', |
46 | 46 | 'volumetricWidth' => '24', |
@@ -33,7 +33,7 @@ discard block |
||
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 |
||
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 |
||
125 | 125 | } |
126 | 126 | } |
127 | 127 | |
128 | - if (! $info && isset($answer['info'])) { |
|
128 | + if (!$info && isset($answer['info'])) { |
|
129 | 129 | $info = $answer['info']; |
130 | 130 | } |
131 | 131 |