Passed
Pull Request — master (#33)
by Jason
03:28
created
src/Page/Product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.
src/Page/ProductCategory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Controller/ProductCategoryController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.