Passed
Branch master (5fe124)
by Nicholas
04:37 queued 02:39
created
src/config/config.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-	return (object) [
4
-		'client'	=>	'your_clientname',
5
-		'user'		=>	'your_username',
6
-		'pass'		=>	'your_password',
7
-		'location'	=>	'location_number' 
8
-	];
9 3
\ No newline at end of file
4
+        return (object) [
5
+                'client'	=>	'your_clientname',
6
+                'user'		=>	'your_username',
7
+                'pass'		=>	'your_password',
8
+                'location'	=>	'location_number' 
9
+        ];
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
src/Arraybuilder.php 1 patch
Indentation   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -4,93 +4,93 @@
 block discarded – undo
4 4
 
5 5
 class Arraybuilder
6 6
 {
7
-	public $search;
8
-	public $location;
7
+        public $search;
8
+        public $location;
9 9
 
10
-	public function __construct()
11
-	{
12
-		$config = include('config/config.php');
10
+        public function __construct()
11
+        {
12
+                $config = include('config/config.php');
13 13
         $this->location = $config->location;
14 14
 
15
-	}
15
+        }
16 16
 
17
-	public function setSizeSearch($size)
18
-    {
19
-	    $this->search = array(
20
-			'locationNumber' => $this->location,
21
-			'criteria' => array(
22
-				'entry' => array(
23
-					'key'=> 'Size',
24
-					'value'=>$size
25
-				)
26
-			),
27
-			'options' => array(
28
-				'price' => array(
29
-					'cost'=>'1',
30
-					'retail'=>'1'
31
-				),
32
-				'availability' => array(
33
-					'local'=>'1'
34
-				),
35
-				'productSpec'=> array(
36
-					'entry'=> array(
37
-						'key'=>'SpeedRating'
38
-					),
39
-					'entry'=> array(
40
-						'key'=>'TemperatureRating'
41
-					)
42
-				),
43
-				'includeRebates'=>'1'
44
-			)
45
-		);
17
+        public function setSizeSearch($size)
18
+        {
19
+                $this->search = array(
20
+                        'locationNumber' => $this->location,
21
+                        'criteria' => array(
22
+                                'entry' => array(
23
+                                        'key'=> 'Size',
24
+                                        'value'=>$size
25
+                                )
26
+                        ),
27
+                        'options' => array(
28
+                                'price' => array(
29
+                                        'cost'=>'1',
30
+                                        'retail'=>'1'
31
+                                ),
32
+                                'availability' => array(
33
+                                        'local'=>'1'
34
+                                ),
35
+                                'productSpec'=> array(
36
+                                        'entry'=> array(
37
+                                                'key'=>'SpeedRating'
38
+                                        ),
39
+                                        'entry'=> array(
40
+                                                'key'=>'TemperatureRating'
41
+                                        )
42
+                                ),
43
+                                'includeRebates'=>'1'
44
+                        )
45
+                );
46 46
         return $this->search;
47
-    }
47
+        }
48 48
     
49
-    public function setKeywordSearch($word)
50
-    {
51
-	    $this->search = array(
52
-			'locationNumber' => $this->location,
53
-			'keywords' => $word,
54
-			'options' => array(
55
-				'images' => array(
56
-					'thumbnail'=>'1',
57
-					'small'=> '1',
58
-					'large'=> '1',
59
-				)
60
-			)
61
-		);
49
+        public function setKeywordSearch($word)
50
+        {
51
+                $this->search = array(
52
+                        'locationNumber' => $this->location,
53
+                        'keywords' => $word,
54
+                        'options' => array(
55
+                                'images' => array(
56
+                                        'thumbnail'=>'1',
57
+                                        'small'=> '1',
58
+                                        'large'=> '1',
59
+                                )
60
+                        )
61
+                );
62 62
         return $this->search;
63
-    }
63
+        }
64 64
     
65
-    public function setATDProductNumber($number)
66
-    {
67
-	    $this->search = array(
68
-			'locationNumber' => $this->location,
69
-			'criteria' => array(
70
-				'entry'=>array(
71
-					'key'=>'ATDProductNumber',
72
-					'value'=>$number
73
-				)
74
-			),
75
-			'options' => array(
76
-				'images' => array(
77
-					'thumbnail'=> '1',
78
-					'small' => '1',
79
-					'large' => '1'
80
-				)
81
-			),
82
-			'productSpec'=> array(
83
-					'entry'=> array(
84
-						'key'=>'SpeedRating'
85
-					),
86
-					'entry'=> array(
87
-						'key'=>'TemperatureRating'
88
-					)
89
-				)
65
+        public function setATDProductNumber($number)
66
+        {
67
+                $this->search = array(
68
+                        'locationNumber' => $this->location,
69
+                        'criteria' => array(
70
+                                'entry'=>array(
71
+                                        'key'=>'ATDProductNumber',
72
+                                        'value'=>$number
73
+                                )
74
+                        ),
75
+                        'options' => array(
76
+                                'images' => array(
77
+                                        'thumbnail'=> '1',
78
+                                        'small' => '1',
79
+                                        'large' => '1'
80
+                                )
81
+                        ),
82
+                        'productSpec'=> array(
83
+                                        'entry'=> array(
84
+                                                'key'=>'SpeedRating'
85
+                                        ),
86
+                                        'entry'=> array(
87
+                                                'key'=>'TemperatureRating'
88
+                                        )
89
+                                )
90 90
 					
91
-		);
91
+                );
92 92
         return $this->search;
93
-    }
93
+        }
94 94
     
95 95
     
96 96
 }
