@@ -136,7 +136,7 @@ |
||
| 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 | { |
@@ -179,8 +179,11 @@ |
||
| 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 | /** |
@@ -4,7 +4,6 @@ |
||
| 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; |
@@ -25,7 +25,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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) |
@@ -380,7 +380,7 @@ |
||
| 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 | } |