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.