97 97
\ No newline at end of file
Please login to merge, or discard this patch.
src/Services/Product.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -3,36 +3,36 @@
 block discarded – undo
3 3
 namespace Nickcheek\Atdconnect\Services;
4 4
 
5 5
 class Product {
6
-	use \Nickcheek\Atdconnect\Traits\ApiTrait;
6
+        use \Nickcheek\Atdconnect\Traits\ApiTrait;
7 7
 	
8
-	private $location;
9
-	private $wsdl;
8
+        private $location;
9
+        private $wsdl;
10 10
 
11
-	public function __construct()
12
-	{
13
-	    $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
14
-	    $this->location = $config->location;
15
-		$this->wsdl = 'https://testws.atdconnect.com/ws/3_4/products.wsdl';
16
-	}
11
+        public function __construct()
12
+        {
13
+                $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
14
+                $this->location = $config->location;
15
+                $this->wsdl = 'https://testws.atdconnect.com/ws/3_4/products.wsdl';
16
+        }
17 17
 	
18
-	//************************************************
19
-    //               Products Service
20
-    //************************************************
18
+        //************************************************
19
+        //               Products Service
20
+        //************************************************
21 21
         
22
-    public  function getProdBrand($product = null)
23
-    {
24
-    	return $this->apiCall('getProdBrand',array('locationNumber' => $this->location,'productGroup' => $product),$this->wsdl);
25
-    }
22
+        public  function getProdBrand($product = null)
23
+        {
24
+                return $this->apiCall('getProdBrand',array('locationNumber' => $this->location,'productGroup' => $product),$this->wsdl);
25
+        }
26 26
     
27
-    public  function getProductByCriteria($search)
28
-    {
27
+        public  function getProductByCriteria($search)
28
+        {
29 29
         return $this->apiCall('getProductByCriteria',$search,$this->wsdl);
30
-    }
30
+        }
31 31
     
32
-    public  function getProductByKeyword($search)
33
-    {
32
+        public  function getProductByKeyword($search)
33
+        {
34 34
         return $this->apiCall('getProductByKeyword',$search,$this->wsdl);
35
-    }    
35
+        }    
36 36
         
37 37
 
38 38
 }
39 39
\ No newline at end of file
Please login to merge, or discard this 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 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -3,28 +3,28 @@
 block discarded – undo
3 3
 namespace Nickcheek\Atdconnect\Services;
4 4
 
