Completed
Push — prototype ( 9dff07...0f98b2 )
by Peter
02:59
created
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.
library/WebinoAppLib/Util/ConsoleEventNameResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
      */
17 17
     public function __invoke($name)
18 18
     {
19
-        return $this->getUsePrefix($name) ? $name : RouteEvent::PREFIX . ConsoleEvent::PREFIX . $name;
19
+        return $this->getUsePrefix($name) ? $name : RouteEvent::PREFIX.ConsoleEvent::PREFIX.$name;
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
library/WebinoAppLib/Util/RouteEventNameResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function __invoke($name)
22 22
     {
23
-        return $this->getUsePrefix($name) ? $name : RouteEvent::PREFIX . $name;
23
+        return $this->getUsePrefix($name) ? $name : RouteEvent::PREFIX.$name;
24 24
     }
25 25
 
26 26
     /**
Please login to merge, or discard this patch.
library/WebinoAppLib/Feature/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     protected function mergeArray(array $merge)
35 35
     {
36
-        array_walk_recursive($merge, function (&$item) {
36
+        array_walk_recursive($merge, function(&$item) {
37 37
             if ($item instanceof self) {
38 38
                 $this->mergeArray($item->takeCoreServices());
39 39
                 $item = $item->toArray();
Please login to merge, or discard this patch.
library/WebinoConfigLib/Log/Writer/Stream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
         $options = [];
20 20
 
21 21
         $stream and $options['stream']       = $stream;
22
-        $mode   and $options['mode']         = $mode;
23
-        $mode   and $options['logSeparator'] = $separator;
22
+        $mode and $options['mode']         = $mode;
23
+        $mode and $options['logSeparator'] = $separator;
24 24
 
25 25
         $this->mergeArray([
26 26
             'name'     => 'stream',
Please login to merge, or discard this patch.
library/WebinoConfigLib/Mail/Transport/File.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
         $this->setType('file');
20 20
         $this->setOptions([
21 21
             'path'     => $path ? $path : 'tmp/mail',
22
-            'callback' => Filename::class . '::create',
22
+            'callback' => Filename::class.'::create',
23 23
         ]);
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
library/WebinoExceptionLib/ExceptionFormatTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
         $params = [$this->message];
24 24
         foreach ($args as $arg) {
25 25
             if (is_string($arg)) {
26
-                $params[] = '`' . $arg . '`';
26
+                $params[] = '`'.$arg.'`';
27 27
 
28 28
             } elseif (is_object($arg)) {
29
-                $params[] = '`' . get_class($arg) . '`';
29
+                $params[] = '`'.get_class($arg).'`';
30 30
             } else {
31 31
                 $params[] = print_r($arg, true);
32 32
             }
Please login to merge, or discard this patch.
library/WebinoViewLib/Component/Stylesheet/Link.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,6 +46,6 @@
 block discarded – undo
46 46
         $node
47 47
             ->setPriority(-100)
48 48
             ->setLocator('head')
49
-            ->setHtml('{$_innerHtml} <link href="' . $this->href . '" rel="stylesheet"/>');
49
+            ->setHtml('{$_innerHtml} <link href="'.$this->href.'" rel="stylesheet"/>');
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
library/WebinoViewLib/Component/AbstractBaseViewComponent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         // TODO refactor
38 38
 
39
-        $callback = function (DispatchEvent $event) {
39
+        $callback = function(DispatchEvent $event) {
40 40
             // TODO
41 41
             (isset($this->x) && ($this instanceof OnDispatchInterface || method_exists($this, 'onDispatchState')))
42 42
                 and call_user_func($this->x, $event);
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             and $this->listen(AppEvent::DISPATCH, $callback, AppEvent::FINISH);
48 48
 
49 49
         ($this instanceof OnRenderComponentInterface)
50
-            and $this->listen(static::class, function (RenderEvent $event) {
50
+            and $this->listen(static::class, function(RenderEvent $event) {
51 51
 
52 52
             // TODO redesign
53 53
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                     // TODO
56 56
                     || method_exists($this, 'onDispatchState')
57 57
                 ) {
58
-                    $this->x = function (DispatchEvent $dispatchEvent) use ($event) {
58
+                    $this->x = function(DispatchEvent $dispatchEvent) use ($event) {
59 59
 
60 60
                         // TODO
61 61
                         ($this instanceof OnDispatchInterface) and $this->onDispatch($dispatchEvent);
Please login to merge, or discard this patch.