Completed
Push — spike ( 7c5a3b )
by Akihito
13s
created
src/Bootstrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.