@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | $itemParameter = $this->makeInnerParameter($parameter); |
48 | 48 | |
49 | - return $serialized->slice(1)->map(function ($item) use ($itemParameter) { |
|
49 | + return $serialized->slice(1)->map(function($item) use ($itemParameter) { |
|
50 | 50 | return $this->fields->getField($itemParameter)->inflate($itemParameter, $item); |
51 | 51 | })->toArray(); |
52 | 52 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | $injector = new Injector(new Factory()); |
57 | - $instance = $injector->injectConstructor($this->getClass($parameter), $properties, function () { |
|
57 | + $instance = $injector->injectConstructor($this->getClass($parameter), $properties, function() { |
|
58 | 58 | return false; |
59 | 59 | }); |
60 | 60 |
@@ -14,7 +14,7 @@ |
||
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 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | public function render(WebRequest $request) { |
38 | - $render = function (MenuItem $item) use ($request) { |
|
38 | + $render = function(MenuItem $item) use ($request) { |
|
39 | 39 | return $item->render($request); |
40 | 40 | }; |
41 | 41 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | new Element('span', ['class' => 'caret']) |
35 | 35 | ]), |
36 | 36 | new Element('ul', ['class' => 'dropdown-menu'], |
37 | - array_map(function (MenuItem $item) use ($request) { |
|
37 | + array_map(function(MenuItem $item) use ($request) { |
|
38 | 38 | return $item->render($request); |
39 | 39 | }, $this->items) |
40 | 40 | ) |
@@ -18,7 +18,7 @@ |
||
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(), |
@@ -30,7 +30,7 @@ |
||
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(), |
@@ -46,11 +46,11 @@ |
||
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(), |
@@ -22,7 +22,7 @@ |
||
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 | } |