@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | ]; |
145 | 145 | |
146 | 146 | foreach ($required_fields as $key => $value) { |
147 | - if (! array_key_exists($value, $order) || empty($order[$value])) { |
|
147 | + if (!array_key_exists($value, $order) || empty($order[$value])) { |
|
148 | 148 | throw InvalidConfiguration::generatePaymentFormOrderParamsNotSet($value); |
149 | 149 | } |
150 | 150 | } |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | 'USD', |
158 | 158 | ]; |
159 | 159 | |
160 | - if (! in_array($order['CURRENCY'], $currency_arr)) { |
|
160 | + if (!in_array($order['CURRENCY'], $currency_arr)) { |
|
161 | 161 | throw InvalidConfiguration::generatePaymentFormOrderInvalidCurrency($order['CURRENCY']); |
162 | 162 | } |
163 | 163 | } |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | */ |
242 | 242 | public function validateOrderRequestFromGate(Request $request) |
243 | 243 | { |
244 | - if (! $this->AllowIP($request->ip()) || ! $this->validate($request) || ! $this->validateSignature($request)) { |
|
244 | + if (!$this->AllowIP($request->ip()) || !$this->validate($request) || !$this->validateSignature($request)) { |
|
245 | 245 | $this->eventFillAndSend('unitpay.error', 'validateOrderRequestFromGate', $request); |
246 | 246 | |
247 | 247 | return false; |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | { |
261 | 261 | $callable = config('unitpay.searchOrderFilter'); |
262 | 262 | |
263 | - if (! is_callable($callable)) { |
|
263 | + if (!is_callable($callable)) { |
|
264 | 264 | throw InvalidConfiguration::searchOrderFilterInvalid(); |
265 | 265 | } |
266 | 266 | |
@@ -276,25 +276,25 @@ discard block |
||
276 | 276 | |
277 | 277 | $order = $callable($request, $request->input('params.account')); |
278 | 278 | |
279 | - if (! $order) { |
|
279 | + if (!$order) { |
|
280 | 280 | $this->eventFillAndSend('unitpay.error', 'orderNotFound', $request); |
281 | 281 | |
282 | 282 | return false; |
283 | 283 | } |
284 | 284 | |
285 | - if (! array_key_exists('orderStatus', $order)) { |
|
285 | + if (!array_key_exists('orderStatus', $order)) { |
|
286 | 286 | $this->eventFillAndSend('unitpay.error', 'orderStatusInvalid', $request); |
287 | 287 | |
288 | 288 | return false; |
289 | 289 | } |
290 | 290 | |
291 | - if (! array_key_exists('orderSum', $order) && $request->input('params.orderSum') != $order['orderSum']) { |
|
291 | + if (!array_key_exists('orderSum', $order) && $request->input('params.orderSum') != $order['orderSum']) { |
|
292 | 292 | $this->eventFillAndSend('unitpay.error', 'orderSumInvalid', $request); |
293 | 293 | |
294 | 294 | return false; |
295 | 295 | } |
296 | 296 | |
297 | - if (! array_key_exists('orderCurrency', $order) && $request->input('params.orderCurrency') != $order['orderCurrency']) { |
|
297 | + if (!array_key_exists('orderCurrency', $order) && $request->input('params.orderCurrency') != $order['orderCurrency']) { |
|
298 | 298 | $this->eventFillAndSend('unitpay.error', 'orderCurrencyInvalid', $request); |
299 | 299 | |
300 | 300 | return false; |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | { |
315 | 315 | $callable = config('unitpay.paidOrderFilter'); |
316 | 316 | |
317 | - if (! is_callable($callable)) { |
|
317 | + if (!is_callable($callable)) { |
|
318 | 318 | throw InvalidConfiguration::orderPaidFilterInvalid(); |
319 | 319 | } |
320 | 320 | |
@@ -330,14 +330,14 @@ discard block |
||
330 | 330 | public function payOrderFromGate(Request $request) |
331 | 331 | { |
332 | 332 | // Validate request params from UnitPay server. |
333 | - if (! $this->validateOrderRequestFromGate($request)) { |
|
333 | + if (!$this->validateOrderRequestFromGate($request)) { |
|
334 | 334 | return $this->responseError('validateOrderRequestFromGate'); |
335 | 335 | } |
336 | 336 | |
337 | 337 | // Search and return order |
338 | 338 | $order = $this->callFilterSearchOrder($request); |
339 | 339 | |
340 | - if (! $order) { |
|
340 | + if (!$order) { |
|
341 | 341 | return $this->responseError('searchOrderFilter'); |
342 | 342 | } |
343 | 343 | |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | |
368 | 368 | // PaidOrderFilter - update order into DB as paid & other actions |
369 | 369 | // if return false then error |
370 | - if (! $this->callFilterPaidOrder($request, $order)) { |
|
370 | + if (!$this->callFilterPaidOrder($request, $order)) { |
|
371 | 371 | $this->eventFillAndSend('unitpay.error', 'callFilterPaidOrder', $request); |
372 | 372 | |
373 | 373 | return $this->responseError('callFilterPaidOrder'); |