Passed
Push — master ( 30c7a4...9861bf )
by Nicholas
01:40
created
src/Atdconnect.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     private $brandwsdl 		= 'https://testws.atdconnect.com/ws/3_4/brandstyles.wsdl';
15 15
     private $locationwsdl	= 'https://testws.atdconnect.com/ws/3_4/locations.wsdl';
16 16
     private $productwsdl 	= 'https://testws.atdconnect.com/ws/3_4/products.wsdl';
17
-    private $orderwsdl		= 'https://testws.atdconnect.com/ws/3_4/orders.wsdl';
17
+    private $orderwsdl = 'https://testws.atdconnect.com/ws/3_4/orders.wsdl';
18 18
     
19 19
     
20 20
     
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $xml = '
32 32
 		<wsse:Security SOAP-ENV:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
33
-		    <wsse:UsernameToken atd:clientId="' . $client . '" xmlns:atd="http://api.atdconnect.com/atd">
34
-		        <wsse:Username>' . $user . '</wsse:Username>
35
-		        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">' . $pass . '</wsse:Password>
33
+		    <wsse:UsernameToken atd:clientId="' . $client.'" xmlns:atd="http://api.atdconnect.com/atd">
34
+		        <wsse:Username>' . $user.'</wsse:Username>
35
+		        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">' . $pass.'</wsse:Password>
36 36
 		    </wsse:UsernameToken>
37 37
 		</wsse:Security>
38 38
 		';
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
         return new \SoapHeader('http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', 'Security', new \SoapVar($xml, XSD_ANYXML), true);
41 41
     }
42 42
     
43
-    public  function apiCall($call,$query,$service)
43
+    public  function apiCall($call, $query, $service)
44 44
     {
45
-        $client     = new \SoapClient($service);
45
+        $client = new \SoapClient($service);
46 46
         $client->__setSoapHeaders($this->wsshead);
47
-        $response 	= $client->$call($query);
47
+        $response = $client->$call($query);
48 48
         return $response;
49 49
     }
50 50
     
@@ -85,17 +85,17 @@  discard block
 block discarded – undo
85 85
     
86 86
     public  function getLocationByCriteria()
87 87
     {
88
-        return $this->apiCall('getLocationByCriteria','',$this->locationwsdl);
88
+        return $this->apiCall('getLocationByCriteria', '', $this->locationwsdl);
89 89
     }
90 90
     
91 91
     public  function getLocationCutoffTimes()
92 92
     {
93
-        return $this->apiCall('getLocationCutoffTimes',['location' => $this->location],$this->locationwsdl);
93
+        return $this->apiCall('getLocationCutoffTimes', ['location' => $this->location], $this->locationwsdl);
94 94
     }
95 95
     
96 96
     public  function getDistributionCenter($dc = '059')
97 97
     {
98
-        return $this->apiCall('getDistributionCenter',array('servicingDC' => $dc),$this->locationwsdl);
98
+        return $this->apiCall('getDistributionCenter', array('servicingDC' => $dc), $this->locationwsdl);
99 99
     }
100 100
     
101 101
         
@@ -106,12 +106,12 @@  discard block
 block discarded – undo
106 106
     
107 107
     public  function getBrand($product = null)
108 108
     {
109
-    	return $this->apiCall('getBrand',array('locationNumber' => $this->location,'productGroup' => $product),$this->brandwsdl);
109
+    	return $this->apiCall('getBrand', array('locationNumber' => $this->location, 'productGroup' => $product), $this->brandwsdl);
110 110
     }
111 111
     
112 112
     public  function getStyle($brand = null)
113 113
     {
114
-    	return $this->apiCall('getStyle',array('locationNumber' => $this->location,'brand' => $brand),$this->brandwsdl);
114
+    	return $this->apiCall('getStyle', array('locationNumber' => $this->location, 'brand' => $brand), $this->brandwsdl);
115 115
     }
116 116
     
117 117
     
@@ -124,17 +124,17 @@  discard block
 block discarded – undo
124 124
     
125 125
     public  function getProdBrand($product = null)
126 126
     {
127
-    	return $this->apiCall('getProdBrand',array('locationNumber' => $this->location,'productGroup' => $product),$this->productwsdl);
127
+    	return $this->apiCall('getProdBrand', array('locationNumber' => $this->location, 'productGroup' => $product), $this->productwsdl);
128 128
     }
129 129
     
130 130
     public  function getProductByCriteria($search)
131 131
     {
132
-        return $this->apiCall('getProductByCriteria',$search,$this->productwsdl);
132
+        return $this->apiCall('getProductByCriteria', $search, $this->productwsdl);
133 133
     }
134 134
     
135 135
     public  function getProductByKeyword($search)
136 136
     {
137
-        return $this->apiCall('getProductByKeyword',$search,$this->productwsdl);
137
+        return $this->apiCall('getProductByKeyword', $search, $this->productwsdl);
138 138
     }
139 139
     
140 140
     //************************************************
@@ -143,12 +143,12 @@  discard block
 block discarded – undo
143 143
     
144 144
     public  function placeOrder($order)
145 145
     {
146
-        return $this->apiCall('placeOrder',$order,$this->orderwsdl);
146
+        return $this->apiCall('placeOrder', $order, $this->orderwsdl);
147 147
     }
148 148
     
149 149
     public  function previewOrder($order)
150 150
     {
151
-        return $this->apiCall('previewOrder',$order,$this->orderwsdl);
151
+        return $this->apiCall('previewOrder', $order, $this->orderwsdl);
152 152
     }
153 153
     
154 154
     //************************************************
@@ -157,12 +157,12 @@  discard block
 block discarded – undo
157 157
     
158 158
     public  function getOrderDetail($status)
159 159
     {
160
-        return $this->apiCall('getOrderDetail',$status,$this->statuswsdl);
160
+        return $this->apiCall('getOrderDetail', $status, $this->statuswsdl);
161 161
     }
162 162
     
163 163
     public  function getOrderStatusByCriteria($criteria)
164 164
     {
165
-        return $this->apiCall('getOrderStatusByCriteria',$criteria,$this->statuswsdl);
165
+        return $this->apiCall('getOrderStatusByCriteria', $criteria, $this->statuswsdl);
166 166
     }
167 167
     
168 168
     
Please login to merge, or discard this patch.