Completed
Push — master ( 0bf679...0df0ec )
by AJ
11:39
created
src/Controller/Component/ShopifyDatabaseComponent.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
     /**
122 122
      * @param string $domain
123
-     * @return int|false
123
+     * @return boolean
124 124
      */
125 125
     public function getShopIdFromDomain($domain)
126 126
     {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     /**
136 136
      * @param string $accessToken
137 137
      * @param string $apiKey
138
-     * @return array|false
138
+     * @return boolean
139 139
      */
140 140
     public function getShopDataFromAccessToken($accessToken, $apiKey)
141 141
     {
Please login to merge, or discard this patch.
tests/TestCase/Controller/Component/ShopifyDatabaseComponentTest.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -67,71 +67,71 @@
 block discarded – undo
67 67
 
68 68
     public function testGetShopIdFromDomain()
69 69
     {
70
-		//$return = $this->component->getShopIdFromDomain('test.myshopify.com');
71
-		//$this->assertSame($return, 8675309);
72
-		//$this->assertEquals($return, 8675309);
70
+        //$return = $this->component->getShopIdFromDomain('test.myshopify.com');
71
+        //$this->assertSame($return, 8675309);
72
+        //$this->assertEquals($return, 8675309);
73 73
 
74
-		$return = $this->component->getShopIdFromDomain('false.myshopify.com');
75
-		$this->assertFalse($return);
74
+        $return = $this->component->getShopIdFromDomain('false.myshopify.com');
75
+        $this->assertFalse($return);
76 76
 		
77
-		$return = $this->component->getShopIdFromDomain('not-a-domain.com');
78
-		$this->assertFalse($return);
77
+        $return = $this->component->getShopIdFromDomain('not-a-domain.com');
78
+        $this->assertFalse($return);
79 79
 		
80
-		$return = $this->component->getShopIdFromDomain(null);
81
-		$this->assertFalse($return);
80
+        $return = $this->component->getShopIdFromDomain(null);
81
+        $this->assertFalse($return);
82 82
 		
83
-		$return = $this->component->getShopIdFromDomain(true);
84
-		$this->assertFalse($return);
83
+        $return = $this->component->getShopIdFromDomain(true);
84
+        $this->assertFalse($return);
85 85
 		
86
-		$return = $this->component->getShopIdFromDomain(false);
87
-		$this->assertFalse($return);
86
+        $return = $this->component->getShopIdFromDomain(false);
87
+        $this->assertFalse($return);
88 88
     }
89 89
 
90 90
     public function testGetShopDataFromAccessToken()
91 91
     {
92 92
         $return = $this->component->getShopDataFromAccessToken(null, null);
93
-		$this->assertFalse($return);
93
+        $this->assertFalse($return);
94 94
 		
95
-		$return = $this->component->getShopDataFromAccessToken(null, true);
96
-		$this->assertFalse($return);
95
+        $return = $this->component->getShopDataFromAccessToken(null, true);
96
+        $this->assertFalse($return);
97 97
 		
98
-		$return = $this->component->getShopDataFromAccessToken(true, null);
99
-		$this->assertFalse($return);
98
+        $return = $this->component->getShopDataFromAccessToken(true, null);
99
+        $this->assertFalse($return);
100 100
 		
101
-		$return = $this->component->getShopDataFromAccessToken(null, false);
102
-		$this->assertFalse($return);
101
+        $return = $this->component->getShopDataFromAccessToken(null, false);
102
+        $this->assertFalse($return);
103 103
 		
104
-		$return = $this->component->getShopDataFromAccessToken(false, null);
105
-		$this->assertFalse($return);
104
+        $return = $this->component->getShopDataFromAccessToken(false, null);
105
+        $this->assertFalse($return);
106 106
 		
107
-		$return = $this->component->getShopDataFromAccessToken(false, false);
108
-		$this->assertFalse($return);
107
+        $return = $this->component->getShopDataFromAccessToken(false, false);
108
+        $this->assertFalse($return);
109 109
 		
110
-		$return = $this->component->getShopDataFromAccessToken(true, true);
111
-		$this->assertFalse($return);
110
+        $return = $this->component->getShopDataFromAccessToken(true, true);
111
+        $this->assertFalse($return);
112 112
     }
113 113
 
114 114
     public function testGetAccessTokenFromShopDomain()
115 115
     {
116 116
         $return = $this->component->getAccessTokenFromShopDomain(null, null);
117
-		$this->assertFalse($return);
117
+        $this->assertFalse($return);
118 118
 		
119
-		$return = $this->component->getAccessTokenFromShopDomain(null, true);
120
-		$this->assertFalse($return);
119
+        $return = $this->component->getAccessTokenFromShopDomain(null, true);
120
+        $this->assertFalse($return);
121 121
 		
122
-		$return = $this->component->getAccessTokenFromShopDomain(true, null);
123
-		$this->assertFalse($return);
122
+        $return = $this->component->getAccessTokenFromShopDomain(true, null);
123
+        $this->assertFalse($return);
124 124
 		
125
-		$return = $this->component->getAccessTokenFromShopDomain(null, false);
126
-		$this->assertFalse($return);
125
+        $return = $this->component->getAccessTokenFromShopDomain(null, false);
126
+        $this->assertFalse($return);
127 127
 		
128
-		$return = $this->component->getAccessTokenFromShopDomain(false, null);
129
-		$this->assertFalse($return);
128
+        $return = $this->component->getAccessTokenFromShopDomain(false, null);
129
+        $this->assertFalse($return);
130 130
 		
131
-		$return = $this->component->getAccessTokenFromShopDomain(false, false);
132
-		$this->assertFalse($return);
131
+        $return = $this->component->getAccessTokenFromShopDomain(false, false);
132
+        $this->assertFalse($return);
133 133
 		
134
-		$return = $this->component->getAccessTokenFromShopDomain(true, true);
135
-		$this->assertFalse($return);		
134
+        $return = $this->component->getAccessTokenFromShopDomain(true, true);
135
+        $this->assertFalse($return);		
136 136
     }
137 137
 }
Please login to merge, or discard this patch.
tests/TestCase/Shell/ShopifyInstallShellTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
     {
29 29
         parent::setUp();
30 30
         
31
-		$this->out = new ConsoleOutput();
31
+        $this->out = new ConsoleOutput();
32 32
         $io = new ConsoleIo($this->out);
33 33
         $this->Shell = $this->getMockBuilder('ShopifyInstallShell')
34 34
             ->setMethods(['in', 'err', '_stop', 'clear'])
35 35
             ->setConstructorArgs([$io])
36 36
             ->getMock();			
37
-	}
37
+    }
38 38
     
39 39
     public function tearDown()
40 40
     {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function testMain()
46 46
     {
47 47
         $this->markTestIncomplete('Not implemented yet.'); 
48
-		/*$this->Shell->main();
48
+        /*$this->Shell->main();
49 49
         $output = $this->out->messages();
50 50
 		$expected = "/(.*)/";
51 51
         $this->assertRegExp($expected, $output);
Please login to merge, or discard this patch.