@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | } |
125 | 125 | $attemptsNotExceeded = $attempt <= 3; |
126 | 126 | if ($attemptsNotExceeded) { |
127 | - printf(PHP_EOL . 'Attempt %d to delete document failed.' . PHP_EOL, $attempt); |
|
127 | + printf(PHP_EOL.'Attempt %d to delete document failed.'.PHP_EOL, $attempt); |
|
128 | 128 | sleep(5 * $attempt); |
129 | 129 | $this->deleteDocument($ref, ++$attempt); |
130 | 130 | } else { |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | */ |
182 | 182 | private function gulp(): void |
183 | 183 | { |
184 | - $gulp = (int)getenv('GULP'); |
|
184 | + $gulp = (int) getenv('GULP'); |
|
185 | 185 | |
186 | 186 | if ($gulp) { |
187 | 187 | sleep($gulp); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | 'Ref' => $filters['Ref'] ?? null, |
136 | 136 | 'RegionRef' => $filters['RegionRef'] ?? null, |
137 | 137 | 'FindByString' => $filters['FindByString'] ?? null, |
138 | - 'Warehouse' => (int)$warehouse, |
|
138 | + 'Warehouse' => (int) $warehouse, |
|
139 | 139 | 'Page' => $page, |
140 | 140 | 'Limit' => $limit, |
141 | 141 | ]); |
@@ -153,8 +153,8 @@ discard block |
||
153 | 153 | public function getCities(int $page = 1, int $limit = PHP_INT_MAX, string $search = ''): array |
154 | 154 | { |
155 | 155 | $params = array_filter([ |
156 | - 'Page' => (string)$page, |
|
157 | - 'Limit' => (string)$limit, |
|
156 | + 'Page' => (string) $page, |
|
157 | + 'Limit' => (string) $limit, |
|
158 | 158 | 'FindByString' => $search, |
159 | 159 | ]); |
160 | 160 | return $this->connection->post(self::MODEL_NAME, 'getCities', $params); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | private function gulp(): void |
44 | 44 | { |
45 | - $gulp = (int)getenv('GULP'); |
|
45 | + $gulp = (int) getenv('GULP'); |
|
46 | 46 | |
47 | 47 | if ($gulp) { |
48 | 48 | sleep($gulp); |