@@ -92,7 +92,7 @@ |
||
92 | 92 | */ |
93 | 93 | public function getCMSFields() |
94 | 94 | { |
95 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
95 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
96 | 96 | $fields->insertBefore( |
97 | 97 | 'Content', |
98 | 98 | TextField::create('SKU', 'Product SKU') |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function getCMSFields() |
46 | 46 | { |
47 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
47 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
48 | 48 | $fields->addFieldToTab( |
49 | 49 | 'Root.Main', |
50 | 50 | NumericField::create('ProductsPerPage') |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | $this->extend('updateProductList', $products, $categories); |
72 | 72 | |
73 | - $products = $products->filterByCallback(function ($page) { |
|
73 | + $products = $products->filterByCallback(function($page) { |
|
74 | 74 | return $page->canView(Security::getCurrentUser()); |
75 | 75 | }); |
76 | 76 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $request = $this->getRequest(); |
18 | 18 | } |
19 | 19 | $recipes = $this->data()->getProductList(); |
20 | - $start = ($request->getVar('start')) ? (int)$request->getVar('start') : 0; |
|
20 | + $start = ($request->getVar('start')) ? (int) $request->getVar('start') : 0; |
|
21 | 21 | $records = PaginatedList::create($recipes, $request); |
22 | 22 | $records->setPageStart($start); |
23 | 23 | $records->setPageLength($this->data()->ProductsPerPage); |