@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | 'Creating a SoapClient to connect to platform ' . $this->config->getPlatformConfig()->getPlatformName() |
89 | 89 | ); |
90 | 90 | $this->logger->debug('Created SoapClient', ['SoapClient' => print_r($soapClient, true)]); |
91 | - $this->logger->debug('Settings', ['settings' => (array)$settings]); |
|
91 | + $this->logger->debug('Settings', ['settings' => (array) $settings]); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | return $soapClient; |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | private function createCurlClient(array $settings, Manager $manager) |
107 | 107 | { |
108 | - $settings['url'] = (string)$manager->getActiveEndpoint()->getUri(); |
|
108 | + $settings['url'] = (string) $manager->getActiveEndpoint()->getUri(); |
|
109 | 109 | |
110 | 110 | return GuzzleClientFactory::build($this->config->getPlatformConfig(), $this->logger)->create($settings); |
111 | 111 | } |
@@ -79,10 +79,10 @@ discard block |
||
79 | 79 | |
80 | 80 | // throws an Exception when no endpoint is met |
81 | 81 | $active = $this->manager->getActiveEndpoint(); |
82 | - $this->log('Initial endpoint is ' . (string)$active->getUri(), LogLevel::INFO); |
|
82 | + $this->log('Initial endpoint is ' . (string) $active->getUri(), LogLevel::INFO); |
|
83 | 83 | |
84 | 84 | // initiate the native PHP SoapClient for fetching all the WSDL stuff |
85 | - parent::__construct((string)$active->getUri()->withQuery('wsdl'), $this->settings->toArray()); |
|
85 | + parent::__construct((string) $active->getUri()->withQuery('wsdl'), $this->settings->toArray()); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | { |
106 | 106 | $active = $this->manager->getActiveEndpoint(); |
107 | 107 | try { |
108 | - $response = $this->doHttpRequest($request, (string)$active->getUri(), $action); |
|
108 | + $response = $this->doHttpRequest($request, (string) $active->getUri(), $action); |
|
109 | 109 | $this->manager->updateLastConnected(); |
110 | 110 | |
111 | 111 | return $response; |
@@ -191,11 +191,11 @@ discard block |
||
191 | 191 | $requestObj = new Request($method, $location, $headers, $requestBody); |
192 | 192 | $response = $this->httpClient->send($requestObj); |
193 | 193 | // Throw a SoapFault if the response was received, but it can't be read into valid XML |
194 | - if ($response->getStatusCode() > 399 && @simplexml_load_string((string)$response->getBody()) === false) { |
|
194 | + if ($response->getStatusCode() > 399 && @simplexml_load_string((string) $response->getBody()) === false) { |
|
195 | 195 | throw new \SoapFault('Server', 'Invalid SoapResponse'); |
196 | 196 | } |
197 | 197 | |
198 | - return (string)$response->getBody(); |
|
198 | + return (string) $response->getBody(); |
|
199 | 199 | } catch (ClientException $e) { |
200 | 200 | // if a client exception is thrown, the guzzle instance, is configured to throw exceptions |
201 | 201 | $code = ($e->getResponse() !== null) ? 'Server' : 'Client.Input'; |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * Determines methods. |
159 | 159 | * For Soap it's either GET or POST. |
160 | 160 | * |
161 | - * @param mixed $request |
|
161 | + * @param string $request |
|
162 | 162 | * |
163 | 163 | * @return string |
164 | 164 | */ |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | } |
221 | 221 | |
222 | 222 | /** |
223 | - * @return httpClient |
|
223 | + * @return HttpClient |
|
224 | 224 | */ |
225 | 225 | public function getHttpClient() |
226 | 226 | { |
@@ -114,7 +114,7 @@ |
||
114 | 114 | 'endpoints' => static::$endPoints, |
115 | 115 | 'platformConfig' => $this->platformConfig->toArray(), |
116 | 116 | 'retry_minutes' => static::DEFAULT_RESPONSE_TIMEOUT, |
117 | - 'soap_headers' => (array)$this->getSoapHeaders(), |
|
117 | + 'soap_headers' => (array) $this->getSoapHeaders(), |
|
118 | 118 | ]; |
119 | 119 | } |
120 | 120 | } |
@@ -115,7 +115,7 @@ |
||
115 | 115 | 'endpoints' => self::$endPoints, |
116 | 116 | 'password' => $this->getPlatformConfig()->getPassword(), |
117 | 117 | 'retry_minutes' => $this->getPlatformConfig()->getRetryMinutes(), |
118 | - 'soap_headers' => (array)$this->getSoapHeaders(), |
|
118 | + 'soap_headers' => (array) $this->getSoapHeaders(), |
|
119 | 119 | 'timeout' => $this->getPlatformConfig()->getResponseTimeout(), |
120 | 120 | 'username' => $this->getPlatformConfig()->getUserName(), |
121 | 121 | ]); |
@@ -68,11 +68,11 @@ |
||
68 | 68 | |
69 | 69 | return new Client( |
70 | 70 | [ |
71 | - 'base_url' => (string)$settings['url'], |
|
71 | + 'base_url' => (string) $settings['url'], |
|
72 | 72 | 'handler' => $stack, |
73 | - 'exceptions' => (bool)$settings['exceptions'], |
|
74 | - 'timeout' => (float)$settings['responseTimeout'], |
|
75 | - 'connection_timeout' => (float)$settings['connectionTimeout'], |
|
73 | + 'exceptions' => (bool) $settings['exceptions'], |
|
74 | + 'timeout' => (float) $settings['responseTimeout'], |
|
75 | + 'connection_timeout' => (float) $settings['connectionTimeout'], |
|
76 | 76 | ] |
77 | 77 | ); |
78 | 78 | } |
@@ -64,13 +64,13 @@ |
||
64 | 64 | 'accountEditV2', |
65 | 65 | [ |
66 | 66 | 'accountid' => $accountId, |
67 | - 'address' => $address, |
|
68 | - 'contactname' => $contactName, |
|
69 | - 'contactemail' => $contactEmail, |
|
70 | - 'telephone' => $telephone, |
|
71 | - 'fax' => $fax, |
|
72 | - 'description' => $description, |
|
73 | - 'balancethreshold' => (float)$balanceThreshold, |
|
67 | + 'address' => $address, |
|
68 | + 'contactname' => $contactName, |
|
69 | + 'contactemail' => $contactEmail, |
|
70 | + 'telephone' => $telephone, |
|
71 | + 'fax' => $fax, |
|
72 | + 'description' => $description, |
|
73 | + 'balancethreshold' => (float)$balanceThreshold, |
|
74 | 74 | ] |
75 | 75 | ); |
76 | 76 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | 'telephone' => $telephone, |
71 | 71 | 'fax' => $fax, |
72 | 72 | 'description' => $description, |
73 | - 'balancethreshold' => (float)$balanceThreshold, |
|
73 | + 'balancethreshold' => (float) $balanceThreshold, |
|
74 | 74 | ] |
75 | 75 | ); |
76 | 76 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | public function accountUserListV2($accountId, $page) |
143 | 143 | { |
144 | - return $this->getAdapter()->call('accountUserListV2', ['accountid' => (int)$accountId, 'page' => $page]); |
|
144 | + return $this->getAdapter()->call('accountUserListV2', ['accountid' => (int) $accountId, 'page' => $page]); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | /** |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | */ |
199 | 199 | public function accountViewV2($accountId) |
200 | 200 | { |
201 | - return $this->getAdapter()->call('accountViewV2', ['accountid' => (int)$accountId]); |
|
201 | + return $this->getAdapter()->call('accountViewV2', ['accountid' => (int) $accountId]); |
|
202 | 202 | } |
203 | 203 | |
204 | 204 | /** |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | { |
216 | 216 | return $this->getAdapter()->call( |
217 | 217 | 'addressCityListNeighborhoods', |
218 | - ['name' => $name, 'postbus' => (bool)$postbus, 'page' => $page] |
|
218 | + ['name' => $name, 'postbus' => (bool) $postbus, 'page' => $page] |
|
219 | 219 | ); |
220 | 220 | } |
221 | 221 | |
@@ -704,7 +704,7 @@ discard block |
||
704 | 704 | { |
705 | 705 | return $this->getAdapter()->call( |
706 | 706 | 'carRDWCarCheckCode', |
707 | - ['license_plate' => (string)$licensePlate, 'code' => (string)$code] |
|
707 | + ['license_plate' => (string) $licensePlate, 'code' => (string) $code] |
|
708 | 708 | ); |
709 | 709 | } |
710 | 710 | |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | */ |
720 | 720 | public function carRDWCarData($licensePlate) |
721 | 721 | { |
722 | - return $this->getAdapter()->call('carRDWCarData', ['license_plate' => (string)$licensePlate]); |
|
722 | + return $this->getAdapter()->call('carRDWCarData', ['license_plate' => (string) $licensePlate]); |
|
723 | 723 | } |
724 | 724 | |
725 | 725 | /** |
@@ -734,7 +734,7 @@ discard block |
||
734 | 734 | */ |
735 | 735 | public function carRDWCarDataBP($licensePlate) |
736 | 736 | { |
737 | - return $this->getAdapter()->call('carRDWCarDataBP', ['license_plate' => (string)$licensePlate]); |
|
737 | + return $this->getAdapter()->call('carRDWCarDataBP', ['license_plate' => (string) $licensePlate]); |
|
738 | 738 | } |
739 | 739 | |
740 | 740 | /** |
@@ -748,7 +748,7 @@ discard block |
||
748 | 748 | */ |
749 | 749 | public function carRDWCarDataBPV2($licensePlate) |
750 | 750 | { |
751 | - return $this->getAdapter()->call('carRDWCarDataBPV2', ['license_plate' => (string)$licensePlate]); |
|
751 | + return $this->getAdapter()->call('carRDWCarDataBPV2', ['license_plate' => (string) $licensePlate]); |
|
752 | 752 | } |
753 | 753 | |
754 | 754 | /** |
@@ -766,7 +766,7 @@ discard block |
||
766 | 766 | { |
767 | 767 | return $this->getAdapter()->call( |
768 | 768 | 'carRDWCarDataExtended', |
769 | - ['license_plate' => (string)$licensePlate, 'code' => (string)$code] |
|
769 | + ['license_plate' => (string) $licensePlate, 'code' => (string) $code] |
|
770 | 770 | ); |
771 | 771 | } |
772 | 772 | |
@@ -780,7 +780,7 @@ discard block |
||
780 | 780 | */ |
781 | 781 | public function carRDWCarDataOptions($carId) |
782 | 782 | { |
783 | - return $this->getAdapter()->call('carRDWCarDataOptions', ['car_id' => (string)$carId]); |
|
783 | + return $this->getAdapter()->call('carRDWCarDataOptions', ['car_id' => (string) $carId]); |
|
784 | 784 | } |
785 | 785 | |
786 | 786 | /** |
@@ -796,7 +796,7 @@ discard block |
||
796 | 796 | */ |
797 | 797 | public function carRDWCarDataPrice($licensePlate) |
798 | 798 | { |
799 | - return $this->getAdapter()->call('carRDWCarDataPrice', ['license_plate' => (string)$licensePlate]); |
|
799 | + return $this->getAdapter()->call('carRDWCarDataPrice', ['license_plate' => (string) $licensePlate]); |
|
800 | 800 | } |
801 | 801 | |
802 | 802 | /** |
@@ -810,7 +810,7 @@ discard block |
||
810 | 810 | */ |
811 | 811 | public function carRDWCarDataV3($licensePlate) |
812 | 812 | { |
813 | - return $this->getAdapter()->call('carRDWCarDataV3', ['license_plate' => (string)$licensePlate]); |
|
813 | + return $this->getAdapter()->call('carRDWCarDataV3', ['license_plate' => (string) $licensePlate]); |
|
814 | 814 | } |
815 | 815 | |
816 | 816 | /** |
@@ -825,7 +825,7 @@ discard block |
||
825 | 825 | */ |
826 | 826 | public function carVWEBasicTypeData($licensePlate) |
827 | 827 | { |
828 | - return $this->getAdapter()->call('carVWEBasicTypeData', ['license_plate' => (string)$licensePlate]); |
|
828 | + return $this->getAdapter()->call('carVWEBasicTypeData', ['license_plate' => (string) $licensePlate]); |
|
829 | 829 | } |
830 | 830 | |
831 | 831 | /** |
@@ -851,7 +851,7 @@ discard block |
||
851 | 851 | { |
852 | 852 | return $this->getAdapter()->call( |
853 | 853 | 'carVWEListBrands', |
854 | - ['production_year' => (int)$productionYear, 'kind_id' => (int)$kindId, 'page' => (int)$page] |
|
854 | + ['production_year' => (int) $productionYear, 'kind_id' => (int) $kindId, 'page' => (int) $page] |
|
855 | 855 | ); |
856 | 856 | } |
857 | 857 | |
@@ -872,10 +872,10 @@ discard block |
||
872 | 872 | return $this->getAdapter()->call( |
873 | 873 | 'carVWEListModels', |
874 | 874 | [ |
875 | - 'production_year' => (int)$productionYear, |
|
876 | - 'kind_id' => (int)$kindId, |
|
877 | - 'brand_id' => (int)$brandId, |
|
878 | - 'page' => (int)$page, |
|
875 | + 'production_year' => (int) $productionYear, |
|
876 | + 'kind_id' => (int) $kindId, |
|
877 | + 'brand_id' => (int) $brandId, |
|
878 | + 'page' => (int) $page, |
|
879 | 879 | ] |
880 | 880 | ); |
881 | 881 | } |
@@ -944,15 +944,15 @@ discard block |
||
944 | 944 | return $this->getAdapter()->call( |
945 | 945 | 'carVWEListVersions', |
946 | 946 | [ |
947 | - 'production_year' => (int)$productionYear, |
|
948 | - 'kind_id' => (int)$kindId, |
|
949 | - 'brand_id' => (int)$brandId, |
|
950 | - 'model_id' => (int)$modelId, |
|
951 | - 'fuel_type_id' => (int)$fuelTypeId, |
|
952 | - 'body_style_id' => (int)$bodyStyleId, |
|
953 | - 'doors' => (int)$doors, |
|
954 | - 'gear_id' => (int)$gearId, |
|
955 | - 'page' => (int)$page, |
|
947 | + 'production_year' => (int) $productionYear, |
|
948 | + 'kind_id' => (int) $kindId, |
|
949 | + 'brand_id' => (int) $brandId, |
|
950 | + 'model_id' => (int) $modelId, |
|
951 | + 'fuel_type_id' => (int) $fuelTypeId, |
|
952 | + 'body_style_id' => (int) $bodyStyleId, |
|
953 | + 'doors' => (int) $doors, |
|
954 | + 'gear_id' => (int) $gearId, |
|
955 | + 'page' => (int) $page, |
|
956 | 956 | ] |
957 | 957 | ); |
958 | 958 | } |
@@ -971,7 +971,7 @@ discard block |
||
971 | 971 | { |
972 | 972 | return $this->getAdapter()->call( |
973 | 973 | 'carVWEMeldcodeCheck', |
974 | - ['license_plate' => (string)$licensePlate, 'code' => (string)$code] |
|
974 | + ['license_plate' => (string) $licensePlate, 'code' => (string) $code] |
|
975 | 975 | ); |
976 | 976 | } |
977 | 977 | |
@@ -991,7 +991,7 @@ discard block |
||
991 | 991 | { |
992 | 992 | return $this->getAdapter()->call( |
993 | 993 | 'carVWEOptions', |
994 | - ['license_plate' => (string)$licensePlate, 'atl_code' => (int)$atlCode] |
|
994 | + ['license_plate' => (string) $licensePlate, 'atl_code' => (int) $atlCode] |
|
995 | 995 | ); |
996 | 996 | } |
997 | 997 | |
@@ -1005,7 +1005,7 @@ discard block |
||
1005 | 1005 | */ |
1006 | 1006 | public function carVWEPhotos($atlCode) |
1007 | 1007 | { |
1008 | - return $this->getAdapter()->call('carVWEPhotos', ['atl_code' => (int)$atlCode]); |
|
1008 | + return $this->getAdapter()->call('carVWEPhotos', ['atl_code' => (int) $atlCode]); |
|
1009 | 1009 | } |
1010 | 1010 | |
1011 | 1011 | /** |
@@ -1023,7 +1023,7 @@ discard block |
||
1023 | 1023 | { |
1024 | 1024 | return $this->getAdapter()->call( |
1025 | 1025 | 'carVWEVersionPrice', |
1026 | - ['license_plate' => (string)$licensePlate, 'atl_code' => (int)$atlCode] |
|
1026 | + ['license_plate' => (string) $licensePlate, 'atl_code' => (int) $atlCode] |
|
1027 | 1027 | ); |
1028 | 1028 | } |
1029 | 1029 | |
@@ -1093,7 +1093,7 @@ discard block |
||
1093 | 1093 | { |
1094 | 1094 | return $this->getAdapter()->call( |
1095 | 1095 | 'creditsafeGetReportFull', |
1096 | - ['company_id' => (int)$companyId, 'language' => (string)$language, 'document' => (string)$document] |
|
1096 | + ['company_id' => (int) $companyId, 'language' => (string) $language, 'document' => (string) $document] |
|
1097 | 1097 | ); |
1098 | 1098 | } |
1099 | 1099 | |
@@ -1499,7 +1499,7 @@ discard block |
||
1499 | 1499 | { |
1500 | 1500 | return $this->getAdapter()->call( |
1501 | 1501 | 'dutchBusinessGetExtractDocument', |
1502 | - ['dossier_number' => (string)$dossierNumber, 'allow_caching' => (bool)$allowCaching] |
|
1502 | + ['dossier_number' => (string) $dossierNumber, 'allow_caching' => (bool) $allowCaching] |
|
1503 | 1503 | ); |
1504 | 1504 | } |
1505 | 1505 | |
@@ -2515,7 +2515,7 @@ discard block |
||
2515 | 2515 | */ |
2516 | 2516 | public function geoLocationNeighborhoodCoordinatesLatLon($nbCode) |
2517 | 2517 | { |
2518 | - return $this->getAdapter()->call('geoLocationNeighborhoodCoordinatesLatLon', ['nbcode' => (string)$nbCode]); |
|
2518 | + return $this->getAdapter()->call('geoLocationNeighborhoodCoordinatesLatLon', ['nbcode' => (string) $nbCode]); |
|
2519 | 2519 | } |
2520 | 2520 | |
2521 | 2521 | /** |
@@ -2528,7 +2528,7 @@ discard block |
||
2528 | 2528 | */ |
2529 | 2529 | public function geoLocationNeighborhoodCoordinatesRD($nbCode) |
2530 | 2530 | { |
2531 | - return $this->getAdapter()->call('geoLocationNeighborhoodCoordinatesRD', ['nbcode' => (string)$nbCode]); |
|
2531 | + return $this->getAdapter()->call('geoLocationNeighborhoodCoordinatesRD', ['nbcode' => (string) $nbCode]); |
|
2532 | 2532 | } |
2533 | 2533 | |
2534 | 2534 | /** |
@@ -2652,7 +2652,7 @@ discard block |
||
2652 | 2652 | { |
2653 | 2653 | return $this->getAdapter()->call( |
2654 | 2654 | 'graydonCreditCompanyLiaisons', |
2655 | - ['graydon_company_id' => (int)$graydonCompanyId] |
|
2655 | + ['graydon_company_id' => (int) $graydonCompanyId] |
|
2656 | 2656 | ); |
2657 | 2657 | } |
2658 | 2658 | |
@@ -4443,11 +4443,11 @@ discard block |
||
4443 | 4443 | return $this->getAdapter()->call( |
4444 | 4444 | 'routePlannerEUDescription', |
4445 | 4445 | [ |
4446 | - 'latitudefrom' => (float)$latitudeFrom, |
|
4447 | - 'longitudefrom' => (float)$longitudeFrom, |
|
4448 | - 'latitudeto' => (float)$latitudeTo, |
|
4449 | - 'longitudeto' => (float)$longitudeTo, |
|
4450 | - 'routetype' => (float)$routeType, |
|
4446 | + 'latitudefrom' => (float) $latitudeFrom, |
|
4447 | + 'longitudefrom' => (float) $longitudeFrom, |
|
4448 | + 'latitudeto' => (float) $latitudeTo, |
|
4449 | + 'longitudeto' => (float) $longitudeTo, |
|
4450 | + 'routetype' => (float) $routeType, |
|
4451 | 4451 | 'language' => $language, |
4452 | 4452 | ] |
4453 | 4453 | ); |