@@ -41,7 +41,7 @@ |
||
41 | 41 | { |
42 | 42 | $request = new RouterMatch; |
43 | 43 | list($request->method, $request->query) = $this->httpMethodParams->get($server, $globals['_GET'], $globals['_POST']); |
44 | - $request->path = $this->schemeHost . parse_url($server['REQUEST_URI'], PHP_URL_PATH); |
|
44 | + $request->path = $this->schemeHost.parse_url($server['REQUEST_URI'], PHP_URL_PATH); |
|
45 | 45 | |
46 | 46 | return $request; |
47 | 47 | } |
@@ -24,6 +24,6 @@ |
||
24 | 24 | { |
25 | 25 | $string = parent::__toString(); |
26 | 26 | |
27 | - return $string . $this->postBody; |
|
27 | + return $string.$this->postBody; |
|
28 | 28 | } |
29 | 29 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | protected function configure() |
30 | 30 | { |
31 | 31 | $this->bind(AbstractAppMeta::class)->toInstance($this->appMeta); |
32 | - $this->bind(AppInterface::class)->to($this->appMeta->name . '\Module\App'); |
|
32 | + $this->bind(AppInterface::class)->to($this->appMeta->name.'\Module\App'); |
|
33 | 33 | $this->bind('')->annotatedWith(AppName::class)->toInstance($this->appMeta->name); |
34 | 34 | } |
35 | 35 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $this->rename(RouterInterface::class, 'original'); |
24 | 24 | $this->bind(RouterInterface::class)->to(CliRouter::class); |
25 | 25 | $this->bind(TransferInterface::class)->to(CliResponder::class); |
26 | - $stdIn = tempnam(sys_get_temp_dir(), 'stdin-' . crc32(__FILE__)); |
|
26 | + $stdIn = tempnam(sys_get_temp_dir(), 'stdin-'.crc32(__FILE__)); |
|
27 | 27 | $this->bind()->annotatedWith(StdIn::class)->toInstance($stdIn); |
28 | 28 | } |
29 | 29 | } |
@@ -83,11 +83,11 @@ |
||
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 */ |
@@ -28,6 +28,6 @@ |
||
28 | 28 | |
29 | 29 | public function get() |
30 | 30 | { |
31 | - return new Logger($this->appMeta->name, [new StreamHandler($this->appMeta->logDir . '/app.log', Logger::DEBUG)]); |
|
31 | + return new Logger($this->appMeta->name, [new StreamHandler($this->appMeta->logDir.'/app.log', Logger::DEBUG)]); |
|
32 | 32 | } |
33 | 33 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | public function __construct(\Exception $e) |
25 | 25 | { |
26 | - $this->ref = (string) hash('crc32b', get_class($e) . $e->getMessage() . $e->getFile() . $e->getLine()); |
|
26 | + $this->ref = (string) hash('crc32b', get_class($e).$e->getMessage().$e->getFile().$e->getLine()); |
|
27 | 27 | $this->exceptionString = new ExceptionAsString; |
28 | 28 | } |
29 | 29 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function __construct(AbstractAppMeta $appMeta, $namespace) |
32 | 32 | { |
33 | - $this->cacheDir = $appMeta->tmpDir . '/cache'; |
|
33 | + $this->cacheDir = $appMeta->tmpDir.'/cache'; |
|
34 | 34 | $this->namespace = $namespace; |
35 | 35 | } |
36 | 36 |
@@ -18,15 +18,15 @@ |
||
18 | 18 | public function __invoke(ResourceObject $resourceObject, array $server) |
19 | 19 | { |
20 | 20 | unset($server); |
21 | - if (! $resourceObject->view) { |
|
21 | + if (!$resourceObject->view) { |
|
22 | 22 | $resourceObject->toString(); |
23 | 23 | } |
24 | 24 | // code |
25 | 25 | $statusText = (new Code)->statusText[$resourceObject->code]; |
26 | - $ob = $resourceObject->code . ' ' . $statusText . PHP_EOL; |
|
26 | + $ob = $resourceObject->code.' '.$statusText.PHP_EOL; |
|
27 | 27 | // header |
28 | 28 | foreach ($resourceObject->headers as $label => $value) { |
29 | - $ob .= "{$label}: {$value}" . PHP_EOL; |
|
29 | + $ob .= "{$label}: {$value}".PHP_EOL; |
|
30 | 30 | } |
31 | 31 | // empty line |
32 | 32 | $ob .= PHP_EOL; |