@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | */ |
135 | 135 | public function setFlagUsePeeringServiceManagers($flagUsePeeringServiceManagers) |
136 | 136 | { |
137 | - $this->flagUsePeeringServiceManagers = (bool)$flagUsePeeringServiceManagers; |
|
137 | + $this->flagUsePeeringServiceManagers = (bool) $flagUsePeeringServiceManagers; |
|
138 | 138 | |
139 | 139 | return $this; |
140 | 140 | } |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function setFlagCheckAbstractFactories($flagCheckAbstractFactories) |
160 | 160 | { |
161 | - $this->flagCheckAbstractFactories = (bool)$flagCheckAbstractFactories; |
|
161 | + $this->flagCheckAbstractFactories = (bool) $flagCheckAbstractFactories; |
|
162 | 162 | |
163 | 163 | return $this; |
164 | 164 | } |
@@ -75,10 +75,9 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * @inheritdoc |
77 | 77 | * |
78 | - * @param array|string $id |
|
79 | 78 | * @param null $context |
80 | 79 | * |
81 | - * @return bool|void |
|
80 | + * @return boolean |
|
82 | 81 | * |
83 | 82 | */ |
84 | 83 | public function has($name, $checkAbstractFactories = true, $usePeeringServiceManagers = true, $context = null) |
@@ -96,7 +95,7 @@ discard block |
||
96 | 95 | * @param $name |
97 | 96 | * @param $context |
98 | 97 | * |
99 | - * @return bool|void |
|
98 | + * @return boolean |
|
100 | 99 | */ |
101 | 100 | public function hasByContext($name, $context) |
102 | 101 | { |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | public static function getPathToModule() |
22 | 22 | { |
23 | - return __DIR__ . '/../../../'; |
|
23 | + return __DIR__.'/../../../'; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public static function getPathToDefaultAppConfig() |
32 | 32 | { |
33 | - return __DIR__ . '/../_files/DefaultApp/application.config.php'; |
|
33 | + return __DIR__.'/../_files/DefaultApp/application.config.php'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public static function getPathToContextResolverTestServiceDir() |
43 | 43 | { |
44 | - return __DIR__ . '/../_files/ContextResolver/vendor/service/'; |
|
44 | + return __DIR__.'/../_files/ContextResolver/vendor/service/'; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public static function getPathToContextResolverTestCustomServiceDir() |
55 | 55 | { |
56 | - return __DIR__ . '/../_files/ContextResolver/vendor/custom-service/'; |
|
56 | + return __DIR__.'/../_files/ContextResolver/vendor/custom-service/'; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | |
@@ -64,6 +64,6 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public static function getPathToContextResolverAppConfig() |
66 | 66 | { |
67 | - return __DIR__ . '/../_files/ContextResolver/config/application.config.php'; |
|
67 | + return __DIR__.'/../_files/ContextResolver/config/application.config.php'; |
|
68 | 68 | } |
69 | 69 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | Module::MODULE_NAME => TestPaths::getPathToModule(), |
21 | 21 | ], |
22 | 22 | 'config_glob_paths' => [ |
23 | - __DIR__ . '/config/autoload/{{,*.}global,{,*.}local}.php', |
|
23 | + __DIR__.'/config/autoload/{{,*.}global,{,*.}local}.php', |
|
24 | 24 | ], |
25 | 25 | ] |
26 | 26 | ]; |
@@ -28,18 +28,18 @@ |
||
28 | 28 | 'module_paths' => [ |
29 | 29 | Module::MODULE_NAME => TestPaths::getPathToModule(), |
30 | 30 | |
31 | - Service\Module1\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestServiceDir() . 'module1', |
|
32 | - Service\Module2\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestServiceDir() . 'module2', |
|
33 | - Service\Module3\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestServiceDir() . 'module3', |
|
34 | - Service\Service\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestServiceDir() . 'service', |
|
31 | + Service\Module1\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestServiceDir().'module1', |
|
32 | + Service\Module2\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestServiceDir().'module2', |
|
33 | + Service\Module3\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestServiceDir().'module3', |
|
34 | + Service\Service\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestServiceDir().'service', |
|
35 | 35 | |
36 | - CustomService\Module1\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestCustomServiceDir(). 'module1', |
|
37 | - CustomService\Module2\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestCustomServiceDir() . 'module2', |
|
38 | - CustomService\Module3\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestCustomServiceDir() . 'module3', |
|
39 | - CustomService\Service\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestCustomServiceDir() . 'service', |
|
36 | + CustomService\Module1\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestCustomServiceDir().'module1', |
|
37 | + CustomService\Module2\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestCustomServiceDir().'module2', |
|
38 | + CustomService\Module3\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestCustomServiceDir().'module3', |
|
39 | + CustomService\Service\Module::MODULE_NAME => TestPaths::getPathToContextResolverTestCustomServiceDir().'service', |
|
40 | 40 | ], |
41 | 41 | 'config_glob_paths' => [ |
42 | - __DIR__ . '/config/autoload/{{,*.}global,{,*.}local}.php', |
|
42 | + __DIR__.'/config/autoload/{{,*.}global,{,*.}local}.php', |
|
43 | 43 | ], |
44 | 44 | ] |
45 | 45 | ]; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | return [ |
50 | 50 | 'Zend\Loader\StandardAutoloader' => [ |
51 | 51 | 'namespaces' => [ |
52 | - __NAMESPACE__ => __DIR__ . '/src/', |
|
52 | + __NAMESPACE__ => __DIR__.'/src/', |
|
53 | 53 | ], |
54 | 54 | ], |
55 | 55 | ]; |
@@ -63,6 +63,6 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function getConfig() |
65 | 65 | { |
66 | - return include __DIR__ . '/config/module.config.php'; |
|
66 | + return include __DIR__.'/config/module.config.php'; |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | \ No newline at end of file |
@@ -40,10 +40,10 @@ discard block |
||
40 | 40 | protected static function initAutoloader() |
41 | 41 | { |
42 | 42 | $vendorPath = static::findParentPath('vendor'); |
43 | - if (is_readable($vendorPath . '/autoload.php')) { |
|
43 | + if (is_readable($vendorPath.'/autoload.php')) { |
|
44 | 44 | |
45 | 45 | /** @noinspection PhpIncludeInspection */ |
46 | - include $vendorPath . '/autoload.php'; |
|
46 | + include $vendorPath.'/autoload.php'; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | if (!class_exists(AutoloaderFactory::class)) { |
@@ -56,9 +56,9 @@ discard block |
||
56 | 56 | StandardAutoloader::class => [ |
57 | 57 | 'autoregister_zf' => true, |
58 | 58 | 'namespaces' => [ |
59 | - 'Nnx\\Container' => __DIR__ . '/../../src/', |
|
60 | - __NAMESPACE__ => __DIR__ . '/tests/', |
|
61 | - 'Nnx\\Container\\PhpUnit\\TestData' => __DIR__ . '/_files' |
|
59 | + 'Nnx\\Container' => __DIR__.'/../../src/', |
|
60 | + __NAMESPACE__ => __DIR__.'/tests/', |
|
61 | + 'Nnx\\Container\\PhpUnit\\TestData' => __DIR__.'/_files' |
|
62 | 62 | ] |
63 | 63 | ] |
64 | 64 | ]); |
@@ -77,14 +77,14 @@ discard block |
||
77 | 77 | { |
78 | 78 | $dir = __DIR__; |
79 | 79 | $previousDir = '.'; |
80 | - while (!is_dir($dir . '/' . $path)) { |
|
80 | + while (!is_dir($dir.'/'.$path)) { |
|
81 | 81 | $dir = dirname($dir); |
82 | 82 | if ($previousDir === $dir) { |
83 | 83 | return false; |
84 | 84 | } |
85 | 85 | $previousDir = $dir; |
86 | 86 | } |
87 | - return $dir . '/' . $path; |
|
87 | + return $dir.'/'.$path; |
|
88 | 88 | } |
89 | 89 | } |
90 | 90 |
@@ -53,8 +53,8 @@ |
||
53 | 53 | ]; |
54 | 54 | |
55 | 55 | return array_merge_recursive( |
56 | - include __DIR__ . '/container.config.php', |
|
57 | - include __DIR__ . '/entryNameResolver.config.php', |
|
58 | - include __DIR__ . '/serviceManager.config.php', |
|
56 | + include __DIR__.'/container.config.php', |
|
57 | + include __DIR__.'/entryNameResolver.config.php', |
|
58 | + include __DIR__.'/serviceManager.config.php', |
|
59 | 59 | $config |
60 | 60 | ); |
61 | 61 | \ No newline at end of file |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | public function init(ModuleManagerInterface $manager) |
66 | 66 | { |
67 | 67 | if (!$manager instanceof ModuleManager) { |
68 | - $errMsg =sprintf('Module manager not implement %s', ModuleManager::class); |
|
68 | + $errMsg = sprintf('Module manager not implement %s', ModuleManager::class); |
|
69 | 69 | throw new Exception\InvalidArgumentException($errMsg); |
70 | 70 | } |
71 | 71 | |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | return [ |
121 | 121 | 'Zend\Loader\StandardAutoloader' => [ |
122 | 122 | 'namespaces' => [ |
123 | - __NAMESPACE__ => __DIR__ . '/src/', |
|
123 | + __NAMESPACE__ => __DIR__.'/src/', |
|
124 | 124 | ], |
125 | 125 | ], |
126 | 126 | ]; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | */ |
133 | 133 | public function getConfig() |
134 | 134 | { |
135 | - return include __DIR__ . '/config/module.config.php'; |
|
135 | + return include __DIR__.'/config/module.config.php'; |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | } |
139 | 139 | \ No newline at end of file |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | return [ |
50 | 50 | 'Zend\Loader\StandardAutoloader' => [ |
51 | 51 | 'namespaces' => [ |
52 | - __NAMESPACE__ => __DIR__ . '/src/', |
|
52 | + __NAMESPACE__ => __DIR__.'/src/', |
|
53 | 53 | ], |
54 | 54 | ], |
55 | 55 | ]; |
@@ -63,6 +63,6 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function getConfig() |
65 | 65 | { |
66 | - return include __DIR__ . '/config/module.config.php'; |
|
66 | + return include __DIR__.'/config/module.config.php'; |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | \ No newline at end of file |