@@ -25,6 +25,6 @@ |
||
| 25 | 25 | * @return mixed |
| 26 | 26 | */ |
| 27 | 27 | public function render($value) { |
| 28 | - return ($this->fileDir ? $this->fileDir . DIRECTORY_SEPARATOR : '') .$value->getName(); |
|
| 28 | + return ($this->fileDir ? $this->fileDir . DIRECTORY_SEPARATOR : '') . $value->getName(); |
|
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | \ No newline at end of file |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * @return array|string[] |
| 42 | 42 | */ |
| 43 | 43 | public static function filter(array $headElements) { |
| 44 | - return array_values(array_unique(array_map(function (Element $element) { |
|
| 44 | + return array_values(array_unique(array_map(function(Element $element) { |
|
| 45 | 45 | return (string)$element; |
| 46 | 46 | }, $headElements))); |
| 47 | 47 | } |
@@ -150,14 +150,14 @@ |
||
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | private function renderAspectRatioButtons() { |
| 153 | - return array_map(function ($ratio) { |
|
| 153 | + return array_map(function($ratio) { |
|
| 154 | 154 | list($nom, $den) = $ratio; |
| 155 | 155 | return $this->renderButton("$nom:$den", "Fix aspect ratio to $nom:$den", "$(this).setOption('setAspectRatio', $nom/$den)"); |
| 156 | 156 | }, $this->getAspectRatios()); |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | private function renderRotationButtons() { |
| 160 | - return array_map(function ($angle) { |
|
| 160 | + return array_map(function($angle) { |
|
| 161 | 161 | return $this->renderButton("$angle°", "Rotate by $angle degree", "$(this).setOption('rotate', $angle)"); |
| 162 | 162 | }, $this->getRotatingAngles()); |
| 163 | 163 | } |
@@ -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 | } |
@@ -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 | } |