@@ -60,8 +60,7 @@ discard block |
||
| 60 | 60 | while(($module = readdir($moduleDir)) !== false){ |
| 61 | 61 | if($module != '.' && $module != '..' && preg_match('/^([a-z0-9-_]+)$/i', $module) && is_dir(MODULE_PATH . $module)){ |
| 62 | 62 | self::$list[] = $module; |
| 63 | - } |
|
| 64 | - else{ |
|
| 63 | + } else{ |
|
| 65 | 64 | $logger->info('Skipping [' .$module. '], may be this is not a directory or does not exists or is invalid name'); |
| 66 | 65 | } |
| 67 | 66 | } |
@@ -70,8 +69,7 @@ discard block |
||
| 70 | 69 | |
| 71 | 70 | if(self::hasModule()){ |
| 72 | 71 | $logger->info('The application contains the module below [' . implode(', ', self::getModuleList()) . ']'); |
| 73 | - } |
|
| 74 | - else{ |
|
| 72 | + } else{ |
|
| 75 | 73 | $logger->info('The application contains no module skipping'); |
| 76 | 74 | } |
| 77 | 75 | } |
@@ -143,8 +141,7 @@ discard block |
||
| 143 | 141 | if(! empty($route) && is_array($route)){ |
| 144 | 142 | $routes = array_merge($routes, $route); |
| 145 | 143 | unset($route); |
| 146 | - } |
|
| 147 | - else{ |
|
| 144 | + } else{ |
|
| 148 | 145 | show_error('No routing configuration found in [' .$file. '] for module [' . $module . ']'); |
| 149 | 146 | } |
| 150 | 147 | } |
@@ -173,8 +170,7 @@ discard block |
||
| 173 | 170 | if(file_exists($filePath)){ |
| 174 | 171 | $logger->info('Found controller [' . $class . '] in module [' .$module. '], the file path is [' .$filePath. ']'); |
| 175 | 172 | return $filePath; |
| 176 | - } |
|
| 177 | - else{ |
|
| 173 | + } else{ |
|
| 178 | 174 | $logger->info('Controller [' . $class . '] does not exist in the module [' .$module. ']'); |
| 179 | 175 | return false; |
| 180 | 176 | } |
@@ -200,8 +196,7 @@ discard block |
||
| 200 | 196 | if(file_exists($filePath)){ |
| 201 | 197 | $logger->info('Found model [' . $class . '] in module [' .$module. '], the file path is [' .$filePath. ']'); |
| 202 | 198 | return $filePath; |
| 203 | - } |
|
| 204 | - else{ |
|
| 199 | + } else{ |
|
| 205 | 200 | $logger->info('Model [' . $class . '] does not exist in the module [' .$module. ']'); |
| 206 | 201 | return false; |
| 207 | 202 | } |
@@ -226,8 +221,7 @@ discard block |
||
| 226 | 221 | if(file_exists($filePath)){ |
| 227 | 222 | $logger->info('Found configuration [' . $configuration . '] in module [' .$module. '], the file path is [' .$filePath. ']'); |
| 228 | 223 | return $filePath; |
| 229 | - } |
|
| 230 | - else{ |
|
| 224 | + } else{ |
|
| 231 | 225 | $logger->info('Configuration [' . $configuration . '] does not exist in the module [' .$module. ']'); |
| 232 | 226 | return false; |
| 233 | 227 | } |
@@ -253,8 +247,7 @@ discard block |
||
| 253 | 247 | if(file_exists($filePath)){ |
| 254 | 248 | $logger->info('Found helper [' . $helper . '] in module [' .$module. '], the file path is [' .$filePath. ']'); |
| 255 | 249 | return $filePath; |
| 256 | - } |
|
| 257 | - else{ |
|
| 250 | + } else{ |
|
| 258 | 251 | $logger->info('Helper [' . $helper . '] does not exist in the module [' .$module. ']'); |
| 259 | 252 | return false; |
| 260 | 253 | } |
@@ -280,8 +273,7 @@ discard block |
||
| 280 | 273 | if(file_exists($filePath)){ |
| 281 | 274 | $logger->info('Found library [' . $class . '] in module [' .$module. '], the file path is [' .$filePath. ']'); |
| 282 | 275 | return $filePath; |
| 283 | - } |
|
| 284 | - else{ |
|
| 276 | + } else{ |
|
| 285 | 277 | $logger->info('Library [' . $class . '] does not exist in the module [' .$module. ']'); |
| 286 | 278 | return false; |
| 287 | 279 | } |
@@ -309,8 +301,7 @@ discard block |
||
| 309 | 301 | if(file_exists($filePath)){ |
| 310 | 302 | $logger->info('Found view [' . $view . '] in module [' .$module. '], the file path is [' .$filePath. ']'); |
| 311 | 303 | return $filePath; |
| 312 | - } |
|
| 313 | - else{ |
|
| 304 | + } else{ |
|
| 314 | 305 | $logger->info('View [' . $view . '] does not exist in the module [' .$module. ']'); |
| 315 | 306 | return false; |
| 316 | 307 | } |
@@ -337,8 +328,7 @@ discard block |
||
| 337 | 328 | if(file_exists($filePath)){ |
| 338 | 329 | $logger->info('Found language [' . $language . '] in module [' .$module. '], the file path is [' .$filePath. ']'); |
| 339 | 330 | return $filePath; |
| 340 | - } |
|
| 341 | - else{ |
|
| 331 | + } else{ |
|
| 342 | 332 | $logger->info('Language [' . $language . '] does not exist in the module [' .$module. ']'); |
| 343 | 333 | return false; |
| 344 | 334 | } |