@@ -112,7 +112,7 @@ |
||
112 | 112 | */ |
113 | 113 | private function setService($service) |
114 | 114 | { |
115 | - call_user_func([$this, 'set' . $service], $this->services->get($service), false); |
|
115 | + call_user_func([$this, 'set'.$service], $this->services->get($service), false); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
@@ -104,7 +104,7 @@ |
||
104 | 104 | */ |
105 | 105 | public function onConfig(callable $callback) |
106 | 106 | { |
107 | - $this->bind(AppEvent::CONFIGURE, function (AppEvent $event) use ($callback) { |
|
107 | + $this->bind(AppEvent::CONFIGURE, function(AppEvent $event) use ($callback) { |
|
108 | 108 | $event->getApp()->setConfig(call_user_func($callback)); |
109 | 109 | }); |
110 | 110 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | return $this->internalBootstrap( |
27 | 27 | $this->getServices()->get($this::BOOTSTRAP), |
28 | - function () { |
|
28 | + function() { |
|
29 | 29 | $this->emit(AppEvent::BOOTSTRAP, $this); |
30 | 30 | } |
31 | 31 | ); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | $modules = $app->get(Modules::class); |
20 | 20 | $modules->loadModules($this->getDependencies()); |
21 | 21 | |
22 | - $app->onConfig(function () { |
|
22 | + $app->onConfig(function() { |
|
23 | 23 | return $this->getConfig(); |
24 | 24 | }); |
25 | 25 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $routeEvent->setEventParam(AbstractRouteEvent::ROUTE_MATCH, $routeMatch); |
44 | 44 | |
45 | 45 | // binding to a route match to emit matched route event |
46 | - $app->bind(AbstractRouteEvent::MATCH, function (AbstractRouteEvent $event) use ($app, $routeMatch) { |
|
46 | + $app->bind(AbstractRouteEvent::MATCH, function(AbstractRouteEvent $event) use ($app, $routeMatch) { |
|
47 | 47 | $routeEvent = clone $event; |
48 | 48 | $routeEvent->setName($routeMatch->getMatchedRouteName()); |
49 | 49 |
@@ -10,5 +10,5 @@ |
||
10 | 10 | /** |
11 | 11 | * Path to the public asynchronous pipe file |
12 | 12 | */ |
13 | - const FILE = __DIR__ . '/../../../inc/pipe.php'; |
|
13 | + const FILE = __DIR__.'/../../../inc/pipe.php'; |
|
14 | 14 | } |
@@ -10,5 +10,5 @@ |
||
10 | 10 | /** |
11 | 11 | * Path to the public entry point file |
12 | 12 | */ |
13 | - const FILE = __DIR__ . '/../../../inc/index.php'; |
|
13 | + const FILE = __DIR__.'/../../../inc/index.php'; |
|
14 | 14 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function __toString() |
29 | 29 | { |
30 | 30 | return sprintf( |
31 | - file_get_contents(__DIR__ . '/resources/source-preview.html'), |
|
31 | + file_get_contents(__DIR__.'/resources/source-preview.html'), |
|
32 | 32 | highlight_file($this->path, true) |
33 | 33 | ); |
34 | 34 | } |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $renderer->render($doc, $cfg); |
128 | 128 | |
129 | 129 | // TODO concept |
130 | - $app->bind(SendResponseEvent::class, function () use ($doc, $event) { |
|
130 | + $app->bind(SendResponseEvent::class, function() use ($doc, $event) { |
|
131 | 131 | |
132 | 132 | /** @var \Zend\Http\PhpEnvironment\Request $request */ |
133 | 133 | $request = $event->getRequest(); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | // TODO exception |
160 | 160 | throw new \RuntimeException('Required ajax fragment element id'); |
161 | 161 | } |
162 | - $data['fragments']['#' . $id] = $node->getOuterHtml(); |
|
162 | + $data['fragments']['#'.$id] = $node->getOuterHtml(); |
|
163 | 163 | } |
164 | 164 | return $data; |
165 | 165 | } |