Completed
Push — master ( 089512...9dbb81 )
by Jimmy K. Oak
9s
created
src/Utility/ObjectUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Utility/StringUtils.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
 
80 80
     protected function __construct()
81 81
     {
82
-        $this->urlRegExp = '%^(?:(?:https?|ftp)://)(?:\S+(?::\S*)?@|\d{1,3}(?:\.\d{1,3}){3}|' .
83
-            '(?:(?:[a-z\d\x{00a1}-\x{ffff}]+-?)*[a-z\d\x{00a1}-\x{ffff}]+)(?:\.(?:[a-z\d\x{0' .
84
-            '0a1}-\x{ffff}]+-?)*[a-z\d\x{00a1}-\x{ffff}]+)*(?:\.[a-z\x{00a1}-\x{ffff}]{2,6})' .
82
+        $this->urlRegExp = '%^(?:(?:https?|ftp)://)(?:\S+(?::\S*)?@|\d{1,3}(?:\.\d{1,3}){3}|'.
83
+            '(?:(?:[a-z\d\x{00a1}-\x{ffff}]+-?)*[a-z\d\x{00a1}-\x{ffff}]+)(?:\.(?:[a-z\d\x{0'.
84
+            '0a1}-\x{ffff}]+-?)*[a-z\d\x{00a1}-\x{ffff}]+)*(?:\.[a-z\x{00a1}-\x{ffff}]{2,6})'.
85 85
             ')(?::\d+)?(?:[^\s]*)?$%iu';
86 86
 
87 87
         $this->emailRegExp = '/^([a-z0-9_.-])+@([a-z0-9_.-])+\.([a-z])+([a-z])+/i';
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
         $this->prepareHaystackAndNeedle($haystack, $needle, $modifiers);
100 100
         $parsedModifiers = $this->parseModifiers($modifiers);
101 101
 
102
-        $pattern = '/^' . preg_quote($needle) . '/';
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
     /**
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
         self::prepareHaystackAndNeedle($haystack, $needle, $modifiers);
127 127
         $parsedModifiers = $this->parseModifiers($modifiers);
128 128
 
129
-        $pattern = '/' . preg_quote($needle) . '$/';
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
     /**
Please login to merge, or discard this patch.
src/Utility/ArrayUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
             return "<$key/>";
126 126
         }
127 127
 
128
-        return "<$key>" . $value . "</$key>";
128
+        return "<$key>".$value."</$key>";
129 129
     }
130 130
 
131 131
     private function isAssociative(array $data)
Please login to merge, or discard this patch.
src/Utility/FileUtils.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
         $allFiles = [];
25 25
         foreach ($files as $file) {
26 26
             if ($file !== '.' && $file !== '..') {
27
-                $pathToScan = $path . DIRECTORY_SEPARATOR . $file;
27
+                $pathToScan = $path.DIRECTORY_SEPARATOR.$file;
28 28
                 if (is_dir($pathToScan)) {
29 29
                     if ($recursive) {
30 30
                         $moreFiles = $this->scanDir($pathToScan, $fileOrDirs, true);
31
-                        $appendParents = function ($path) use ($file) {
32
-                            return $file . DIRECTORY_SEPARATOR . $path;
31
+                        $appendParents = function($path) use ($file) {
32
+                            return $file.DIRECTORY_SEPARATOR.$path;
33 33
                         };
34 34
                         $moreFiles = array_map($appendParents, $moreFiles);
35 35
                         $allFiles = array_merge($allFiles, $moreFiles);
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     {
116 116
         $extensionPregQuoted = preg_quote($extension);
117 117
 
118
-        return preg_match('/\.' . $extensionPregQuoted . '$/i', $fileName) > 0;
118
+        return preg_match('/\.'.$extensionPregQuoted.'$/i', $fileName) > 0;
119 119
     }
120 120
 
121 121
     private function stripPathLastDirectorySeparator($path)
Please login to merge, or discard this patch.