Completed
Push — master ( 4036d4...da82e8 )
by Fran
03:44
created
src/base/extension/TemplateFunctions.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
          * @param string $path
137 137
          * @param $domains
138 138
          *
139
-         * @return mixed
139
+         * @return string
140 140
          */
141 141
         private static function extractPathname($path, $domains)
142 142
         {
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -179,8 +179,11 @@
 block discarded – undo
179 179
         private static function putResourceContent($name, $filename_path, $base, $file_path)
180 180
         {
181 181
             $data = file_get_contents($filename_path);
182
-            if (!empty($name)) file_put_contents(WEB_DIR.DIRECTORY_SEPARATOR.$name, $data);
183
-            else file_put_contents($base.$file_path, $data);
182
+            if (!empty($name)) {
183
+                file_put_contents(WEB_DIR.DIRECTORY_SEPARATOR.$name, $data);
184
+            } else {
185
+                file_put_contents($base.$file_path, $data);
186
+            }
184 187
         }
185 188
 
186 189
         /**
Please login to merge, or discard this patch.
src/base/Template.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 
6 6
 use PSFS\base\config\Config;
7
-use PSFS\base\exception\ConfigException;
8 7
 use PSFS\base\extension\AssetsTokenParser;
9 8
 use PSFS\base\extension\TemplateFunctions;
10 9
 use PSFS\base\types\SingletonTrait;
Please login to merge, or discard this patch.
src/services/GeneratorService.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
         /**
27 27
          * Método que revisa las traducciones directorio a directorio
28
-         * @param $path
28
+         * @param string $path
29 29
          * @param $locale
30 30
          * @return array
31 31
          */
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
 
96 96
         /**
97 97
          * Servicio que genera la estructura base
98
-         * @param $module
99
-         * @param $mod_path
98
+         * @param string $module
99
+         * @param string $mod_path
100 100
          */
101 101
         private function createModulePathTree($module, $mod_path)
102 102
         {
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
          * Method that copy resources recursively
371 371
          * @param string $dest
372 372
          * @param boolean $force
373
-         * @param $filename_path
373
+         * @param string $filename_path
374 374
          * @param boolean $debug
375 375
          */
376 376
         public static function copyResources($dest, $force, $filename_path, $debug)
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -380,7 +380,7 @@
 block discarded – undo
380 380
                 if (!file_exists(WEB_DIR.$dest.DIRECTORY_SEPARATOR.$destfolder) || $debug || $force) {
381 381
                     if (is_dir($filename_path)) {
382 382
                         self::copyr($filename_path, WEB_DIR.$dest.DIRECTORY_SEPARATOR.$destfolder);
383
-                    }else {
383
+                    } else {
384 384
                         if (@copy($filename_path, WEB_DIR.$dest.DIRECTORY_SEPARATOR.$destfolder) === FALSE) {
385 385
                             throw new ConfigException("Can't copy ".$filename_path." to ".WEB_DIR.$dest.DIRECTORY_SEPARATOR.$destfolder);
386 386
                         }
Please login to merge, or discard this patch.