@@ -33,11 +33,11 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function structure(); |
| 35 | 35 | |
| 36 | - /** |
|
| 37 | - * Get the total number of rows |
|
| 38 | - * |
|
| 39 | - * @return integer |
|
| 40 | - */ |
|
| 36 | + /** |
|
| 37 | + * Get the total number of rows |
|
| 38 | + * |
|
| 39 | + * @return integer |
|
| 40 | + */ |
|
| 41 | 41 | public function numRows(); |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | foreach ($layouts as $l) { |
| 58 | 58 | $loop = isset($l['loop']) ? (int)$l['loop'] : 1; |
| 59 | 59 | unset($l['loop']); |
| 60 | - for ($i=0; $i<$loop; $i++) { |
|
| 60 | + for ($i = 0; $i < $loop; $i++) { |
|
| 61 | 61 | $computedLayouts[] = $l; |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | } |
| 222 | 222 | $first = $this->rowFirstCellIndex($position); |
| 223 | 223 | |
| 224 | - return ($position - $first); |
|
| 224 | + return ($position-$first); |
|
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | /** |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | */ |
| 263 | 263 | public function cellSpanBy12($position = null) |
| 264 | 264 | { |
| 265 | - $numColumns = $this->rowNumColumns($position); |
|
| 265 | + $numColumns = $this->rowNumColumns($position); |
|
| 266 | 266 | if (!$numColumns) { |
| 267 | 267 | return null; |
| 268 | 268 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * @param Container $container A Pimple DI container. |
| 36 | 36 | * @return LayoutFactory |
| 37 | 37 | */ |
| 38 | - $container['dashboard/factory'] = function (Container $container) { |
|
| 38 | + $container['dashboard/factory'] = function(Container $container) { |
|
| 39 | 39 | return new Factory([ |
| 40 | 40 | 'base_class' => DashboardInterface::class, |
| 41 | 41 | 'default_class' => GenericDashboard::class, |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * @param Container $container A Pimple DI container. |
| 56 | 56 | * @return LayoutBuilder |
| 57 | 57 | */ |
| 58 | - $container['dashboard/builder'] = function (Container $container) { |
|
| 58 | + $container['dashboard/builder'] = function(Container $container) { |
|
| 59 | 59 | $dashboardFactory = $container['dashboard/factory']; |
| 60 | 60 | $dashboardBuilder = new DashboardBuilder($dashboardFactory, $container); |
| 61 | 61 | return $dashboardBuilder; |
@@ -152,7 +152,7 @@ |
||
| 152 | 152 | public function widgets(callable $widgetCallback = null) |
| 153 | 153 | { |
| 154 | 154 | $widgets = $this->widgets; |
| 155 | - uasort($widgets, [ $this, 'sortItemsByPriority' ]); |
|
| 155 | + uasort($widgets, [$this, 'sortItemsByPriority']); |
|
| 156 | 156 | |
| 157 | 157 | $widgetCallback = isset($widgetCallback) ? $widgetCallback : $this->widgetCallback; |
| 158 | 158 | foreach ($widgets as $widget) { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * @param Container $container A Pimple DI container. |
| 35 | 35 | * @return LayoutFactory |
| 36 | 36 | */ |
| 37 | - $container['layout/factory'] = function () { |
|
| 37 | + $container['layout/factory'] = function() { |
|
| 38 | 38 | |
| 39 | 39 | $layoutFactory = new LayoutFactory(); |
| 40 | 40 | return $layoutFactory; |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * @param Container $container A Pimple DI container. |
| 45 | 45 | * @return LayoutBuilder |
| 46 | 46 | */ |
| 47 | - $container['layout/builder'] = function (Container $container) { |
|
| 47 | + $container['layout/builder'] = function(Container $container) { |
|
| 48 | 48 | $layoutFactory = $container['layout/factory']; |
| 49 | 49 | $layoutBuilder = new LayoutBuilder($layoutFactory, $container); |
| 50 | 50 | return $layoutBuilder; |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | public function items(callable $itemCallback = null) |
| 126 | 126 | { |
| 127 | 127 | $items = $this->items; |
| 128 | - uasort($items, [ $this, 'sortItemsByPriority' ]); |
|
| 128 | + uasort($items, [$this, 'sortItemsByPriority']); |
|
| 129 | 129 | |
| 130 | 130 | $itemCallback = isset($itemCallback) ? $itemCallback : $this->itemCallback; |
| 131 | 131 | foreach ($items as $item) { |
@@ -347,7 +347,7 @@ |
||
| 347 | 347 | public function groups(callable $groupCallback = null) |
| 348 | 348 | { |
| 349 | 349 | $groups = $this->groups; |
| 350 | - uasort($groups, [ $this, 'sortItemsByPriority' ]); |
|
| 350 | + uasort($groups, [$this, 'sortItemsByPriority']); |
|
| 351 | 351 | |
| 352 | 352 | $groupCallback = (isset($groupCallback) ? $groupCallback : $this->groupCallback); |
| 353 | 353 | |
@@ -195,7 +195,7 @@ |
||
| 195 | 195 | public function inputs(callable $inputCallback = null) |
| 196 | 196 | { |
| 197 | 197 | $groups = $this->groups; |
| 198 | - uasort($groups, [ $this, 'sortItemsByPriority' ]); |
|
| 198 | + uasort($groups, [$this, 'sortItemsByPriority']); |
|
| 199 | 199 | |
| 200 | 200 | $inputCallback = isset($inputCallback) ? $inputCallback : $this->inputCallback; |
| 201 | 201 | foreach ($inputs as $input) { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * @var callable |
| 78 | 78 | */ |
| 79 | - $delegate = function (Container $container) { |
|
| 79 | + $delegate = function(Container $container) { |
|
| 80 | 80 | $args = [ |
| 81 | 81 | 'container' => $container, |
| 82 | 82 | 'logger' => $container['logger'], |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * @param Container $container A Pimple DI container. |
| 100 | 100 | * @return MenuFactory |
| 101 | 101 | */ |
| 102 | - $container['menu/item/factory'] = function (Container $container) use ($delegate) { |
|
| 102 | + $container['menu/item/factory'] = function(Container $container) use ($delegate) { |
|
| 103 | 103 | $services = $delegate($container); |
| 104 | 104 | |
| 105 | 105 | $container['menu/item/builder'] = $services['builder']; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * @param Container $container A Pimple DI container. |
| 111 | 111 | * @return MenuBuilder |
| 112 | 112 | */ |
| 113 | - $container['menu/item/builder'] = function (Container $container) use ($delegate) { |
|
| 113 | + $container['menu/item/builder'] = function(Container $container) use ($delegate) { |
|
| 114 | 114 | $services = $delegate($container); |
| 115 | 115 | |
| 116 | 116 | $container['menu/item/factory'] = $services['factory']; |