@@ -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 |
@@ -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 | ) { |
@@ -50,7 +50,7 @@ discard block |
||
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 |
||
68 | 68 | return; |
69 | 69 | } |
70 | 70 | |
71 | - if (! $this->counterpartyProperty) { |
|
71 | + if (!$this->counterpartyProperty) { |
|
72 | 72 | $this->counterpartyProperty = 'Recipient'; |
73 | 73 | } |
74 | 74 |
@@ -37,7 +37,7 @@ |
||
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', |
@@ -46,11 +46,11 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function getDateTime(): void |
48 | 48 | { |
49 | - if ($this->dateTime && (! $this->dateTimeFrom || ! $this->dateTimeTo)) { |
|
49 | + if ($this->dateTime && (!$this->dateTimeFrom || !$this->dateTimeTo)) { |
|
50 | 50 | $this->methodProperties['DateTime'] = $this->dateTime; |
51 | 51 | } |
52 | 52 | |
53 | - if (! $this->dateTime) { |
|
53 | + if (!$this->dateTime) { |
|
54 | 54 | $this->dateTime = Carbon::now()->format($this->format); |
55 | 55 | $this->methodProperties['DateTime'] = $this->dateTime; |
56 | 56 | } |
@@ -62,10 +62,10 @@ discard block |
||
62 | 62 | public function getDateTimeFromTo(): void |
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 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function checkDate($date, ?string $format = null): string |
109 | 109 | { |
110 | - if (! $format) { |
|
110 | + if (!$format) { |
|
111 | 111 | $format = $this->format; |
112 | 112 | } |
113 | 113 |
@@ -85,7 +85,7 @@ |
||
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 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | $this->getReturnAddressRef(); |
166 | 166 | |
167 | - if (! $this->Note) { |
|
167 | + if (!$this->Note) { |
|
168 | 168 | $this->methodProperties['Note'] = config('novaposhta.redirecting_note'); |
169 | 169 | } |
170 | 170 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $this->getServiceType(); |
178 | 178 | $this->getRecipientData(); |
179 | 179 | |
180 | - if (! $this->Note) { |
|
180 | + if (!$this->Note) { |
|
181 | 181 | $this->methodProperties['Note'] = config('novaposhta.return_note'); |
182 | 182 | } |
183 | 183 | } |
@@ -237,10 +237,10 @@ |
||
237 | 237 | */ |
238 | 238 | public function setBackwardDeliveryData($RedeliveryString, ?string $PayerType = null, ?string $CargoType = null): self |
239 | 239 | { |
240 | - if (! $PayerType) { |
|
240 | + if (!$PayerType) { |
|
241 | 241 | $PayerType = config('novaposhta.back_delivery_payer_type'); |
242 | 242 | } |
243 | - if (! $CargoType) { |
|
243 | + if (!$CargoType) { |
|
244 | 244 | $CargoType = config('novaposhta.back_delivery_cargo_type'); |
245 | 245 | } |
246 | 246 | $this->BackwardDeliveryData = [ |