@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | public function newApp(AbstractAppMeta $appMeta, $contexts, Cache $cache = null) |
46 | 46 | { |
47 | 47 | $cache = $cache ?: $this->getCache($appMeta, $contexts); |
48 | - $appId = $appMeta->name . $contexts; |
|
48 | + $appId = $appMeta->name.$contexts; |
|
49 | 49 | $isProd = is_int(strpos($contexts, 'prod')); |
50 | 50 | $app = $cache->fetch($appId); |
51 | 51 | if ($app && $isProd) { |
@@ -90,11 +90,11 @@ discard block |
||
90 | 90 | $contextsArray = array_reverse(explode('-', $contexts)); |
91 | 91 | $module = new AppMetaModule($appMeta); |
92 | 92 | foreach ($contextsArray as $context) { |
93 | - $class = $appMeta->name . '\Module\\' . ucwords($context) . 'Module'; |
|
93 | + $class = $appMeta->name.'\Module\\'.ucwords($context).'Module'; |
|
94 | 94 | if (!class_exists($class)) { |
95 | - $class = 'BEAR\Package\Context\\' . ucwords($context) . 'Module'; |
|
95 | + $class = 'BEAR\Package\Context\\'.ucwords($context).'Module'; |
|
96 | 96 | } |
97 | - if (! is_a($class, AbstractModule::class, true)) { |
|
97 | + if (!is_a($class, AbstractModule::class, true)) { |
|
98 | 98 | throw new InvalidContextException($class); |
99 | 99 | } |
100 | 100 | /* @var $module AbstractModule */ |