@@ -51,24 +51,24 @@ |
||
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); |
@@ -37,7 +37,7 @@ |
||
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); |
@@ -73,7 +73,7 @@ discard block |
||
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 |
||
184 | 184 | } |
185 | 185 | |
186 | 186 | /** |
187 | - * @return Router |
|
187 | + * @return string |
|
188 | 188 | */ |
189 | 189 | private function _generateLoginUrl() |
190 | 190 | { |
@@ -23,14 +23,14 @@ |
||
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 | ]; |
@@ -25,10 +25,10 @@ |
||
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 |
@@ -20,7 +20,7 @@ discard block |
||
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 |
||
29 | 29 | ['api_key' => implode('|', $shopifyAPIKeys), 'pass' => ['api_key']] |
30 | 30 | ); |
31 | 31 | } |
32 | - }); |
|
32 | + }); |
|
33 | 33 | } |
34 | 34 | ); |