@@ -135,13 +135,13 @@ discard block |
||
| 135 | 135 | ]; |
| 136 | 136 | |
| 137 | 137 | foreach ($required_fields as $key => $value) { |
| 138 | - if (! array_key_exists($value, $order) || empty($order[$value])) { |
|
| 138 | + if (!array_key_exists($value, $order) || empty($order[$value])) { |
|
| 139 | 139 | throw InvalidConfiguration::generatePaymentFormOrderParamsNotSet($value); |
| 140 | 140 | } |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | // Checks if PAYMENT_NO is numeric. |
| 144 | - if (! is_numeric($order['PAYMENT_NO'])) { |
|
| 144 | + if (!is_numeric($order['PAYMENT_NO'])) { |
|
| 145 | 145 | throw InvalidConfiguration::generatePaymentFormOrderInvalidPaymentNo('PAYMENT_NO'); |
| 146 | 146 | } |
| 147 | 147 | |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | */ |
| 238 | 238 | public function validateOrderRequestFromGate(Request $request) |
| 239 | 239 | { |
| 240 | - if (! $this->AllowIP($request->ip()) || ! $this->validate($request) || ! $this->validatePayeePurse($request) || ! $this->validateSignature($request)) { |
|
| 240 | + if (!$this->AllowIP($request->ip()) || !$this->validate($request) || !$this->validatePayeePurse($request) || !$this->validateSignature($request)) { |
|
| 241 | 241 | $this->eventFillAndSend('webmoneymerchant.error', 'validateOrderRequestFromGate', $request); |
| 242 | 242 | |
| 243 | 243 | return false; |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | */ |
| 255 | 255 | public function validateSearchOrderRequiredAttributes(Request $request, $order) |
| 256 | 256 | { |
| 257 | - if (! $order) { |
|
| 257 | + if (!$order) { |
|
| 258 | 258 | $this->eventFillAndSend('webmoneymerchant.error', 'orderNotFound', $request); |
| 259 | 259 | |
| 260 | 260 | return false; |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | $attr = ['WEBMONEY_orderStatus', 'WEBMONEY_orderSum']; |
| 265 | 265 | |
| 266 | 266 | foreach ($attr as $k => $value) { |
| 267 | - if (! $order->getAttribute($value)) { |
|
| 267 | + if (!$order->getAttribute($value)) { |
|
| 268 | 268 | $this->eventFillAndSend('webmoneymerchant.error', $value.'Invalid', $request); |
| 269 | 269 | |
| 270 | 270 | return false; |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | { |
| 292 | 292 | $callable = config('webmoney-merchant.searchOrderFilter'); |
| 293 | 293 | |
| 294 | - if (! is_callable($callable)) { |
|
| 294 | + if (!is_callable($callable)) { |
|
| 295 | 295 | throw InvalidConfiguration::searchOrderFilterInvalid(); |
| 296 | 296 | } |
| 297 | 297 | |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | |
| 307 | 307 | $order = $callable($request, $request->input('LMI_PAYMENT_NO')); |
| 308 | 308 | |
| 309 | - if (! $this->validateSearchOrderRequiredAttributes($request, $order)) { |
|
| 309 | + if (!$this->validateSearchOrderRequiredAttributes($request, $order)) { |
|
| 310 | 310 | return false; |
| 311 | 311 | } |
| 312 | 312 | |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | { |
| 325 | 325 | $callable = config('webmoney-merchant.paidOrderFilter'); |
| 326 | 326 | |
| 327 | - if (! is_callable($callable)) { |
|
| 327 | + if (!is_callable($callable)) { |
|
| 328 | 328 | throw InvalidConfiguration::orderPaidFilterInvalid(); |
| 329 | 329 | } |
| 330 | 330 | |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | */ |
| 351 | 351 | public function payOrderFromGate(Request $request) |
| 352 | 352 | { |
| 353 | - if (! $request->has('LMI_HASH')) { |
|
| 353 | + if (!$request->has('LMI_HASH')) { |
|
| 354 | 354 | return "OK"; |
| 355 | 355 | } |
| 356 | 356 | |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | } |
| 360 | 360 | |
| 361 | 361 | // Validates the request params from the WebMoney Merchant server. |
| 362 | - if (! $this->validateOrderRequestFromGate($request)) { |
|
| 362 | + if (!$this->validateOrderRequestFromGate($request)) { |
|
| 363 | 363 | $this->eventFillAndSend('webmoneymerchant.error', 'validateOrderRequestFromGate', $request); |
| 364 | 364 | |
| 365 | 365 | return $this->responseError('validateOrderRequestFromGate'); |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | // Searches and returns the order |
| 369 | 369 | $order = $this->callFilterSearchOrder($request); |
| 370 | 370 | |
| 371 | - if (! $order) { |
|
| 371 | + if (!$order) { |
|
| 372 | 372 | $this->eventFillAndSend('webmoneymerchant.error', 'searchOrderFilter', $request); |
| 373 | 373 | |
| 374 | 374 | return $this->responseError('searchOrderFilter'); |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | |
| 389 | 389 | // PaidOrderFilter - update the order into the DB as paid & other actions. |
| 390 | 390 | // If it returns false, then some error has occurred. |
| 391 | - if (! $this->callFilterPaidOrder($request, $order)) { |
|
| 391 | + if (!$this->callFilterPaidOrder($request, $order)) { |
|
| 392 | 392 | $this->eventFillAndSend('webmoneymerchant.error', 'callFilterPaidOrder', $request); |
| 393 | 393 | |
| 394 | 394 | return $this->responseError('callFilterPaidOrder'); |