Completed
Push — master ( 82cd1d...312098 )
by Nikolas
163:59 queued 138:22
created
src/delivery/web/menu/CustomMenuItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function __construct($content) {
16 16
         if (!is_callable($content)) {
17
-            $content = function () use ($content) {
17
+            $content = function() use ($content) {
18 18
                 return $content;
19 19
             };
20 20
         }
Please login to merge, or discard this patch.
src/delivery/web/renderers/charting/charts/DataPointChart.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
 
20 20
     public function data() {
21
-        return array_map(function (DataPoint $point) {
21
+        return array_map(function(DataPoint $point) {
22 22
             return array_merge(
23 23
                 [
24 24
                     "label" => $point->getLabel(),
Please login to merge, or discard this patch.
src/delivery/web/renderers/charting/charts/DataSetChart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         }
31 31
         return [
32 32
             "labels" => $this->makeLabels(),
33
-            "datasets" => array_map(function (DataSet $set) {
33
+            "datasets" => array_map(function(DataSet $set) {
34 34
                 return array_merge(
35 35
                     [
36 36
                         "label" => $set->getLabel(),
Please login to merge, or discard this patch.
src/delivery/web/renderers/charting/charts/ScatterChart.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@
 block discarded – undo
46 46
     }
47 47
 
48 48
     public function data() {
49
-        return array_map(function (ScatterDataSet $data) {
49
+        return array_map(function(ScatterDataSet $data) {
50 50
             return array_merge(
51 51
                 [
52 52
                     'label' => $data->getLabel(),
53
-                    'data' => array_map(function (ScatterDataPoint $point) {
53
+                    'data' => array_map(function(ScatterDataPoint $point) {
54 54
                         return [
55 55
                             'x' => $point->getX(),
56 56
                             'y' => $point->getY(),
Please login to merge, or discard this patch.
src/delivery/web/renderers/dashboard/types/Dashboard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * @return Element
23 23
      */
24 24
     public function render(RendererRegistry $renderers) {
25
-        return new Element('div', [], array_map(function (Row $row) use ($renderers) {
25
+        return new Element('div', [], array_map(function(Row $row) use ($renderers) {
26 26
             return $row->render($renderers);
27 27
         }, $this->rows));
28 28
     }
Please login to merge, or discard this patch.
src/delivery/web/renderers/dashboard/types/Row.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * @return Element
23 23
      */
24 24
     public function render(RendererRegistry $renderers) {
25
-        return new Element('div', ['class' => 'row'], array_map(function (Column $column) use ($renderers) {
25
+        return new Element('div', ['class' => 'row'], array_map(function(Column $column) use ($renderers) {
26 26
             return $column->render($renderers);
27 27
         }, $this->columns));
28 28
     }
Please login to merge, or discard this patch.
src/delivery/web/renderers/link/LinkPrinter.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                     $caption,
68 68
                     new Element('span', ['class' => 'caret'])
69 69
                 ]),
70
-                new Element('ul', ['class' => 'dropdown-menu'], array_map(function (Element $element) {
70
+                new Element('ul', ['class' => 'dropdown-menu'], array_map(function(Element $element) {
71 71
                     return new Element('li', [], [$element]);
72 72
                 }, $links))
73 73
             ])
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     }
76 76
 
77 77
     private function createLinks($object, $classes = '') {
78
-        return array_map(function (Link $link) use ($object, $classes) {
78
+        return array_map(function(Link $link) use ($object, $classes) {
79 79
             $action = $this->actions->getAction($link->actionId());
80 80
 
81 81
             $url = $this->baseUrl->appended($link->actionId())->withParameters(new Map($link->parameters($object)));
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -184,6 +184,9 @@
 block discarded – undo
184 184
         return $values;
185 185
     }
186 186
 
187
+    /**
188
+     * @param string $actionId
189
+     */
187 190
     private function updateCrumbs($actionId, ExecutionResult $result, WebRequest $request, ParameterReader $reader) {
188 191
         $action = $this->app->actions->getAction($actionId);
189 192
         $crumbs = $this->readCrumbs();
Please login to merge, or discard this patch.
src/delivery/web/renderers/link/LinkRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      * @return array|Link[]
12 12
      */
13 13
     public function getLinks($object) {
14
-        return array_filter($this->links, function (Link $link) use ($object) {
14
+        return array_filter($this->links, function(Link $link) use ($object) {
15 15
             return $link->handles($object);
16 16
         });
17 17
     }
Please login to merge, or discard this patch.
src/delivery/web/renderers/link/types/ClassLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
      * @param callable|null $parameters
10 10
      */
11 11
     public function __construct($class, $actionId, callable $parameters = null) {
12
-        parent::__construct($actionId, function ($object) use ($class) {
12
+        parent::__construct($actionId, function($object) use ($class) {
13 13
             return is_a($object, $class);
14 14
         }, $parameters);
15 15
     }
Please login to merge, or discard this patch.