Passed
Push — master ( 492133...35a398 )
by Nicholas
01:37
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/Services/Vehicle.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 	public function __construct()
15 15
 	{
16
-	    $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
16
+	    $config = include(realpath(dirname(__FILE__).'/../config/config.php'));
17 17
 	    $this->location = $config->location;
18 18
 		$this->wsdl = 'http://testws.atdconnect.com/ws/3_4/fitments.wsdl';
19 19
 		
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public static function countVIN(string $vin): self
26 26
     {
27 27
     	$count = strlen($vin);
28
-    	if($count == 17){
28
+    	if ($count == 17) {
29 29
 	    	return new self($count);	
30 30
     	} else {
31 31
 	    	return new self($count);
@@ -35,93 +35,93 @@  discard block
 block discarded – undo
35 35
     
36 36
     public  function getVehicleYear()
37 37
     {
38
-        return $this->apiCall('getVehicleYear','',$this->wsdl);
38
+        return $this->apiCall('getVehicleYear', '', $this->wsdl);
39 39
     }
40 40
     
41 41
     public  function getVehicleMake($year)
42 42
     {	
43 43
     	try { if (empty($year)) { throw new \Exception("A Vehicle Year Has Not Been Set."); } 
44
-    		return $this->apiCall('getVehicleMake',['vehicle' => ['year'=>$year]],$this->wsdl);
44
+    		return $this->apiCall('getVehicleMake', ['vehicle' => ['year'=>$year]], $this->wsdl);
45 45
         } catch (Exception $e) { return $e; }
46 46
     }
47 47
 
48
-    public  function getVehicleModel($year,$make)
48
+    public  function getVehicleModel($year, $make)
49 49
     {	
50 50
     	
51
-    	try {if (empty($year)||empty($make)) {throw new \Exception("A Vehicle Year OR Make Has Not Been Set.");}
51
+    	try {if (empty($year) || empty($make)) {throw new \Exception("A Vehicle Year OR Make Has Not Been Set."); }
52 52
     	
53
-        	return $this->apiCall('getVehicleModel',['vehicle' => ['year'=>$year,'make'=>$make]],$this->wsdl);
53
+        	return $this->apiCall('getVehicleModel', ['vehicle' => ['year'=>$year, 'make'=>$make]], $this->wsdl);
54 54
         
55
-        } catch (Exception $e) {return $e;}
55
+        } catch (Exception $e) {return $e; }
56 56
     }
57 57
 
58 58
     
59
-    public  function getVehicleTrim($year,$make,$model)
59
+    public  function getVehicleTrim($year, $make, $model)
60 60
     {
61
-    	try {if (empty($year)||empty($make)||empty($model)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set.");}
61
+    	try {if (empty($year) || empty($make) || empty($model)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set."); }
62 62
     	
63
-        	return $this->apiCall('getVehicleTrim',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model]],$this->wsdl);
63
+        	return $this->apiCall('getVehicleTrim', ['vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model]], $this->wsdl);
64 64
         
65
-        } catch (Exception $e) {return $e;}
65
+        } catch (Exception $e) {return $e; }
66 66
     }
67 67
     
68
-    public function getVehicleTrimOption($year,$make,$model,$trim)
68
+    public function getVehicleTrimOption($year, $make, $model, $trim)
69 69
     {
70
-    	try {if (empty($year)||empty($make)||empty($model)||empty($trim)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set.");}
70
+    	try {if (empty($year) || empty($make) || empty($model) || empty($trim)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set."); }
71 71
     	
72
-	    	return $this->apiCall('getVehicleTrimOption',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl);
72
+	    	return $this->apiCall('getVehicleTrimOption', ['vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model, 'trim'=>$trim]], $this->wsdl);
73 73
 	    	
74
-	    } catch (Exception $e) {return $e;}
74
+	    } catch (Exception $e) {return $e; }
75 75
 	    
76 76
     }
77 77
     
78
-    public function getVehiclePlusSizes($year,$make,$model,$trim)
78
+    public function getVehiclePlusSizes($year, $make, $model, $trim)
79 79
     {
80
-    	try {if (empty($year)||empty($make)||empty($model)||empty($trim)) {throw new \Exception("A Vehicle Year, Make, Model, or Trim Has Not Been Set.");}
80
+    	try {if (empty($year) || empty($make) || empty($model) || empty($trim)) {throw new \Exception("A Vehicle Year, Make, Model, or Trim Has Not Been Set."); }
81 81
     	
82
-	    	return $this->apiCall('getVehiclePlusSizes',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl);
82
+	    	return $this->apiCall('getVehiclePlusSizes', ['vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model, 'trim'=>$trim]], $this->wsdl);
83 83
 	    	
84
-	    } catch (Exception $e) {return $e;}
84
+	    } catch (Exception $e) {return $e; }
85 85
 	    
86 86
     }
87 87
     
88
-    public function getProductByFitment($year,$make,$model,$trim,$option)
88
+    public function getProductByFitment($year, $make, $model, $trim, $option)
89 89
     {
90
-	    try {if (empty($year)||empty($make)||empty($model)||empty($trim)||empty($option)) {throw new \Exception("A Vehicle value required has not been set.");}
90
+	    try {if (empty($year) || empty($make) || empty($model) || empty($trim) || empty($option)) {throw new \Exception("A Vehicle value required has not been set."); }
91 91
     	
92
-	    	return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim,'trimOption'=>$option]],$this->wsdl);
92
+	    	return $this->apiCall('getProductByFitment', ['locationNumber'=>$this->location, 'vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model, 'trim'=>$trim, 'trimOption'=>$option]], $this->wsdl);
93 93
 	    	
94
-	    } catch (Exception $e) {return $e;}
94
+	    } catch (Exception $e) {return $e; }
95 95
 
96 96
     }
97 97
     
98 98
     public function getVehicleByVehicleId($vID)
99 99
     {
100
-	    try {if (empty($vID)) {throw new \Exception("A Vehicle value required has not been set.");}
100
+	    try {if (empty($vID)) {throw new \Exception("A Vehicle value required has not been set."); }
101 101
     	
102
-	    	return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['vehicleId'=>$vID]],$this->wsdl);
102
+	    	return $this->apiCall('getProductByFitment', ['locationNumber'=>$this->location, 'vehicle' => ['vehicleId'=>$vID]], $this->wsdl);
103 103
 	    	
104
-	    } catch (Exception $e) {return $e;}
104
+	    } catch (Exception $e) {return $e; }
105 105
 
106 106
     }
107 107
     
108
-    public function getVehicleByLicensePlate($num,$state)
108
+    public function getVehicleByLicensePlate($num, $state)
109 109
     {
110
-	    try {if (empty($num)||empty($state)) {throw new \Exception("A Vehicle value required has not been set.");}
110
+	    try {if (empty($num) || empty($state)) {throw new \Exception("A Vehicle value required has not been set."); }
111 111
     	
112
-	    	return $this->apiCall('getVehicleByLicensePlate',['licensePlateNumber'=>$num,'licensePlateState' => $state],$this->wsdl);
112
+	    	return $this->apiCall('getVehicleByLicensePlate', ['licensePlateNumber'=>$num, 'licensePlateState' => $state], $this->wsdl);
113 113
 	    	
114
-	    } catch (Exception $e) {return $e;}
114
+	    } catch (Exception $e) {return $e; }
115 115
 
116 116
     }
117 117
 	
118 118
 	public function getVehicleByVIN($vin)
119 119
     {
120
-	    try {if (empty($vin)) {throw new \Exception("A Vehicle value required has not been set.");}
120
+	    try {if (empty($vin)) {throw new \Exception("A Vehicle value required has not been set."); }
121 121
     	
122
-	    	return $this->apiCall('getVehicleByVIN',['VIN'=>$vin],$this->wsdl);
122
+	    	return $this->apiCall('getVehicleByVIN', ['VIN'=>$vin], $this->wsdl);
123 123
 	    	
124
-	    } catch (Exception $e) {return $e;}
124
+	    } catch (Exception $e) {return $e; }
125 125
 
126 126
     }
127 127
  
Please login to merge, or discard this patch.