Passed
Push — master ( 1f5c21...18384e )
by Mihail
02:51
created
src/Traits/ClassTools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     {
18 18
         $hash = null;
19 19
         foreach ($this as $property => $value) {
20
-            $hash = md5($hash . $property . '=' . $value);
20
+            $hash = md5($hash.$property.'='.$value);
21 21
         }
22 22
         return $hash;
23 23
     }
Please login to merge, or discard this patch.
src/Helper/Text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
                 $breakerPos = mb_strpos($text, '<br', null, 'UTF-8');
36 36
             } else {
37 37
                 // add length('</p>')
38
-                $breakerPos+= 4;
38
+                $breakerPos += 4;
39 39
             }
40 40
             // cut text from position caret before </p> (+4 symbols to save item as valid)
41 41
             if ($breakerPos !== false) {
Please login to merge, or discard this patch.
src/Helper/Security.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     public function __construct()
23 23
     {
24 24
         $config = \HTMLPurifier_Config::createDefault();
25
-        $config->set('Cache.SerializerPath', root . '/Private/Cache/HTMLPurifier/');
25
+        $config->set('Cache.SerializerPath', root.'/Private/Cache/HTMLPurifier/');
26 26
         $config->set('HTML.Allowed', 'p,b,strong,em,a[href],i,span,ul,ol,li,blockquote,h2,h3,pre,code,img[src|alt|width|height]');
27 27
         //$config->set('URI.Base', 'http://www.example.com');
28 28
         //$config->set('URI.MakeAbsolute', true);
Please login to merge, or discard this patch.
src/Helper/FileSystem/Directory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             return false;
92 92
         }
93 93
 
94
-        $pattern = rtrim($path, '/') . '/*';
94
+        $pattern = rtrim($path, '/').'/*';
95 95
         $entry = glob($pattern, $mod);
96 96
 
97 97
         if ($returnRelative === true) {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         array_pop($separatedPath);
123 123
         $clearPath = implode(DIRECTORY_SEPARATOR, $separatedPath);
124 124
 
125
-        @rename($path, $clearPath . DIRECTORY_SEPARATOR . $newDirName);
125
+        @rename($path, $clearPath.DIRECTORY_SEPARATOR.$newDirName);
126 126
 
127 127
         return true;
128 128
     }
Please login to merge, or discard this patch.
src/Helper/FileSystem/Normalize.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     {
56 56
         $path = self::diskPath($path);
57 57
         if (!Str::startsWith(root, $path)) {
58
-            $path = root . DIRECTORY_SEPARATOR . ltrim($path, '\\/');
58
+            $path = root.DIRECTORY_SEPARATOR.ltrim($path, '\\/');
59 59
         }
60 60
         return $path;
61 61
     }
Please login to merge, or discard this patch.
src/Helper/FileSystem/File.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -192,15 +192,15 @@
 block discarded – undo
192 192
             return [];
193 193
         }
194 194
 
195
-        $dir = opendir($path . '/.');
195
+        $dir = opendir($path.'/.');
196 196
         while ($item = readdir($dir)) {
197
-            if (is_file($sub = $path . '/' . $item)) {
197
+            if (is_file($sub = $path.'/'.$item)) {
198 198
                 $item_ext = Str::lastIn($item, '.');
199 199
                 if ($ext === null || Arr::in($item_ext, $ext)) {
200 200
                     if ($returnRelative) {
201 201
                         $files[] = $item;
202 202
                     } else {
203
-                        $files[] = $path . DIRECTORY_SEPARATOR . $item;
203
+                        $files[] = $path.DIRECTORY_SEPARATOR.$item;
204 204
                     }
205 205
                 }
206 206
             } else {
Please login to merge, or discard this patch.
src/Helper/Type/Str.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@
 block discarded – undo
297 297
 
298 298
         $output = null;
299 299
         foreach ($args as $string) {
300
-            $output .= $string . $separator;
300
+            $output .= $string.$separator;
301 301
         }
302 302
 
303 303
         $output = rtrim($output, $separator);
Please login to merge, or discard this patch.
src/Helper/Type/Arr.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -118,16 +118,16 @@
 block discarded – undo
118 118
                         return 'true';
119 119
                     }
120 120
                 }
121
-                return '\'' . $var . '\'';
121
+                return '\''.$var.'\'';
122 122
             case 'array':
123 123
                 $indexed = array_keys($var) === range(0, count($var) - 1);
124 124
                 $row = [];
125 125
                 foreach ($var as $key => $value) {
126
-                    $row[] = $indent . "\t"
127
-                        . ($indexed ? null : self::exportVar($key, null, $guessTypes) . ' => ')
128
-                        . self::exportVar($value, $indent . "\t", $guessTypes);
126
+                    $row[] = $indent."\t"
127
+                        . ($indexed ? null : self::exportVar($key, null, $guessTypes).' => ')
128
+                        . self::exportVar($value, $indent."\t", $guessTypes);
129 129
                 }
130
-                return "[\n" . implode(",\n", $row) . "\n" . $indent . ']';
130
+                return "[\n".implode(",\n", $row)."\n".$indent.']';
131 131
             case 'boolean':
132 132
                 return $var ? 'true' : 'false';
133 133
             default:
Please login to merge, or discard this patch.
src/Exception/NativeException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     protected function sendHTML($message = null)
56 56
     {
57 57
         header('HTTP/1.1 404 Not Found');
58
-        return '<!DOCTYPE html><html><head><title>An error has occurred</title></head><body><div style="width:60%; margin: auto; background-color: #fcc;border: 1px solid #faa; padding: 0.5em 1em;"><h1 style="font-size: 120%">Runtime error</h1><p>' . $message . '</p></div></body></html>';
58
+        return '<!DOCTYPE html><html><head><title>An error has occurred</title></head><body><div style="width:60%; margin: auto; background-color: #fcc;border: 1px solid #faa; padding: 0.5em 1em;"><h1 style="font-size: 120%">Runtime error</h1><p>'.$message.'</p></div></body></html>';
59 59
     }
60 60
     
61 61
     /**
Please login to merge, or discard this patch.