Completed
Push — master ( e7fe07...245837 )
by Mihail
04:05
created
src/Ffcms/Core/Properties.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
         }
43 43
 
44 44
         // try to load from file
45
-        $configFile = ucfirst(Str::lowerCase($configName)) . '.php';
46
-        if (File::exist('/Private/Config/' . $configFile)) {
47
-            $this->data[$configName] = File::inc('/Private/Config/' . $configFile, true);
45
+        $configFile = ucfirst(Str::lowerCase($configName)).'.php';
46
+        if (File::exist('/Private/Config/'.$configFile)) {
47
+            $this->data[$configName] = File::inc('/Private/Config/'.$configFile, true);
48 48
             return true;
49 49
         }
50 50
 
@@ -141,11 +141,11 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function writeConfig($configFile, array $data)
143 143
     {
144
-        $path = '/Private/Config/' . ucfirst(Str::lowerCase($configFile)) . '.php';
144
+        $path = '/Private/Config/'.ucfirst(Str::lowerCase($configFile)).'.php';
145 145
         if (!File::exist($path) || !File::writable($path)) {
146 146
             return false;
147 147
         }
148
-        $saveData = '<?php return ' . Arr::exportVar($data) . ';';
148
+        $saveData = '<?php return '.Arr::exportVar($data).';';
149 149
         File::write($path, $saveData);
150 150
         // overload config values if changed
151 151
         $this->load($configFile, true);
Please login to merge, or discard this patch.
src/Ffcms/Core/Arch/Controller.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
         if ($this->layout === null) {
61 61
             $content = $this->output;
62 62
         } else {
63
-            $layoutPath = App::$Alias->currentViewPath . '/layout/' . $this->layout . '.php';
63
+            $layoutPath = App::$Alias->currentViewPath.'/layout/'.$this->layout.'.php';
64 64
             if (!File::exist($layoutPath)) {
65
-                throw new NativeException('Layout not founded: ' . $layoutPath);
65
+                throw new NativeException('Layout not founded: '.$layoutPath);
66 66
             }
67 67
 
68 68
             $body = $this->output;
@@ -81,14 +81,14 @@  discard block
 block discarded – undo
81 81
             // set custom css library's not included on static call
82 82
             $cssIncludeCode = App::$View->showCodeLink('css');
83 83
             if (!Str::likeEmpty($cssIncludeCode)) {
84
-                $content = Str::replace('</head>', $cssIncludeCode . '</head>', $content);
84
+                $content = Str::replace('</head>', $cssIncludeCode.'</head>', $content);
85 85
             }
86 86
 
87 87
             // add debug bar
88 88
             if (App::$Debug !== null) {
89 89
                 $content = Str::replace(
90 90
                     ['</body>', '</head>'],
91
-                    [App::$Debug->renderOut() . '</body>', App::$Debug->renderHead() . '</head>'],
91
+                    [App::$Debug->renderOut().'</body>', App::$Debug->renderHead().'</head>'],
92 92
                     $content);
93 93
             }
94 94
 
Please login to merge, or discard this patch.