@@ -64,7 +64,7 @@ |
||
64 | 64 | // ), |
65 | 65 | // ), |
66 | 66 | |
67 | - // Initial configuration with which to seed the ServiceManager. |
|
68 | - // Should be compatible with Zend\ServiceManager\Config. |
|
69 | - // 'service_manager' => array(), |
|
67 | + // Initial configuration with which to seed the ServiceManager. |
|
68 | + // Should be compatible with Zend\ServiceManager\Config. |
|
69 | + // 'service_manager' => array(), |
|
70 | 70 | ]; |
@@ -7,7 +7,7 @@ |
||
7 | 7 | |
8 | 8 | // Decline static file requests back to the PHP built-in webserver |
9 | 9 | if (php_sapi_name() === 'cli-server') { |
10 | - $path = realpath(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)); |
|
10 | + $path = realpath(__DIR__ . parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH)); |
|
11 | 11 | if (__FILE__ !== $path && is_file($path)) { |
12 | 12 | return false; |
13 | 13 | } |
@@ -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 | ); |