5 5
 class Status {
6
-	use \Nickcheek\Atdconnect\Traits\ApiTrait;
6
+        use \Nickcheek\Atdconnect\Traits\ApiTrait;
7 7
 	
8
-	private $wsdl;
8
+        private $wsdl;
9 9
 
10
-	public function __construct()
11
-	{
12
-		$this->wsdl = 'https://testws.atdconnect.com/ws/3_4/orderStatus.wsdl';
13
-	}
10
+        public function __construct()
11
+        {
12
+                $this->wsdl = 'https://testws.atdconnect.com/ws/3_4/orderStatus.wsdl';
13
+        }
14 14
 	
15
-	//************************************************
16
-    //               Order Status Service
17
-    //************************************************
15
+        //************************************************
16
+        //               Order Status Service
17
+        //************************************************
18 18
     
19
-    public  function getOrderDetail($status)
20
-    {
19
+        public  function getOrderDetail($status)
20
+        {
21 21
         return $this->apiCall('getOrderDetail',$status,$this->wsdl);
22
-    }
22
+        }
23 23
     
24
-    public  function getOrderStatusByCriteria($criteria)
25
-    {
24
+        public  function getOrderStatusByCriteria($criteria)
25
+        {
26 26
         return $this->apiCall('getOrderStatusByCriteria',$criteria,$this->wsdl);
27
-    }    
27
+        }    
28 28
         
29 29
 
30 30
 }
31 31
\ No newline at end of file
Please login to merge, or discard this 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 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -3,37 +3,37 @@
 block discarded – undo
3 3
 namespace Nickcheek\Atdconnect\Services;
4 4
 
