@@ -80,6 +80,9 @@ |
||
| 80 | 80 | )); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | + /** |
|
| 84 | + * @param string $path |
|
| 85 | + */ |
|
| 83 | 86 | protected static function findParentPath($path) |
| 84 | 87 | { |
| 85 | 88 | $dir = __DIR__; |
@@ -21,10 +21,10 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | $zf2ModulePaths = array(dirname(dirname(__DIR__))); |
| 23 | 23 | if (($path = static::findParentPath('vendor'))) { |
| 24 | - $zf2ModulePaths[] = $path; |
|
| 24 | + $zf2ModulePaths[ ] = $path; |
|
| 25 | 25 | } |
| 26 | - if (($path = static::findParentPath('module')) !== $zf2ModulePaths[0]) { |
|
| 27 | - $zf2ModulePaths[] = $path; |
|
| 26 | + if (($path = static::findParentPath('module')) !== $zf2ModulePaths[ 0 ]) { |
|
| 27 | + $zf2ModulePaths[ ] = $path; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | static::initAutoloader(); |
@@ -60,11 +60,11 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | $vendorPath = static::findParentPath('vendor'); |
| 62 | 62 | |
| 63 | - if (file_exists($vendorPath.'/autoload.php')) { |
|
| 64 | - include $vendorPath.'/autoload.php'; |
|
| 63 | + if (file_exists($vendorPath . '/autoload.php')) { |
|
| 64 | + include $vendorPath . '/autoload.php'; |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - if (! class_exists('Zend\Loader\AutoloaderFactory')) { |
|
| 67 | + if (!class_exists('Zend\Loader\AutoloaderFactory')) { |
|
| 68 | 68 | throw new RuntimeException( |
| 69 | 69 | 'Unable to load ZF2. Run `php composer.phar install`' |
| 70 | 70 | ); |
@@ -21,10 +21,10 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | $zf2ModulePaths = array(dirname(dirname(__DIR__))); |
| 23 | 23 | if (($path = static::findParentPath('vendor'))) { |
| 24 | - $zf2ModulePaths[] = $path; |
|
| 24 | + $zf2ModulePaths[ ] = $path; |
|
| 25 | 25 | } |
| 26 | - if (($path = static::findParentPath('module')) !== $zf2ModulePaths[0]) { |
|
| 27 | - $zf2ModulePaths[] = $path; |
|
| 26 | + if (($path = static::findParentPath('module')) !== $zf2ModulePaths[ 0 ]) { |
|
| 27 | + $zf2ModulePaths[ ] = $path; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | static::initAutoloader(); |
@@ -60,11 +60,11 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | $vendorPath = static::findParentPath('vendor'); |
| 62 | 62 | |
| 63 | - if (file_exists($vendorPath.'/autoload.php')) { |
|
| 64 | - include $vendorPath.'/autoload.php'; |
|
| 63 | + if (file_exists($vendorPath . '/autoload.php')) { |
|
| 64 | + include $vendorPath . '/autoload.php'; |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - if (! class_exists('Zend\Loader\AutoloaderFactory')) { |
|
| 67 | + if (!class_exists('Zend\Loader\AutoloaderFactory')) { |
|
| 68 | 68 | throw new RuntimeException( |
| 69 | 69 | 'Unable to load ZF2. Run `php composer.phar install`' |
| 70 | 70 | ); |