Completed
Push — 1.x ( ca984d...e868bf )
by Akihito
11s
created
src/AppInjector.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,11 +83,11 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.
src/Bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.