5 5
 class Location {
6
-	use \Nickcheek\Atdconnect\Traits\ApiTrait;
6
+        use \Nickcheek\Atdconnect\Traits\ApiTrait;
7 7
 	
8
-	private $location;
9
-	private $wsdl;
8
+        private $location;
9
+        private $wsdl;
10 10
 
11
-	public function __construct()
12
-	{
13
-	    $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
14
-	    $this->location = $config->location;
15
-		$this->wsdl = 'https://testws.atdconnect.com/ws/3_4/locations.wsdl';
11
+        public function __construct()
12
+        {
13
+                $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
14
+                $this->location = $config->location;
15
+                $this->wsdl = 'https://testws.atdconnect.com/ws/3_4/locations.wsdl';
16 16
 		
17
-	}
17
+        }
18 18
 	
19
-	//************************************************
20
-    //               Location Service
21
-    //************************************************
19
+        //************************************************
20
+        //               Location Service
21
+        //************************************************
22 22
     
23
-    public  function getLocationByCriteria()
24
-    {
23
+        public  function getLocationByCriteria()
24
+        {
25 25
         return $this->apiCall('getLocationByCriteria','',$this->wsdl);
26
-    }
26
+        }
27 27
     
28
-    public  function getLocationCutoffTimes()
29
-    {
28
+        public  function getLocationCutoffTimes()
29
+        {
30 30
         return $this->apiCall('getLocationCutoffTimes',['location' => $this->location],$this->wsdl);
31
-    }
31
+        }
32 32
     
33
-    public  function getDistributionCenter($dc = '059')
34
-    {
33
+        public  function getDistributionCenter($dc = '059')
34
+        {
35 35
         return $this->apiCall('getDistributionCenter',array('servicingDC' => $dc),$this->wsdl);
36
-    }
36
+        }
37 37
     
38 38
         
39 39
 
Please login to merge, or discard this 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 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -3,32 +3,32 @@
 block discarded – undo
3 3
 namespace Nickcheek\Atdconnect\Services;
4 4
 
5 5
 class Brand {
6
-	use \Nickcheek\Atdconnect\Traits\ApiTrait;
6
+        use \Nickcheek\Atdconnect\Traits\ApiTrait;
7 7
 	
8
-	private $location;
9
-	private $wsdl;
8
+        private $location;
9
+        private $wsdl;
10 10
 
11
-	public function __construct()
12
-	{
13
-	    $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
14
-	    $this->location = $config->location;
15
-		$this->wsdl = 'https://testws.atdconnect.com/ws/3_4/brandstyles.wsdl';
16
-	}
11
+        public function __construct()
12
+        {
13
+                $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
14
+                $this->location = $config->location;
15
+                $this->wsdl = 'https://testws.atdconnect.com/ws/3_4/brandstyles.wsdl';
16
+        }
17 17
 	
18
-    //************************************************
19
-    //               Brand Styles Service
20
-    //************************************************
18
+        //************************************************
19
+        //               Brand Styles Service
20
+        //************************************************
21 21
     
22 22
     
23
-    public  function getBrand($product = null)
24
-    {
25
-    	return $this->apiCall('getBrand',array('locationNumber' => $this->location,'productGroup' => $product),$this->wsdl);
26
-    }
23
+        public  function getBrand($product = null)
24
+        {
25
+                return $this->apiCall('getBrand',array('locationNumber' => $this->location,'productGroup' => $product),$this->wsdl);
26
+        }
27 27
     
28
-    public  function getStyle($brand = null)
29
-    {
30
-    	return $this->apiCall('getStyle',array('locationNumber' => $this->location,'brand' => $brand),$this->wsdl);
31
-    }
28
+        public  function getStyle($brand = null)
29
+        {
30
+                return $this->apiCall('getStyle',array('locationNumber' => $this->location,'brand' => $brand),$this->wsdl);
31
+        }
32 32
         
33 33
 
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this 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 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -3,28 +3,28 @@
 block discarded – undo
3 3
 namespace Nickcheek\Atdconnect\Services;
4 4
 
5 5
 class Order {
6
-	use \Nickcheek\Atdconnect\Traits\ApiTrait;
6
+        use \Nickcheek\Atdconnect\Traits\ApiTrait;
7 7
 	
8
-	private $wsdl;
8
+        private $wsdl;
9 9
 
10
-	public function __construct()
11
-	{
12
-		$this->wsdl = 'https://testws.atdconnect.com/ws/3_4/orders.wsdl';
13
-	}
10
+        public function __construct()
11
+        {
12
+                $this->wsdl = 'https://testws.atdconnect.com/ws/3_4/orders.wsdl';
13
+        }
14 14
 	
15
-	//************************************************
16
-    //               Order Service
17
-    //************************************************
15
+        //************************************************
16
+        //               Order Service
17
+        //************************************************
18 18
     
19
-    public  function placeOrder($order)
20
-    {
19
+        public  function placeOrder($order)
20
+        {
21 21
         return $this->apiCall('placeOrder',$order,$this->wsdl);
22
-    }
22
+        }
23 23
     
24
-    public  function previewOrder($order)
25
-    {
24
+        public  function previewOrder($order)
25
+        {
26 26
         return $this->apiCall('previewOrder',$order,$this->wsdl);
27
-    }
27
+        }
28 28
     
29 29
         
30 30
 
Please login to merge, or discard this 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/Atdconnect.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -13,66 +13,66 @@
 block discarded – undo
13 13
 class Atdconnect
14 14
 {
15 15
     
16
-    protected $location;
16
+        protected $location;
17 17
     
18 18
 
19
-    public function __construct()
20
-    {
19
+        public function __construct()
20
+        {
21 21
         $config = include('config/config.php');
22 22
         $this->location = $config->location;
23
-    }
23
+        }
24 24
     
25
-    public function setLocation($location)
26
-    {
27
-	    $this->location = $location;
25
+        public function setLocation($location)
26
+        {
27
+                $this->location = $location;
28 28
         return $this->location;
29
-    }
29
+        }
30 30
     
31
-    public function getLocation()
32
-    {
33
-	    return $this->location;
34
-    }
31
+        public function getLocation()
32
+        {
33
+                return $this->location;
34
+        }
35 35
     
36
-    public function setKeywordSearch($word)
37
-    {
38
-	    $search = new Arraybuilder();
39
-	    return $search->setKeywordSearch($word);
40
-    }
36
+        public function setKeywordSearch($word)
37
+        {
38
+                $search = new Arraybuilder();
39
+                return $search->setKeywordSearch($word);
40
+        }
41 41
     
42
-    public function setATDProductNumber($number)
43
-    {
44
-	    $search = new Arraybuilder();
45
-	    return $search->setATDProductNumber($number);
46
-    }
42
+        public function setATDProductNumber($number)
43
+        {
44
+                $search = new Arraybuilder();
45
+                return $search->setATDProductNumber($number);
46
+        }
47 47
     
48
-    public function setSizeSearch($size)
49
-    {
50
-	    $search = new Arraybuilder();
51
-	    return $search->setSizeSearch($size);
52
-    }
48
+        public function setSizeSearch($size)
49
+        {
50
+                $search = new Arraybuilder();
51
+                return $search->setSizeSearch($size);
52
+        }
53 53
 
54
-    public function Brand() {
55
-    	return new Brand;
56
-    }
54
+        public function Brand() {
55
+                return new Brand;
56
+        }
57 57
     
58
-    public function Location() {
59
-    	return new Location;
60
-    }
58
+        public function Location() {
59
+                return new Location;
60
+        }
61 61
     
62
-    public function Order() {
63
-    	return new Order;
64
-    }
62
+        public function Order() {
63
+                return new Order;
64
+        }
65 65
     
66
-    public function Product() {
67
-    	return new Product;
68
-    }
66
+        public function Product() {
67
+                return new Product;
68
+        }
69 69
     
70
-    public function Status() {
71
-    	return new Status;
72
-    }
70
+        public function Status() {
71
+                return new Status;
72
+        }
73 73
 	
74
-	public function Vehicle() {
75
-    	return new Vehicle;
76
-    }
74
+        public function Vehicle() {
75
+                return new Vehicle;
76
+        }
77 77
     
78 78
 }
Please login to merge, or discard this patch.
src/Services/Vehicle.php 2 patches
Indentation   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -3,124 +3,124 @@
 block discarded – undo
3 3
 namespace Nickcheek\Atdconnect\Services;
4 4
 
5 5
 class Vehicle {
6
-	use \Nickcheek\Atdconnect\Traits\ApiTrait;
6
+        use \Nickcheek\Atdconnect\Traits\ApiTrait;
7 7
 	
8
-	private $location;
9
-	private $wsdl;
8
+        private $location;
9
+        private $wsdl;
10 10
 		
11
-	public $vin;
11
+        public $vin;
12 12
 	
13 13
 
14
-	public function __construct()
15
-	{
16
-	    $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
17
-	    $this->location = $config->location;
18
-		$this->wsdl = 'http://testws.atdconnect.com/ws/3_4/fitments.wsdl';
14
+        public function __construct()
15
+        {
16
+                $config = include(realpath(dirname(__FILE__) . '/../config/config.php'));
17
+                $this->location = $config->location;
18
+                $this->wsdl = 'http://testws.atdconnect.com/ws/3_4/fitments.wsdl';
19 19
 		
20
-	}
20
+        }
21 21
 	
22
-	//************************************************
23
-    //               Vehicle Service
24
-    //************************************************
25
-    public static function countVIN(string $vin): self
26
-    {
27
-    	$count = strlen($vin);
28
-    	if($count == 17){
29
-	    	return new self();	
30
-    	}
31
-    }
22
+        //************************************************
23
+        //               Vehicle Service
24
+        //************************************************
25
+        public static function countVIN(string $vin): self
26
+        {
27
+                $count = strlen($vin);
28
+                if($count == 17){
29
+                        return new self();	
30
+                }
31
+        }
32 32
     
33
-    public  function getVehicleYear()
34
-    {
33
+        public  function getVehicleYear()
34
+        {
35 35
         return $this->apiCall('getVehicleYear','',$this->wsdl);
36
-    }
36
+        }
37 37
     
38
-    public  function getVehicleMake($year)
39
-    {	
40
-    	try { if (empty($year)) { throw new \Exception("A Vehicle Year Has Not Been Set."); } 
41
-    		return $this->apiCall('getVehicleMake',['vehicle' => ['year'=>$year]],$this->wsdl);
38
+        public  function getVehicleMake($year)
39
+        {	
40
+                try { if (empty($year)) { throw new \Exception("A Vehicle Year Has Not Been Set."); } 
41
+                        return $this->apiCall('getVehicleMake',['vehicle' => ['year'=>$year]],$this->wsdl);
42 42
         } catch (Exception $e) { return $e; }
43
-    }
43
+        }
44 44
 
45
-    public  function getVehicleModel($year,$make)
46
-    {	
45
+        public  function getVehicleModel($year,$make)
46
+        {	
47 47
     	
48
-    	try {if (empty($year)||empty($make)) {throw new \Exception("A Vehicle Year OR Make Has Not Been Set.");}
48
+                try {if (empty($year)||empty($make)) {throw new \Exception("A Vehicle Year OR Make Has Not Been Set.");}
49 49
     	
50
-        	return $this->apiCall('getVehicleModel',['vehicle' => ['year'=>$year,'make'=>$make]],$this->wsdl);
50
+                return $this->apiCall('getVehicleModel',['vehicle' => ['year'=>$year,'make'=>$make]],$this->wsdl);
51 51
         
52 52
         } catch (Exception $e) {return $e;}
53
-    }
53
+        }
54 54
 
55 55
     
56
-    public  function getVehicleTrim($year,$make,$model)
57
-    {
58
-    	try {if (empty($year)||empty($make)||empty($model)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set.");}
56
+        public  function getVehicleTrim($year,$make,$model)
57
+        {
58
+                try {if (empty($year)||empty($make)||empty($model)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set.");}
59 59
     	
60
-        	return $this->apiCall('getVehicleTrim',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model]],$this->wsdl);
60
+                return $this->apiCall('getVehicleTrim',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model]],$this->wsdl);
61 61
         
62 62
         } catch (Exception $e) {return $e;}
63
-    }
63
+        }
64 64
     
65
-    public function getVehicleTrimOption($year,$make,$model,$trim)
66
-    {
67
-    	try {if (empty($year)||empty($make)||empty($model)||empty($trim)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set.");}
65
+        public function getVehicleTrimOption($year,$make,$model,$trim)
66
+        {
67
+                try {if (empty($year)||empty($make)||empty($model)||empty($trim)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set.");}
68 68
     	
69
-	    	return $this->apiCall('getVehicleTrimOption',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl);
69
+                        return $this->apiCall('getVehicleTrimOption',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl);
70 70
 	    	
71
-	    } catch (Exception $e) {return $e;}
71
+                } catch (Exception $e) {return $e;}
72 72
 	    
73
-    }
73
+        }
74 74
     
75
-    public function getVehiclePlusSizes($year,$make,$model,$trim)
76
-    {
77
-    	try {if (empty($year)||empty($make)||empty($model)||empty($trim)) {throw new \Exception("A Vehicle Year, Make, Model, or Trim Has Not Been Set.");}
75
+        public function getVehiclePlusSizes($year,$make,$model,$trim)
76
+        {
77
+                try {if (empty($year)||empty($make)||empty($model)||empty($trim)) {throw new \Exception("A Vehicle Year, Make, Model, or Trim Has Not Been Set.");}
78 78
     	
79
-	    	return $this->apiCall('getVehiclePlusSizes',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl);
79
+                        return $this->apiCall('getVehiclePlusSizes',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl);
80 80
 	    	
81
-	    } catch (Exception $e) {return $e;}
81
+                } catch (Exception $e) {return $e;}
82 82
 	    
83
-    }
83
+        }
84 84
     
85
-    public function getProductByFitment($year,$make,$model,$trim,$option)
86
-    {
87
-	    try {if (empty($year)||empty($make)||empty($model)||empty($trim)||empty($option)) {throw new \Exception("A Vehicle value required has not been set.");}
85
+        public function getProductByFitment($year,$make,$model,$trim,$option)
86
+        {
87
+                try {if (empty($year)||empty($make)||empty($model)||empty($trim)||empty($option)) {throw new \Exception("A Vehicle value required has not been set.");}
88 88
     	
89
-	    	return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim,'trimOption'=>$option]],$this->wsdl);
89
+                        return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim,'trimOption'=>$option]],$this->wsdl);
90 90
 	    	
91
-	    } catch (Exception $e) {return $e;}
91
+                } catch (Exception $e) {return $e;}
92 92
 
93
-    }
93
+        }
94 94
     
95
-    public function getVehicleByVehicleId($vID)
96
-    {
97
-	    try {if (empty($vID)) {throw new \Exception("A Vehicle value required has not been set.");}
95
+        public function getVehicleByVehicleId($vID)
96
+        {
97
+                try {if (empty($vID)) {throw new \Exception("A Vehicle value required has not been set.");}
98 98
     	
99
-	    	return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['vehicleId'=>$vID]],$this->wsdl);
99
+                        return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['vehicleId'=>$vID]],$this->wsdl);
100 100
 	    	
101
-	    } catch (Exception $e) {return $e;}
101
+                } catch (Exception $e) {return $e;}
102 102
 
