@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | foreach ($ns as $nsName => $nsUri) { |
45 | 45 | foreach ($xml->attributes($nsUri) as $attName => $attValue) { |
46 | - if ( ! empty($nsName)) { |
|
46 | + if (!empty($nsName)) { |
|
47 | 47 | $attName = "{$nsName}:{$attName}"; |
48 | 48 | } |
49 | 49 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | foreach ($xml->children($nsUri) as $childName => $child) { |
54 | - if ( ! empty($nsName)) { |
|
54 | + if (!empty($nsName)) { |
|
55 | 55 | $childName = "{$nsName}:{$childName}"; |
56 | 56 | } |
57 | 57 |
@@ -26,18 +26,18 @@ discard block |
||
26 | 26 | { |
27 | 27 | if (function_exists('msgpack_unpack')) { |
28 | 28 | if ($payload) { |
29 | - $prevHandler = set_error_handler(function ($errno, $errstr, $errfile, $errline, $errcontext) { |
|
30 | - throw new \Exception($errstr); // @codeCoverageIgnore |
|
29 | + $prevHandler = set_error_handler(function($errno, $errstr, $errfile, $errline, $errcontext) { |
|
30 | + throw new \Exception($errstr); // @codeCoverageIgnore |
|
31 | 31 | }); |
32 | 32 | |
33 | 33 | try { |
34 | 34 | $msg = msgpack_unpack(trim($payload)); |
35 | - if ( ! $msg) { |
|
36 | - throw new \Exception('Unknown error'); // @codeCoverageIgnore |
|
35 | + if (!$msg) { |
|
36 | + throw new \Exception('Unknown error'); // @codeCoverageIgnore |
|
37 | 37 | } |
38 | 38 | } catch (\Exception $e) { |
39 | 39 | set_error_handler($prevHandler); |
40 | - throw new ParserException('Failed To Parse MSGPack - ' . $e->getMessage()); |
|
40 | + throw new ParserException('Failed To Parse MSGPack - '.$e->getMessage()); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | set_error_handler($prevHandler); |
@@ -47,6 +47,6 @@ discard block |
||
47 | 47 | return []; |
48 | 48 | } |
49 | 49 | |
50 | - throw new ParserException('Failed To Parse MSGPack - Supporting Library Not Available'); // @codeCoverageIgnore |
|
50 | + throw new ParserException('Failed To Parse MSGPack - Supporting Library Not Available'); // @codeCoverageIgnore |
|
51 | 51 | } |
52 | 52 | } |