Passed
Push — master ( 08b0e3...470a64 )
by Nicholas
01:48
created
src/Atdconnect.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     private static $brandwsdl 		= 'https://testws.atdconnect.com/ws/3_4/brandstyles.wsdl';
14 14
     private static $locationwsdl	= 'https://testws.atdconnect.com/ws/3_4/locations.wsdl';
15 15
     private static $productwsdl 	= 'https://testws.atdconnect.com/ws/3_4/products.wsdl';
16
-    private static $orderwsdl		= 'https://testws.atdconnect.com/ws/3_4/orders.wsdl';
16
+    private static $orderwsdl = 'https://testws.atdconnect.com/ws/3_4/orders.wsdl';
17 17
     
18 18
     protected static $location;
19 19
     
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $xml = '
30 30
 		<wsse:Security SOAP-ENV:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
31
-		    <wsse:UsernameToken atd:clientId="' . $client . '" xmlns:atd="http://api.atdconnect.com/atd">
32
-		        <wsse:Username>' . $user . '</wsse:Username>
33
-		        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">' . $pass . '</wsse:Password>
31
+		    <wsse:UsernameToken atd:clientId="' . $client.'" xmlns:atd="http://api.atdconnect.com/atd">
32
+		        <wsse:Username>' . $user.'</wsse:Username>
33
+		        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">' . $pass.'</wsse:Password>
34 34
 		    </wsse:UsernameToken>
35 35
 		</wsse:Security>
36 36
 		';
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
         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);
39 39
     }
40 40
     
41
-    public static function apiCall($call,$query,$service)
41
+    public static function apiCall($call, $query, $service)
42 42
     {
43
-        $client     = new \SoapClient($service);
43
+        $client = new \SoapClient($service);
44 44
         $client->__setSoapHeaders(self::$wsshead);
45
-        $response 	= $client->$call($query);
45
+        $response = $client->$call($query);
46 46
         return $response;
47 47
     }
48 48
     
@@ -63,17 +63,17 @@  discard block
 block discarded – undo
63 63
     
64 64
     public static function getLocationByCriteria()
65 65
     {
66
-        return self::apiCall('getLocationByCriteria','',self::$locationwsdl);
66
+        return self::apiCall('getLocationByCriteria', '', self::$locationwsdl);
67 67
     }
68 68
     
69 69
     public static function getLocationCutoffTimes()
70 70
     {
71
-        return self::apiCall('getLocationCutoffTimes',['location' => static::$location],self::$locationwsdl);
71
+        return self::apiCall('getLocationCutoffTimes', ['location' => static::$location], self::$locationwsdl);
72 72
     }
73 73
     
74 74
     public static function getDistributionCenter($dc = '059')
75 75
     {
76
-        return self::apiCall('getDistributionCenter',array('servicingDC' => $dc),self::$locationwsdl);
76
+        return self::apiCall('getDistributionCenter', array('servicingDC' => $dc), self::$locationwsdl);
77 77
     }
78 78
     
79 79
         
@@ -84,12 +84,12 @@  discard block
 block discarded – undo
84 84
     
85 85
     public static function getBrand($product = null)
86 86
     {
87
-    	return self::apiCall('getBrand',array('locationNumber' => static::$location,'productGroup' => $product),self::$brandwsdl);
87
+    	return self::apiCall('getBrand', array('locationNumber' => static::$location, 'productGroup' => $product), self::$brandwsdl);
88 88
     }
89 89
     
90 90
     public static function getStyle($brand = null)
91 91
     {
92
-    	return self::apiCall('getStyle',array('locationNumber' => static::$location,'brand' => $brand),self::$brandwsdl);
92
+    	return self::apiCall('getStyle', array('locationNumber' => static::$location, 'brand' => $brand), self::$brandwsdl);
93 93
     }
94 94
     
95 95
     
@@ -102,17 +102,17 @@  discard block
 block discarded – undo
102 102
     
103 103
     public static function getProdBrand($product = null)
104 104
     {
105
-    	return self::apiCall('getProdBrand',array('locationNumber' => static::$location,'productGroup' => $product),self::$productwsdl);
105
+    	return self::apiCall('getProdBrand', array('locationNumber' => static::$location, 'productGroup' => $product), self::$productwsdl);
106 106
     }
107 107
     
108 108
     public static function getProductByCriteria($search)
109 109
     {
110
-        return self::apiCall('getProductByCriteria',$search,self::$productwsdl);
110
+        return self::apiCall('getProductByCriteria', $search, self::$productwsdl);
111 111
     }
112 112
     
113 113
     public static function getProductByKeyword($search)
114 114
     {
115
-        return self::apiCall('getProductByKeyword',$search,self::$productwsdl);
115
+        return self::apiCall('getProductByKeyword', $search, self::$productwsdl);
116 116
     }
117 117
     
118 118
     //************************************************
@@ -121,12 +121,12 @@  discard block
 block discarded – undo
121 121
     
122 122
     public static function placeOrder($order)
123 123
     {
124
-        return self::apiCall('placeOrder',$order,self::$orderwsdl);
124
+        return self::apiCall('placeOrder', $order, self::$orderwsdl);
125 125
     }
126 126
     
127 127
     public static function previewOrder($order)
128 128
     {
129
-        return self::apiCall('previewOrder',$order,self::$orderwsdl);
129
+        return self::apiCall('previewOrder', $order, self::$orderwsdl);
130 130
     }
131 131
     
132 132
     //************************************************
@@ -135,12 +135,12 @@  discard block
 block discarded – undo
135 135
     
136 136
     public static function getOrderDetail($status)
137 137
     {
138
-        return self::apiCall('getOrderDetail',$status,self::$statuswsdl);
138
+        return self::apiCall('getOrderDetail', $status, self::$statuswsdl);
139 139
     }
140 140
     
141 141
     public static function getOrderStatusByCriteria($criteria)
142 142
     {
143
-        return self::apiCall('getOrderStatusByCriteria',$status,self::$statuswsdl);
143
+        return self::apiCall('getOrderStatusByCriteria', $status, self::$statuswsdl);
144 144
     }
145 145
     
146 146
     
Please login to merge, or discard this patch.