103
-    }
103
+        }
104 104
     
105
-    public function getVehicleByLicensePlate($num,$state)
106
-    {
107
-	    try {if (empty($num)||empty($state)) {throw new \Exception("A Vehicle value required has not been set.");}
105
+        public function getVehicleByLicensePlate($num,$state)
106
+        {
107
+                try {if (empty($num)||empty($state)) {throw new \Exception("A Vehicle value required has not been set.");}
108 108
     	
109
-	    	return $this->apiCall('getVehicleByLicensePlate',['licensePlateNumber'=>$num,'licensePlateState' => $state],$this->wsdl);
109
+                        return $this->apiCall('getVehicleByLicensePlate',['licensePlateNumber'=>$num,'licensePlateState' => $state],$this->wsdl);
110 110
 	    	
111
-	    } catch (Exception $e) {return $e;}
111
+                } catch (Exception $e) {return $e;}
112 112
 
113
-    }
113
+        }
114 114
 	
115
-	public function getVehicleByVIN($vin)
116
-    {
117
-	    try {if (empty($vin)) {throw new \Exception("A Vehicle value required has not been set.");}
115
+        public function getVehicleByVIN($vin)
116
+        {
117
+                try {if (empty($vin)) {throw new \Exception("A Vehicle value required has not been set.");}
118 118
     	
119
-	    	return $this->apiCall('getVehicleByVIN',['VIN'=>$vin],$this->wsdl);
119
+                        return $this->apiCall('getVehicleByVIN',['VIN'=>$vin],$this->wsdl);
120 120
 	    	
121
-	    } catch (Exception $e) {return $e;}
121
+                } catch (Exception $e) {return $e;}
122 122
 
123
-    }
123
+        }
124 124
      
