Completed
Push — master ( 076ad5...3005ec )
by AJ
14:22
created
src/Shell/ShopifyInstallShell.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $first_run = ((Configure::check('Multidimensional/Cakephpify')) ? false : true);
36 36
             
37 37
         //Activate Plugin           
38
-        if ((($first_run) ? (strtolower($this->in('Install Shopify Plugin?', ['y','n'])) == 'y') : (strtolower($this->in('Update Configuration?', ['y','n'])) == 'y'))) {
38
+        if ((($first_run) ? (strtolower($this->in('Install Shopify Plugin?', ['y', 'n'])) == 'y') : (strtolower($this->in('Update Configuration?', ['y', 'n'])) == 'y'))) {
39 39
             
40 40
 
41 41
             $this->out();
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 }
67 67
                 $scope = array_map('trim', $scope);
68 68
                 $scope = array_map('strtolower', $scope);
69
-                array_walk($scope, function (&$value) {
69
+                array_walk($scope, function(&$value) {
70 70
                     $value = str_replace(" ", "_", $value);
71 71
                 });
72 72
 
@@ -75,9 +75,9 @@  discard block
 block discarded – undo
75 75
                     $this->_io->out('<error>Invalid Scope. Try again, or leave blank to continue.</error>');
76 76
                 }
77 77
 
78
-            } while((count($scope)) && (strlen(trim(implode("", $scope))) > 0) && (count(array_diff($scope, $scope_array)) > 0));
78
+            } while ((count($scope)) && (strlen(trim(implode("", $scope))) > 0) && (count(array_diff($scope, $scope_array)) > 0));
79 79
             
80
-            Configure::write('Multidimensional/Cakephpify.' . $api_key . '.scope',implode(',', $scope));
80
+            Configure::write('Multidimensional/Cakephpify.' . $api_key . '.scope', implode(',', $scope));
81 81
             
82 82
             $this->out('');
83 83
             $isPrivateApp = strtolower($this->in('Is this a private app?', ['y', 'n']));
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
             }
90 90
 
91 91
             
92
-            Configure::write('Multidimensional/Cakephpify.' . $api_key . '.is_private_app',$is_private_app);
92
+            Configure::write('Multidimensional/Cakephpify.' . $api_key . '.is_private_app', $is_private_app);
93 93
             
94 94
             if ($is_private_app == 'true') {
95
-                Configure::write('Multidimensional/Cakephpify.' . $api_key . '.private_app_password',$this->in('Private App Password:'));
95
+                Configure::write('Multidimensional/Cakephpify.' . $api_key . '.private_app_password', $this->in('Private App Password:'));
96 96
             } else {
97 97
                 Configure::write('Multidimensional/Cakephpify.' . $api_key . '.private_app_password', NULL);
98 98
             }
Please login to merge, or discard this patch.