@@ -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 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | public function setForceDownload($name = null) |
89 | 89 | { |
90 | 90 | $this->getHeaders()->addHeaders([ |
91 | - 'Content-Disposition' => 'attachment; filename="' . $this->getFileName($name) .'"', |
|
91 | + 'Content-Disposition' => 'attachment; filename="'.$this->getFileName($name).'"', |
|
92 | 92 | 'Content-Length' => $this->getContentLength(), |
93 | 93 | 'Content-Type' => 'application/force-download', |
94 | 94 | ]); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | $loadedModules = []; |
43 | 43 | foreach ($modules->getLoadedModules() as $name => $module) { |
44 | - $loadedModules[$name] = defined(get_class($module) . '::VERSION') ? $module::VERSION : '-'; |
|
44 | + $loadedModules[$name] = defined(get_class($module).'::VERSION') ? $module::VERSION : '-'; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | return $loadedModules; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function getTab() |
54 | 54 | { |
55 | - return $this->createIcon('modules', ['top' => '2px']) . parent::getTab(); |
|
55 | + return $this->createIcon('modules', ['top' => '2px']).parent::getTab(); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |