@@ -21,16 +21,16 @@ |
||
| 21 | 21 | $body = $resourceObject->toString(); |
| 22 | 22 | // code |
| 23 | 23 | $statusText = (new Code)->statusText[$resourceObject->code]; |
| 24 | - $ob = $resourceObject->code . ' ' . $statusText . PHP_EOL; |
|
| 24 | + $ob = $resourceObject->code.' '.$statusText.PHP_EOL; |
|
| 25 | 25 | // header |
| 26 | 26 | foreach ($resourceObject->headers as $label => $value) { |
| 27 | - $ob .= "{$label}: {$value}" . PHP_EOL; |
|
| 27 | + $ob .= "{$label}: {$value}".PHP_EOL; |
|
| 28 | 28 | } |
| 29 | 29 | // empty line |
| 30 | - $ob .= PHP_EOL; |
|
| 30 | + $ob .= PHP_EOL; |
|
| 31 | 31 | // body |
| 32 | 32 | $ob .= $body; |
| 33 | 33 | |
| 34 | - echo $ob . PHP_EOL; |
|
| 34 | + echo $ob.PHP_EOL; |
|
| 35 | 35 | } |
| 36 | 36 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | public function __construct(AbstractAppMeta $app) |
| 21 | 21 | { |
| 22 | - $this->app = $app->name . '\Module\App'; |
|
| 22 | + $this->app = $app->name.'\Module\App'; |
|
| 23 | 23 | parent::__construct(); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | public function newApp(AbstractAppMeta $appMeta, $contexts, Cache $cache = null) |
| 45 | 45 | { |
| 46 | 46 | $cache = $cache ?: $this->getCache($appMeta, $contexts); |
| 47 | - $appId = $appMeta->name . $contexts; |
|
| 47 | + $appId = $appMeta->name.$contexts; |
|
| 48 | 48 | $isProd = is_int(strpos($contexts, 'prod')); |
| 49 | 49 | $app = $cache->fetch($appId); |
| 50 | 50 | if ($app && $isProd) { |
@@ -90,11 +90,11 @@ discard block |
||
| 90 | 90 | $contextsArray = array_reverse(explode('-', $contexts)); |
| 91 | 91 | $module = new AbstractAppModule($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 */ |