Completed
Push — master ( 2c713f...ed45a9 )
by Ma
03:38
created
test/Bootstrap.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -80,6 +80,9 @@
 block discarded – undo
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__;
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
module/Application/test/Bootstrap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             );
Please login to merge, or discard this patch.