@@ -22,13 +22,11 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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'); |
@@ -64,7 +64,7 @@ |
||
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 |