@@ -21,7 +21,7 @@ |
||
| 21 | 21 | $this->addLimit(); |
| 22 | 22 | |
| 23 | 23 | //Sender or Recipient |
| 24 | - if (! $counterpartyProperty) { |
|
| 24 | + if (!$counterpartyProperty) { |
|
| 25 | 25 | $counterpartyProperty = 'Sender'; |
| 26 | 26 | } |
| 27 | 27 | |
@@ -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']; |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public function getCounterpartyType() |
| 34 | 34 | { |
| 35 | - if (! $this->counterpartyType) { |
|
| 35 | + if (!$this->counterpartyType) { |
|
| 36 | 36 | $this->counterpartyType = 'PrivatePerson'; |
| 37 | 37 | } |
| 38 | 38 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function getCounterpartyProperty() |
| 48 | 48 | { |
| 49 | - if (! $this->counterpartyProperty) { |
|
| 49 | + if (!$this->counterpartyProperty) { |
|
| 50 | 50 | $this->counterpartyProperty = 'Recipient'; |
| 51 | 51 | } |
| 52 | 52 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | return $this; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - if (! $this->limit) { |
|
| 42 | + if (!$this->limit) { |
|
| 43 | 43 | $this->limit = config('novaposhta.page_limit'); |
| 44 | 44 | } |
| 45 | 45 | |
@@ -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 | |
@@ -88,12 +88,12 @@ discard block |
||
| 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 = __('novaposhta::novaposhta.error_answer'); |
| 99 | 99 | $success = false; |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $info = $answer['warnings']; |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | - if (! $info) { |
|
| 120 | + if (!$info) { |
|
| 121 | 121 | $info = $answer['info']; |
| 122 | 122 | } |
| 123 | 123 | |