Passed
Branch master (21c629)
by Nicholas
03:31 queued 01:50
created
src/Services/Product.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 	public function __construct()
12 12
 	{
13
-	    $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
13
+	    $config = include(realpath(dirname(__FILE__).'/../config/config.php'));
14 14
 	    $this->location = $config->location;
15 15
 		$this->wsdl = 'https://testws.atdconnect.com/ws/3_4/products.wsdl';
16 16
 	}
@@ -21,17 +21,17 @@  discard block
 block discarded – undo
21 21
         
22 22
     public  function getProdBrand($product = null)
23 23
     {
24
-    	return $this->apiCall('getProdBrand',array('locationNumber' => $this->location,'productGroup' => $product),$this->wsdl);
24
+    	return $this->apiCall('getProdBrand', array('locationNumber' => $this->location, 'productGroup' => $product), $this->wsdl);
25 25
     }
26 26
     
27 27
     public  function getProductByCriteria($search)
28 28
     {
29
-        return $this->apiCall('getProductByCriteria',$search,$this->wsdl);
29
+        return $this->apiCall('getProductByCriteria', $search, $this->wsdl);
30 30
     }
31 31
     
32 32
     public  function getProductByKeyword($search)
33 33
     {
34
-        return $this->apiCall('getProductByKeyword',$search,$this->wsdl);
34
+        return $this->apiCall('getProductByKeyword', $search, $this->wsdl);
35 35
     }    
36 36
         
37 37
 
Please login to merge, or discard this patch.
src/Services/Status.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
     
19 19
     public  function getOrderDetail($status)
20 20
     {
21
-        return $this->apiCall('getOrderDetail',$status,$this->wsdl);
21
+        return $this->apiCall('getOrderDetail', $status, $this->wsdl);
22 22
     }
23 23
     
24 24
     public  function getOrderStatusByCriteria($criteria)
25 25
     {
26
-        return $this->apiCall('getOrderStatusByCriteria',$criteria,$this->wsdl);
26
+        return $this->apiCall('getOrderStatusByCriteria', $criteria, $this->wsdl);
27 27
     }    
28 28
         
29 29
 
Please login to merge, or discard this patch.
src/Services/Location.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 	public function __construct()
12 12
 	{
13
-	    $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
13
+	    $config = include(realpath(dirname(__FILE__).'/../config/config.php'));
14 14
 	    $this->location = $config->location;
15 15
 		$this->wsdl = 'https://testws.atdconnect.com/ws/3_4/locations.wsdl';
16 16
 		
@@ -22,17 +22,17 @@  discard block
 block discarded – undo
22 22
     
23 23
     public  function getLocationByCriteria()
24 24
     {
25
-        return $this->apiCall('getLocationByCriteria','',$this->wsdl);
25
+        return $this->apiCall('getLocationByCriteria', '', $this->wsdl);
26 26
     }
27 27
     
28 28
     public  function getLocationCutoffTimes()
29 29
     {
30
-        return $this->apiCall('getLocationCutoffTimes',['location' => $this->location],$this->wsdl);
30
+        return $this->apiCall('getLocationCutoffTimes', ['location' => $this->location], $this->wsdl);
31 31
     }
32 32
     
33 33
     public  function getDistributionCenter($dc = '059')
34 34
     {
35
-        return $this->apiCall('getDistributionCenter',array('servicingDC' => $dc),$this->wsdl);
35
+        return $this->apiCall('getDistributionCenter', array('servicingDC' => $dc), $this->wsdl);
36 36
     }
37 37
     
38 38
         
Please login to merge, or discard this patch.
src/Services/Brand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 	public function __construct()
12 12
 	{
13
-	    $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
13
+	    $config = include(realpath(dirname(__FILE__).'/../config/config.php'));
14 14
 	    $this->location = $config->location;
15 15
 		$this->wsdl = 'https://testws.atdconnect.com/ws/3_4/brandstyles.wsdl';
16 16
 	}
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
22 22
     
23 23
     public  function getBrand($product = null)
24 24
     {
25
-    	return $this->apiCall('getBrand',array('locationNumber' => $this->location,'productGroup' => $product),$this->wsdl);
25
+    	return $this->apiCall('getBrand', array('locationNumber' => $this->location, 'productGroup' => $product), $this->wsdl);
26 26
     }
27 27
     
28 28
     public  function getStyle($brand = null)
29 29
     {
30
-    	return $this->apiCall('getStyle',array('locationNumber' => $this->location,'brand' => $brand),$this->wsdl);
30
+    	return $this->apiCall('getStyle', array('locationNumber' => $this->location, 'brand' => $brand), $this->wsdl);
31 31
     }
32 32
         
33 33
 
Please login to merge, or discard this patch.
src/Services/Order.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
     
19 19
     public  function placeOrder($order)
20 20
     {
21
-        return $this->apiCall('placeOrder',$order,$this->wsdl);
21
+        return $this->apiCall('placeOrder', $order, $this->wsdl);
22 22
     }
23 23
     
24 24
     public  function previewOrder($order)
25 25
     {
26
-        return $this->apiCall('previewOrder',$order,$this->wsdl);
26
+        return $this->apiCall('previewOrder', $order, $this->wsdl);
27 27
     }
28 28
     
29 29
         
Please login to merge, or discard this patch.
src/Traits/ApiTraits.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 	private $client;
14 14
     
15 15
     
16
-    public  function apiCall($call,$query,$service)
16
+    public  function apiCall($call, $query, $service)
17 17
     {
18
-    	$config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
18
+    	$config = include(realpath(dirname(__FILE__).'/../config/config.php'));
19 19
     	
20 20
     	$this->user = $config->user;
21 21
     	$this->pass = $config->pass;
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     	
25 25
         $client     = new \SoapClient($service);
26 26
         $client->__setSoapHeaders($this->wsshead);
27
-        $response 	= $client->$call($query);
27
+        $response = $client->$call($query);
28 28
         return $response;
29 29
     }   
30 30
     
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $xml = '
34 34
 		<wsse:Security SOAP-ENV:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
35
-		    <wsse:UsernameToken atd:clientId="' . $this->client . '" xmlns:atd="http://api.atdconnect.com/atd">
36
-		        <wsse:Username>' . $this->user . '</wsse:Username>
37
-		        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">' . $this->pass . '</wsse:Password>
35
+		    <wsse:UsernameToken atd:clientId="' . $this->client.'" xmlns:atd="http://api.atdconnect.com/atd">
36
+		        <wsse:Username>' . $this->user.'</wsse:Username>
37
+		        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">' . $this->pass.'</wsse:Password>
38 38
 		    </wsse:UsernameToken>
39 39
 		</wsse:Security>
40 40
 		';
Please login to merge, or discard this patch.