@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | private function getAllObjectVars($object) |
52 | 52 | { |
53 | - $getObjectVarsClosure = function () { |
|
53 | + $getObjectVarsClosure = function() { |
|
54 | 54 | return get_object_vars($this); |
55 | 55 | }; |
56 | 56 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | if (is_object($value) || is_array($value)) { |
96 | 96 | $array[$property] = $this->toShallowArray($value); |
97 | 97 | } elseif (is_resource($value)) { |
98 | - $array[$property] = (string)$value; |
|
98 | + $array[$property] = (string) $value; |
|
99 | 99 | } else { |
100 | 100 | $array[$property] = $value; |
101 | 101 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | if (is_dir($pathToScan)) { |
29 | 29 | if ($recursive) { |
30 | 30 | $moreFiles = $this->scanDir($pathToScan, $fileOrDirs, true); |
31 | - $appendParents = function ($path) use ($file) { |
|
31 | + $appendParents = function($path) use ($file) { |
|
32 | 32 | return $file . DIRECTORY_SEPARATOR . $path; |
33 | 33 | }; |
34 | 34 | $moreFiles = array_map($appendParents, $moreFiles); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | $pattern = '/^' . preg_quote($needle) . '/'; |
103 | 103 | |
104 | - return (bool)preg_match($pattern . $parsedModifiers, $haystack); |
|
104 | + return (bool) preg_match($pattern . $parsedModifiers, $haystack); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | $pattern = '/' . preg_quote($needle) . '$/'; |
130 | 130 | |
131 | - return (bool)preg_match($pattern . $parsedModifiers, $haystack); |
|
131 | + return (bool) preg_match($pattern . $parsedModifiers, $haystack); |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |