Passed
Pull Request — main (#1790)
by
unknown
10:21 queued 05:26
created
src/model/PluginRegister.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                         $ret[$name] = $files[$type];
63 63
                     } else {
64 64
                         foreach ($files[$type] as $file) {
65
-                            array_push($ret[$name], 'plugins/' . $name . '/' . $file);
65
+                            array_push($ret[$name], 'plugins/'.$name.'/'.$file);
66 66
                         }
67 67
                     }
68 68
                 }
@@ -142,11 +142,11 @@  discard block
 block discarded – undo
142 142
         $plugins = $this->getPluginsTemplates($names);
143 143
         foreach ($plugins as $folder => $templates) {
144 144
             foreach ($templates as $relativePath) {
145
-                $path = '../' . $relativePath;
145
+                $path = '../'.$relativePath;
146 146
                 if (file_exists($path)) {
147 147
                     $filename = explode('/', $path);
148 148
                     $filename = $filename[sizeof($filename) - 1];
149
-                    $id = $folder . '-' . substr($filename, 0, (strrpos($filename, ".")));
149
+                    $id = $folder.'-'.substr($filename, 0, (strrpos($filename, ".")));
150 150
                     $templateStrings[$id] = file_get_contents($path);
151 151
                 }
152 152
             }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     protected function flatten($array)
201 201
     {
202 202
         $return = array();
203
-        array_walk_recursive($array, function ($a) use (&$return) { $return[] = $a; });
203
+        array_walk_recursive($array, function($a) use (&$return) { $return[] = $a; });
204 204
         return $return;
205 205
     }
206 206
 
Please login to merge, or discard this patch.