@@ -83,11 +83,11 @@ |
||
83 | 83 | $contextsArray = array_reverse(explode('-', $contexts)); |
84 | 84 | $module = null; |
85 | 85 | foreach ($contextsArray as $context) { |
86 | - $class = $appMeta->name . '\Module\\' . ucwords($context) . 'Module'; |
|
87 | - if (! class_exists($class)) { |
|
88 | - $class = 'BEAR\Package\Context\\' . ucwords($context) . 'Module'; |
|
86 | + $class = $appMeta->name.'\Module\\'.ucwords($context).'Module'; |
|
87 | + if (!class_exists($class)) { |
|
88 | + $class = 'BEAR\Package\Context\\'.ucwords($context).'Module'; |
|
89 | 89 | } |
90 | - if (! is_a($class, AbstractModule::class, true)) { |
|
90 | + if (!is_a($class, AbstractModule::class, true)) { |
|
91 | 91 | throw new InvalidContextException($class); |
92 | 92 | } |
93 | 93 | /* @var $module AbstractModule */ |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | public function newApp(AbstractAppMeta $appMeta, $contexts, Cache $cache = null) |
55 | 55 | { |
56 | 56 | $cache = $cache ?: $this->getCache($appMeta, $contexts); |
57 | - $appId = $appMeta->name . $contexts; |
|
57 | + $appId = $appMeta->name.$contexts; |
|
58 | 58 | $app = $cache->fetch($appId); |
59 | 59 | if ($app) { |
60 | 60 | return $app; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | private function getCache(AbstractAppMeta $appMeta, $contexts) |
77 | 77 | { |
78 | - $isDeveop = ! is_int(strpos($contexts, 'prod')); |
|
78 | + $isDeveop = !is_int(strpos($contexts, 'prod')); |
|
79 | 79 | if ($isDeveop) { |
80 | 80 | return new VoidCache; |
81 | 81 | } |