125 125
 
126 126
 }
127 127
\ No newline at end of file
Please login to merge, or discard this 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,100 +25,100 @@  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();	
30 30
     	}
31 31
     }
32 32
     
33 33
     public  function getVehicleYear()
34 34
     {
35
-        return $this->apiCall('getVehicleYear','',$this->wsdl);
35
+        return $this->apiCall('getVehicleYear', '', $this->wsdl);
36 36
     }
37 37
     
38 38
     public  function getVehicleMake($year)
39 39
     {	
40 40
     	try { if (empty($year)) { throw new \Exception("A Vehicle Year Has Not Been Set."); } 
41
-    		return $this->apiCall('getVehicleMake',['vehicle' => ['year'=>$year]],$this->wsdl);
41
+    		return $this->apiCall('getVehicleMake', ['vehicle' => ['year'=>$year]], $this->wsdl);
42 42
         } catch (Exception $e) { return $e; }
43 43
     }
44 44
 
45
-    public  function getVehicleModel($year,$make)
45
+    public  function getVehicleModel($year, $make)
46 46
     {	
47 47
     	
48
-    	try {if (empty($year)||empty($make)) {throw new \Exception("A Vehicle Year OR Make Has Not Been Set.");}
48
+    	try {if (empty($year) || empty($make)) {throw new \Exception("A Vehicle Year OR Make Has Not Been Set."); }
49 49
     	
50
-        	return $this->apiCall('getVehicleModel',['vehicle' => ['year'=>$year,'make'=>$make]],$this->wsdl);
50
+        	return $this->apiCall('getVehicleModel', ['vehicle' => ['year'=>$year, 'make'=>$make]], $this->wsdl);
51 51
         
52
-        } catch (Exception $e) {return $e;}
52
+        } catch (Exception $e) {return $e; }
53 53
     }
