Completed
Push — prototype ( f82a67...6656fa )
by Peter
09:57
created
library/WebinoViewLib/Component/Javascript/JQueryUIV1.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         parent::configure($node);
20 20
 
21
-        $node->setHtml($node->getHtml() . '<script>$( function() {
21
+        $node->setHtml($node->getHtml().'<script>$( function() {
22 22
     $( ".accordion" ).accordion({
23 23
     heightStyle: "content"
24 24
     });
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.
library/WebinoViewLib/Listener/SnippetsListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         }
50 50
 
51 51
         $state = $event->getState();
52
-        $state->setResolver(function ($property) use ($options, $state) {
52
+        $state->setResolver(function($property) use ($options, $state) {
53 53
             if (isset($options[$this::SNIPPETS][$property])) {
54 54
                 return $this->viewTemplates->resolve($state->format($options[$this::SNIPPETS][$property]));
55 55
             }
Please login to merge, or discard this patch.
library/WebinoViewLib/Listener/GeneralListener.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $state = $event->getState();
36 36
 
37 37
         // resolve node properties
38
-        $state->setResolver(function ($property) use ($event) {
38
+        $state->setResolver(function($property) use ($event) {
39 39
             if ('_' !== $property[0]) {
40 40
                 return;
41 41
             }
@@ -79,14 +79,14 @@  discard block
 block discarded – undo
79 79
         // TODO concept
80 80
 
81 81
         // resolve custom properties
82
-        $state->setResolver(function ($property) use ($specs, $props, $state) {
82
+        $state->setResolver(function($property) use ($specs, $props, $state) {
83 83
             if (!isset($props[$property])) {
84 84
                 return;
85 85
             }
86 86
 
87 87
             $spec = $specs[$props[$property]];
88 88
 
89
-            $args = array_map(function ($arg) use ($state) {
89
+            $args = array_map(function($arg) use ($state) {
90 90
                 return $state->format($arg);
91 91
             }, $spec['args']);
92 92
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                 $events->trigger($eventName, $event);
179 179
             } else {
180 180
                 // TODO name resolver
181
-                $events->trigger('render.component.' . $eventName, $event);
181
+                $events->trigger('render.component.'.$eventName, $event);
182 182
             }
183 183
         }
184 184
     }
Please login to merge, or discard this patch.
library/WebinoViewLib/Feature/ViewTemplateMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             );
51 51
 
52 52
             // TODO constant
53
-            $config[$index] = 'file://' . $path[0];
53
+            $config[$index] = 'file://'.$path[0];
54 54
         }
55 55
 
56 56
         return [$this::VIEW => [$this::TEMPLATES => $config]];
Please login to merge, or discard this patch.
library/WebinoViewLib/Feature/CommonView.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
         parent::__construct([[$this::VIEW => [$this::COMMON => $spec]]]);
29 29
     }
30 30
 
31
-    private function createSpec(array $config, &$spec= [])
31
+    private function createSpec(array $config, &$spec = [])
32 32
     {
33 33
         foreach ($config as $feature) {
34 34
 
Please login to merge, or discard this patch.
library/WebinoExamplesLib/Html/ConsolePreview.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
      */
36 36
     public function __toString()
37 37
     {
38
-        return (new Html\Text($this->label)) . parent::__toString();
38
+        return (new Html\Text($this->label)).parent::__toString();
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
library/WebinoBaseLib/Mail/Filename.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
      */
13 13
     public static function create()
14 14
     {
15
-        return 'ZendMail_' . microtime(true) . '.eml';
15
+        return 'ZendMail_'.microtime(true).'.eml';
16 16
     }
17 17
 }
Please login to merge, or discard this patch.