@@ -111,9 +111,9 @@ discard block |
||
| 111 | 111 | */ |
| 112 | 112 | public function update() |
| 113 | 113 | { |
| 114 | - if($this->optionModules) { |
|
| 114 | + if ($this->optionModules) { |
|
| 115 | 115 | modules()->updateRegistry(); |
| 116 | - } elseif($this->optionLanguages) { |
|
| 116 | + } elseif ($this->optionLanguages) { |
|
| 117 | 117 | language()->updateRegistry(); |
| 118 | 118 | } else { |
| 119 | 119 | modules()->updateRegistry(); |
@@ -132,9 +132,9 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | public function flush() |
| 134 | 134 | { |
| 135 | - if($this->optionModules) { |
|
| 135 | + if ($this->optionModules) { |
|
| 136 | 136 | modules()->flushRegistry(); |
| 137 | - } elseif($this->optionLanguages) { |
|
| 137 | + } elseif ($this->optionLanguages) { |
|
| 138 | 138 | language()->flushRegistry(); |
| 139 | 139 | } else { |
| 140 | 140 | modules()->flushRegistry(); |
@@ -184,13 +184,13 @@ discard block |
||
| 184 | 184 | */ |
| 185 | 185 | public function metadata() |
| 186 | 186 | { |
| 187 | - if($this->optionModules) { |
|
| 187 | + if ($this->optionModules) { |
|
| 188 | 188 | $line = PHP_EOL . print_r(modules()->getRegistry(), true); |
| 189 | - } elseif($this->optionLanguages) { |
|
| 189 | + } elseif ($this->optionLanguages) { |
|
| 190 | 190 | $line = PHP_EOL . print_r(language()->getRegistry(), true); |
| 191 | 191 | } else { |
| 192 | 192 | $line = PHP_EOL . print_r(modules()->getRegistry(), true); |
| 193 | - $line.= PHP_EOL . print_r(language()->getRegistry(), true); |
|
| 193 | + $line .= PHP_EOL . print_r(language()->getRegistry(), true); |
|
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | if (isset($line)) { |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $className = studlycase(pathinfo($this->optionFilename, PATHINFO_FILENAME)); |
| 104 | 104 | |
| 105 | - if(empty($this->optionFileVersion)) { |
|
| 105 | + if (empty($this->optionFileVersion)) { |
|
| 106 | 106 | $filename = date('YmdHis') . '_' . underscore($this->optionFilename); |
| 107 | 107 | } else { |
| 108 | 108 | $filename = $this->optionFileVersion . '_' . underscore($this->optionFilename); |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | $filePath = PATH_DATABASE . 'migrations' . DIRECTORY_SEPARATOR; |
| 112 | 112 | |
| 113 | - if( ! empty($this->optionPath) ) { |
|
| 113 | + if ( ! empty($this->optionPath)) { |
|
| 114 | 114 | $filePath = $filePath . $this->optionPath; |
| 115 | 115 | } |
| 116 | 116 | |
@@ -133,15 +133,15 @@ discard block |
||
| 133 | 133 | exit(EXIT_ERROR); |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | - $vars[ 'CREATE_DATETIME' ] = date('d/m/Y H:m'); |
|
| 137 | - $vars[ 'BASE_MIGRATION' ] = 'O2System\Framework\Models\Sql\Migration'; |
|
| 136 | + $vars['CREATE_DATETIME'] = date('d/m/Y H:m'); |
|
| 137 | + $vars['BASE_MIGRATION'] = 'O2System\Framework\Models\Sql\Migration'; |
|
| 138 | 138 | |
| 139 | - if($this->optionNoSql) { |
|
| 140 | - $vars[ 'BASE_MIGRATION' ] = 'O2System\Framework\Models\NoSql\Migration'; |
|
| 139 | + if ($this->optionNoSql) { |
|
| 140 | + $vars['BASE_MIGRATION'] = 'O2System\Framework\Models\NoSql\Migration'; |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - $vars[ 'CLASS' ] = $className; |
|
| 144 | - $vars[ 'FILEPATH' ] = $filePath; |
|
| 143 | + $vars['CLASS'] = $className; |
|
| 144 | + $vars['FILEPATH'] = $filePath; |
|
| 145 | 145 | |
| 146 | 146 | $phpTemplate = <<<PHPTEMPLATE |
| 147 | 147 | <?php |