Completed
Pull Request — master (#6)
by AJ
12:51
created
src/Auth/ShopifyAuthAuthenticate.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,17 +40,17 @@
 block discarded – undo
40 40
 		
41 41
         if (empty($this->api_key)) {
42 42
 
43
-          $controller = $this->_registry->getController();
43
+            $controller = $this->_registry->getController();
44 44
 
45
-          if (isset($controller->request->api_key)) {
45
+            if (isset($controller->request->api_key)) {
46 46
             $this->api_key = $controller->request->api_key;
47
-          }
47
+            }
48 48
 
49 49
         }
50 50
 		
51 51
         $this->ShopifyAPI = $registry->load('Multidimensional/Shopify.ShopifyAPI', [
52 52
             'api_key' => $this->api_key
53
-		]);
53
+        ]);
54 54
 
55 55
         $this->ShopifyDatabase = $registry->load('Multidimensional/Shopify.ShopifyDatabase');
56 56
     }
Please login to merge, or discard this patch.
src/Controller/Component/ShopifyAPIComponent.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,26 +41,26 @@
 block discarded – undo
41 41
 
42 42
         parent::initialize($config);
43 43
         
44
-      $this->api_key = isset($config['api_key']) ? $config['api_key'] : '';
44
+        $this->api_key = isset($config['api_key']) ? $config['api_key'] : '';
45 45
 				
46
-      if (!empty($this->api_key)) {
46
+        if (!empty($this->api_key)) {
47 47
 
48 48
         $this->shared_secret = Configure::read('Multidimensional/Shopify.' . $this->api_key . '.shared_secret');
49 49
         $this->scope = Configure::read('Multidimensional/Shopify.' . $this->api_key . '.scope');
50 50
         $this->is_private_app = Configure::read('Multidimensional/Shopify.' . $this->api_key . '.is_private_app');
51 51
         $this->private_app_password = Configure::read('Multidimensional/Shopify.' . $this->api_key . '.private_app_password');        
52 52
 
53
-      } else {
53
+        } else {
54 54
 
55 55
         throw new NotImplementedException(__('Shopify API key not found'));
56 56
 
57
-      }
57
+        }
58 58
 
59
-      if (!$this->shared_secret) {
59
+        if (!$this->shared_secret) {
60 60
 
61 61
         throw new NotImplementedException(__('Shopify shared secret not found'));
62 62
 
63
-      }
63
+        }
64 64
       
65 65
     }
66 66
 
Please login to merge, or discard this patch.