Completed
Push — master ( 913780...2fcaed )
by AJ
09:09 queued 06:55
created
src/Shell/ShopifyInstallShell.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -51,24 +51,24 @@
 block discarded – undo
51 51
 
52 52
             $scopeArray = 
53 53
                 ['read_content',
54
-                 'write_content',
55
-                 'read_themes',
56
-                 'write_themes',
57
-                 'read_products',
58
-                 'write_products',
59
-                 'read_customers',
60
-                 'write_customers',
61
-                 'read_orders',
62
-                 'write_orders',
63
-                 'read_script_tags',
64
-                 'write_script_tags',
65
-                 'read_fulfillments',
66
-                 'write_fulfillments',
67
-                 'read_shipping',
68
-                 'write_shipping',
69
-                 'read_analytics',
70
-                 'read_users',
71
-                 'write_users'];
54
+                    'write_content',
55
+                    'read_themes',
56
+                    'write_themes',
57
+                    'read_products',
58
+                    'write_products',
59
+                    'read_customers',
60
+                    'write_customers',
61
+                    'read_orders',
62
+                    'write_orders',
63
+                    'read_script_tags',
64
+                    'write_script_tags',
65
+                    'read_fulfillments',
66
+                    'write_fulfillments',
67
+                    'read_shipping',
68
+                    'write_shipping',
69
+                    'read_analytics',
70
+                    'read_users',
71
+                    'write_users'];
72 72
 
73 73
             $this->out('Enter your application\'s scope here.', 2);
74 74
             $this->out('Valid scope options:', 2);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $firstRun = ((Configure::check('Multidimensional/Cakephpify')) ? false : true);
38 38
 
39 39
         //Activate Plugin
40
-        if ((($firstRun) ? (strtolower($this->in('Install Shopify Plugin?', ['y', 'n'])) == 'y'): (strtolower($this->in('Update Configuration?', ['y', 'n'])) == 'y'))
40
+        if ((($firstRun) ? (strtolower($this->in('Install Shopify Plugin?', ['y', 'n'])) == 'y') : (strtolower($this->in('Update Configuration?', ['y', 'n'])) == 'y'))
41 41
         ) {
42 42
             $this->out();
43 43
             $this->out('Please enter your API credentials from your Shopify App page.', 2);
Please login to merge, or discard this patch.
src/Auth/ShopifyAuthAuthenticate.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * @param Request  $request
75 75
      * @param Response $response
76
-     * @return null|Response
76
+     * @return null|string
77 77
      */
78 78
     public function unauthenticated(Request $request, Response $response)
79 79
     {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     }
185 185
 
186 186
     /**
187
-     * @return Router
187
+     * @return string
188 188
      */
189 189
     private function _generateLoginUrl()
190 190
     {
Please login to merge, or discard this patch.
config/shopify.default.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@
 block discarded – undo
23 23
 /*/
24 24
 
25 25
 return [
26
-  'Multidimensional/Cakephpify' =>
26
+    'Multidimensional/Cakephpify' =>
27 27
     [
28
-      '{API_KEY_HERE}' =>
29
-         [
30
-          'shared_secret' => '{SHARED_SECRET_HERE}',
31
-          'scope' => '{SCOPE_HERE}',
32
-          'is_private_app' => '{TRUE/FALSE_HERE}',
33
-          'private_app_password' => '{PRIVATE_APP_PASSWORD_HERE}'
34
-         ]
28
+        '{API_KEY_HERE}' =>
29
+            [
30
+            'shared_secret' => '{SHARED_SECRET_HERE}',
31
+            'scope' => '{SCOPE_HERE}',
32
+            'is_private_app' => '{TRUE/FALSE_HERE}',
33
+            'private_app_password' => '{PRIVATE_APP_PASSWORD_HERE}'
34
+            ]
35 35
     ]
36 36
 ];
Please login to merge, or discard this patch.
config/bootstrap.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@
 block discarded – undo
25 25
 
26 26
 $config = ['{API_KEY_HERE}' =>
27 27
     [
28
-      'shared_secret' => '{SHARED_SECRET_HERE}',
29
-      'scope' => '{SCOPE_HERE}',
30
-      'is_private_app' => '{TRUE/FALSE_HERE}',
31
-      'private_app_password' => '{PRIVATE_APP_PASSWORD_HERE}'
28
+        'shared_secret' => '{SHARED_SECRET_HERE}',
29
+        'scope' => '{SCOPE_HERE}',
30
+        'is_private_app' => '{TRUE/FALSE_HERE}',
31
+        'private_app_password' => '{PRIVATE_APP_PASSWORD_HERE}'
32 32
     ]
33 33
 ];
34 34
 
Please login to merge, or discard this patch.
config/routes.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     'Multidimensional/Cakephpify',
21 21
     ['path' => '/'],
22 22
     function ($routes) {
23
-		$routes->prefix('shopify', function ($routes) {
23
+        $routes->prefix('shopify', function ($routes) {
24 24
         $shopifyAPIKeys = array_keys(Configure::read('Multidimensional/Cakephpify'));
25 25
         if (is_array($shopifyAPIKeys) && count($shopifyAPIKeys) >= 0) {
26 26
             $routes->connect(
@@ -29,6 +29,6 @@  discard block
 block discarded – undo
29 29
                 ['api_key' => implode('|', $shopifyAPIKeys), 'pass' => ['api_key']]
30 30
             );
31 31
         }
32
-		});
32
+        });
33 33
     }
34 34
 );
Please login to merge, or discard this patch.