@@ -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) { |
@@ -91,11 +91,11 @@ discard block |
||
| 91 | 91 | $contextsArray = array_reverse(explode('-', $contexts)); |
| 92 | 92 | $module = null; |
| 93 | 93 | foreach ($contextsArray as $context) { |
| 94 | - $class = $appMeta->name . '\Module\\' . ucwords($context) . 'Module'; |
|
| 94 | + $class = $appMeta->name.'\Module\\'.ucwords($context).'Module'; |
|
| 95 | 95 | if (!class_exists($class)) { |
| 96 | - $class = 'BEAR\Package\Context\\' . ucwords($context) . 'Module'; |
|
| 96 | + $class = 'BEAR\Package\Context\\'.ucwords($context).'Module'; |
|
| 97 | 97 | } |
| 98 | - if (! is_a($class, AbstractModule::class, true)) { |
|
| 98 | + if (!is_a($class, AbstractModule::class, true)) { |
|
| 99 | 99 | throw new InvalidContextException($class); |
| 100 | 100 | } |
| 101 | 101 | /* @var $module AbstractModule */ |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | { |
| 118 | 118 | $isProd = is_int(strpos($contexts, 'prod')); |
| 119 | 119 | if ($isProd) { |
| 120 | - if(function_exists('apcu_fetch')){ |
|
| 120 | + if (function_exists('apcu_fetch')) { |
|
| 121 | 121 | return new ApcuCache; |
| 122 | 122 | } |
| 123 | 123 | |