Completed
Push — prototype ( f82a67...6656fa )
by Peter
09:57
created
library/WebinoAppLib/Application/Traits/ConfigTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
library/WebinoAppLib/Module/AbstractModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
library/WebinoAppLib/Listener/AbstractRoutingListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
library/WebinoAppLib/Includes/Pipe.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
library/WebinoAppLib/Includes/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
library/WebinoAppLib/Response/Content/SourcePreview.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
library/WebinoAppLib/Response/StreamResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
library/WebinoAppLib/Debugger/Bar/ModulesPanel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
library/WebinoAppLib/Debugger/Bar/AbstractPanel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     protected function getDir()
40 40
     {
41
-        return __DIR__ . '/' . $this::RESOURCES;
41
+        return __DIR__.'/'.$this::RESOURCES;
42 42
     }
43 43
 
44 44
     /**
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
      */
77 77
     protected function createIcon($name, array $style = [])
78 78
     {
79
-        $data   = file_get_contents($this->getDir() . '/' . $name . '.png');
80
-        $base64 = 'data:image/png;base64,' . base64_encode($data);
79
+        $data   = file_get_contents($this->getDir().'/'.$name.'.png');
80
+        $base64 = 'data:image/png;base64,'.base64_encode($data);
81 81
         return (new Html\Img($base64))->setStyle($style);
82 82
     }
83 83
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         ob_start();
91 91
         /** @noinspection PhpIncludeInspection */
92
-        require $this->getDir() . '/' . $name . '.phtml';
92
+        require $this->getDir().'/'.$name.'.phtml';
93 93
         return ob_get_clean();
94 94
     }
95 95
 }
Please login to merge, or discard this patch.