@@ -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 | ); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @param object|Bootstrap $bootstrap |
|
43 | + * @param Bootstrap $bootstrap |
|
44 | 44 | * @param callable $trigger |
45 | 45 | * @return AbstractConfiguredApplication |
46 | 46 | * @triggers bootstrap |
@@ -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 | } |
@@ -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 | /** |