54 54
 
55 55
     
56
-    public  function getVehicleTrim($year,$make,$model)
56
+    public  function getVehicleTrim($year, $make, $model)
57 57
     {
58
-    	try {if (empty($year)||empty($make)||empty($model)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set.");}
58
+    	try {if (empty($year) || empty($make) || empty($model)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set."); }
59 59
     	
60
-        	return $this->apiCall('getVehicleTrim',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model]],$this->wsdl);
60
+        	return $this->apiCall('getVehicleTrim', ['vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model]], $this->wsdl);
61 61
         
62
-        } catch (Exception $e) {return $e;}
62
+        } catch (Exception $e) {return $e; }
63 63
     }
64 64
     
65
-    public function getVehicleTrimOption($year,$make,$model,$trim)
65
+    public function getVehicleTrimOption($year, $make, $model, $trim)
66 66
     {
67
-    	try {if (empty($year)||empty($make)||empty($model)||empty($trim)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set.");}
67
+    	try {if (empty($year) || empty($make) || empty($model) || empty($trim)) {throw new \Exception("A Vehicle Year, Make OR Model Has Not Been Set."); }
68 68
     	
69
-	    	return $this->apiCall('getVehicleTrimOption',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl);
69
+	    	return $this->apiCall('getVehicleTrimOption', ['vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model, 'trim'=>$trim]], $this->wsdl);
70 70
 	    	
71
-	    } catch (Exception $e) {return $e;}
71
+	    } catch (Exception $e) {return $e; }
72 72
 	    
73 73
     }
74 74
     
75
-    public function getVehiclePlusSizes($year,$make,$model,$trim)
75
+    public function getVehiclePlusSizes($year, $make, $model, $trim)
76 76
     {
77
-    	try {if (empty($year)||empty($make)||empty($model)||empty($trim)) {throw new \Exception("A Vehicle Year, Make, Model, or Trim Has Not Been Set.");}
77
+    	try {if (empty($year) || empty($make) || empty($model) || empty($trim)) {throw new \Exception("A Vehicle Year, Make, Model, or Trim Has Not Been Set."); }
78 78
     	
79
-	    	return $this->apiCall('getVehiclePlusSizes',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl);
79
+	    	return $this->apiCall('getVehiclePlusSizes', ['vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model, 'trim'=>$trim]], $this->wsdl);
80 80
 	    	
81
-	    } catch (Exception $e) {return $e;}
81
+	    } catch (Exception $e) {return $e; }
82 82
 	    
83 83
     }
84 84
     
85
-    public function getProductByFitment($year,$make,$model,$trim,$option)
85
+    public function getProductByFitment($year, $make, $model, $trim, $option)
86 86
     {
87
-	    try {if (empty($year)||empty($make)||empty($model)||empty($trim)||empty($option)) {throw new \Exception("A Vehicle value required has not been set.");}
87
+	    try {if (empty($year) || empty($make) || empty($model) || empty($trim) || empty($option)) {throw new \Exception("A Vehicle value required has not been set."); }
88 88
     	
89
-	    	return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim,'trimOption'=>$option]],$this->wsdl);
89
+	    	return $this->apiCall('getProductByFitment', ['locationNumber'=>$this->location, 'vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model, 'trim'=>$trim, 'trimOption'=>$option]], $this->wsdl);
90 90
 	    	
91
-	    } catch (Exception $e) {return $e;}
91
+	    } catch (Exception $e) {return $e; }
92 92
 
93 93
     }
94 94
     
95 95
     public function getVehicleByVehicleId($vID)
96 96
     {
97
-	    try {if (empty($vID)) {throw new \Exception("A Vehicle value required has not been set.");}
97
+	    try {if (empty($vID)) {throw new \Exception("A Vehicle value required has not been set."); }
98 98
     	
99
-	    	return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['vehicleId'=>$vID]],$this->wsdl);
99
+	    	return $this->apiCall('getProductByFitment', ['locationNumber'=>$this->location, 'vehicle' => ['vehicleId'=>$vID]], $this->wsdl);
100 100
 	    	
101
-	    } catch (Exception $e) {return $e;}
101
+	    } catch (Exception $e) {return $e; }
102 102
 
103 103
     }
104 104
     
105
-    public function getVehicleByLicensePlate($num,$state)
105
+    public function getVehicleByLicensePlate($num, $state)
106 106
     {
107
-	    try {if (empty($num)||empty($state)) {throw new \Exception("A Vehicle value required has not been set.");}
107
+	    try {if (empty($num) || empty($state)) {throw new \Exception("A Vehicle value required has not been set."); }
108 108
     	
109
-	    	return $this->apiCall('getVehicleByLicensePlate',['licensePlateNumber'=>$num,'licensePlateState' => $state],$this->wsdl);
109
+	    	return $this->apiCall('getVehicleByLicensePlate', ['licensePlateNumber'=>$num, 'licensePlateState' => $state], $this->wsdl);
110 110
 	    	
111
-	    } catch (Exception $e) {return $e;}
111
+	    } catch (Exception $e) {return $e; }
112 112
 
113 113
     }
114 114
 	
115 115
 	public function getVehicleByVIN($vin)
116 116
     {
117
-	    try {if (empty($vin)) {throw new \Exception("A Vehicle value required has not been set.");}
117
+	    try {if (empty($vin)) {throw new \Exception("A Vehicle value required has not been set."); }
118 118
     	
119
-	    	return $this->apiCall('getVehicleByVIN',['VIN'=>$vin],$this->wsdl);
119
+	    	return $this->apiCall('getVehicleByVIN', ['VIN'=>$vin], $this->wsdl);
120 120
 	    	
121
-	    } catch (Exception $e) {return $e;}
121
+	    } catch (Exception $e) {return $e; }
122 122
 
123 123
     }
124 124
      
Please login to merge, or discard this patch.