Completed
Push — master ( e78aa7...260413 )
by AJ
06:05
created
src/Controller/InstallController.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,13 +22,11 @@  discard block
 block discarded – undo
22 22
 
23 23
 use Multidimensional\Cakephpify\Controller\AppController;
24 24
 
25
-class InstallController extends AppController
26
-{
25
+class InstallController extends AppController {
27 26
 
28 27
     private $error;
29 28
 
30
-    public function initialize()
31
-    {
29
+    public function initialize() {
32 30
 
33 31
         parent::initialize();
34 32
         $this->loadComponent('Multidimensional/Cakephpify.ShopifyDatabase');
@@ -37,8 +35,7 @@  discard block
 block discarded – undo
37 35
         $this->error = false;
38 36
     }
39 37
 
40
-    public function add()
41
-    {
38
+    public function add() {
42 39
 
43 40
         $isAuthorized = $this->ShopifyAPI->validateHMAC($this->request->query);
44 41
 
@@ -94,8 +91,7 @@  discard block
 block discarded – undo
94 91
         $this->render('index');
95 92
     }
96 93
 
97
-    public function index()
98
-    {
94
+    public function index() {
99 95
 
100 96
         if (!empty($this->request->query['code']) && !$this->error) {
101 97
             $this->render('add');
@@ -130,8 +126,7 @@  discard block
 block discarded – undo
130 126
         }
131 127
     }
132 128
 
133
-    public function redirect($url, $status = 302)
134
-    {
129
+    public function redirect($url, $status = 302) {
135 130
 
136 131
         $this->set('shopify_auth_url', $url);
137 132
         $this->render('redirect');
Please login to merge, or discard this patch.
src/Shell/ShopifyInstallShell.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
                 }
65 65
                 $scope = array_map('trim', $scope);
66 66
                 $scope = array_map('strtolower', $scope);
67
-                array_walk($scope, function (&$value) {
67
+                array_walk($scope, function(&$value) {
68 68
                     $value = str_replace(" ", "_", $value);
69 69
                 });
70 70
 
Please login to merge, or discard this patch.