GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Setup Failed
Push — master ( fe4962...3aa77f )
by Thijs
04:04
created
src/Protocol/Soap/Client/SoapClient.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @param SoapSettings $settings
68 68
      * @param Manager      $manager
69
-     * @param              $client
69
+     * @param              httpClient $client
70 70
      *
71 71
      * @throws NoServerAvailableException
72 72
      * @throws \InvalidArgumentException
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     /**
171 171
      * Http version of doRequest.
172 172
      *
173
-     * @param mixed  $requestBody
173
+     * @param string  $requestBody
174 174
      * @param string $location
175 175
      * @param string $action
176 176
      *
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -79,10 +79,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/Protocol/Soap/Client/SoapFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Protocol/Soap/Client/SoapConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Protocol/Soap/Config/Platform/Webservices/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/Protocol/Soap/Helper/GuzzleClientFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,11 +68,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Platform/Webservices/Connector.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
         return $this->getAdapter()->call(
64 64
             'accountEditV2',
65 65
             ['accountid'        => $accountId,
66
-             'address'          => $address,
67
-             'contactname'      => $contactName,
68
-             'contactemail'     => $contactEmail,
69
-             'telephone'        => $telephone,
70
-             'fax'              => $fax,
71
-             'description'      => $description,
72
-             'balancethreshold' => (float)$balanceThreshold,
66
+                'address'          => $address,
67
+                'contactname'      => $contactName,
68
+                'contactemail'     => $contactEmail,
69
+                'telephone'        => $telephone,
70
+                'fax'              => $fax,
71
+                'description'      => $description,
72
+                'balancethreshold' => (float)$balanceThreshold,
73 73
             ]
74 74
         );
75 75
     }
@@ -542,15 +542,15 @@  discard block
 block discarded – undo
542 542
         return $this->getAdapter()->call(
543 543
             'addressReeksFullParameterSearch',
544 544
             ['province'          => $province,
545
-             'district'          => $district,
546
-             'city'              => $city,
547
-             'street'            => $street,
548
-             'houseNo'           => $houseNo,
549
-             'houseNoAddition'   => $houseNoAddition,
550
-             'nbcode'            => $nbCode,
551
-             'lettercombination' => $letterCombination,
552
-             'addresstype'       => $addressType,
553
-             'page'              => $page,
545
+                'district'          => $district,
546
+                'city'              => $city,
547
+                'street'            => $street,
548
+                'houseNo'           => $houseNo,
549
+                'houseNoAddition'   => $houseNoAddition,
550
+                'nbcode'            => $nbCode,
551
+                'lettercombination' => $letterCombination,
552
+                'addresstype'       => $addressType,
553
+                'page'              => $page,
554 554
             ]
555 555
         );
556 556
     }
@@ -575,12 +575,12 @@  discard block
 block discarded – undo
575 575
         return $this->getAdapter()->call(
576 576
             'addressReeksParameterSearch',
577 577
             ['province'        => $province,
578
-             'district'        => $district,
579
-             'city'            => $city,
580
-             'street'          => $street,
581
-             'houseNo'         => $houseNo,
582
-             'houseNoAddition' => $houseNoAddition,
583
-             'page'            => $page]
578
+                'district'        => $district,
579
+                'city'            => $city,
580
+                'street'          => $street,
581
+                'houseNo'         => $houseNo,
582
+                'houseNoAddition' => $houseNoAddition,
583
+                'page'            => $page]
584 584
         );
585 585
     }
586 586
 
Please login to merge, or discard this patch.
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
              'telephone'        => $telephone,
70 70
              'fax'              => $fax,
71 71
              'description'      => $description,
72
-             'balancethreshold' => (float)$balanceThreshold,
72
+             'balancethreshold' => (float) $balanceThreshold,
73 73
             ]
74 74
         );
75 75
     }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     public function accountUserListV2($accountId, $page)
142 142
     {
143
-        return $this->getAdapter()->call('accountUserListV2', ['accountid' => (int)$accountId, 'page' => $page]);
143
+        return $this->getAdapter()->call('accountUserListV2', ['accountid' => (int) $accountId, 'page' => $page]);
144 144
     }
145 145
 
146 146
     /**
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      */
198 198
     public function accountViewV2($accountId)
199 199
     {
200
-        return $this->getAdapter()->call('accountViewV2', ['accountid' => (int)$accountId]);
200
+        return $this->getAdapter()->call('accountViewV2', ['accountid' => (int) $accountId]);
201 201
     }
202 202
 
203 203
     /**
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     {
215 215
         return $this->getAdapter()->call(
216 216
             'addressCityListNeighborhoods',
217
-            ['name' => $name, 'postbus' => (bool)$postbus, 'page' => $page]
217
+            ['name' => $name, 'postbus' => (bool) $postbus, 'page' => $page]
218 218
         );
219 219
     }
220 220
 
@@ -700,7 +700,7 @@  discard block
 block discarded – undo
700 700
     {
701 701
         return $this->getAdapter()->call(
702 702
             'carRDWCarCheckCode',
703
-            ['license_plate' => (string)$licensePlate, 'code' => (string)$code]
703
+            ['license_plate' => (string) $licensePlate, 'code' => (string) $code]
704 704
         );
705 705
     }
706 706
 
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
      */
716 716
     public function carRDWCarData($licensePlate)
717 717
     {
718
-        return $this->getAdapter()->call('carRDWCarData', ['license_plate' => (string)$licensePlate]);
718
+        return $this->getAdapter()->call('carRDWCarData', ['license_plate' => (string) $licensePlate]);
719 719
     }
720 720
 
721 721
     /**
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
      */
731 731
     public function carRDWCarDataBP($licensePlate)
732 732
     {
733
-        return $this->getAdapter()->call('carRDWCarDataBP', ['license_plate' => (string)$licensePlate]);
733
+        return $this->getAdapter()->call('carRDWCarDataBP', ['license_plate' => (string) $licensePlate]);
734 734
     }
735 735
 
736 736
     /**
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
      */
745 745
     public function carRDWCarDataBPV2($licensePlate)
746 746
     {
747
-        return $this->getAdapter()->call('carRDWCarDataBPV2', ['license_plate' => (string)$licensePlate]);
747
+        return $this->getAdapter()->call('carRDWCarDataBPV2', ['license_plate' => (string) $licensePlate]);
748 748
     }
749 749
 
750 750
     /**
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
     {
763 763
         return $this->getAdapter()->call(
764 764
             'carRDWCarDataExtended',
765
-            ['license_plate' => (string)$licensePlate, 'code' => (string)$code]
765
+            ['license_plate' => (string) $licensePlate, 'code' => (string) $code]
766 766
         );
767 767
     }
768 768
 
@@ -776,7 +776,7 @@  discard block
 block discarded – undo
776 776
      */
777 777
     public function carRDWCarDataOptions($carId)
778 778
     {
779
-        return $this->getAdapter()->call('carRDWCarDataOptions', ['car_id' => (string)$carId]);
779
+        return $this->getAdapter()->call('carRDWCarDataOptions', ['car_id' => (string) $carId]);
780 780
     }
781 781
 
782 782
     /**
@@ -792,7 +792,7 @@  discard block
 block discarded – undo
792 792
      */
793 793
     public function carRDWCarDataPrice($licensePlate)
794 794
     {
795
-        return $this->getAdapter()->call('carRDWCarDataPrice', ['license_plate' => (string)$licensePlate]);
795
+        return $this->getAdapter()->call('carRDWCarDataPrice', ['license_plate' => (string) $licensePlate]);
796 796
     }
797 797
 
798 798
     /**
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
      */
807 807
     public function carRDWCarDataV3($licensePlate)
808 808
     {
809
-        return $this->getAdapter()->call('carRDWCarDataV3', ['license_plate' => (string)$licensePlate]);
809
+        return $this->getAdapter()->call('carRDWCarDataV3', ['license_plate' => (string) $licensePlate]);
810 810
     }
811 811
 
812 812
     /**
@@ -821,7 +821,7 @@  discard block
 block discarded – undo
821 821
      */
822 822
     public function carVWEBasicTypeData($licensePlate)
823 823
     {
824
-        return $this->getAdapter()->call('carVWEBasicTypeData', ['license_plate' => (string)$licensePlate]);
824
+        return $this->getAdapter()->call('carVWEBasicTypeData', ['license_plate' => (string) $licensePlate]);
825 825
     }
826 826
 
827 827
     /**
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
     {
848 848
         return $this->getAdapter()->call(
849 849
             'carVWEListBrands',
850
-            ['production_year' => (int)$productionYear, 'kind_id' => (int)$kindId, 'page' => (int)$page]
850
+            ['production_year' => (int) $productionYear, 'kind_id' => (int) $kindId, 'page' => (int) $page]
851 851
         );
852 852
     }
853 853
 
@@ -868,10 +868,10 @@  discard block
 block discarded – undo
868 868
         return $this->getAdapter()->call(
869 869
             'carVWEListModels',
870 870
             [
871
-                'production_year' => (int)$productionYear,
872
-                'kind_id'         => (int)$kindId,
873
-                'brand_id'        => (int)$brandId,
874
-                'page'            => (int)$page,
871
+                'production_year' => (int) $productionYear,
872
+                'kind_id'         => (int) $kindId,
873
+                'brand_id'        => (int) $brandId,
874
+                'page'            => (int) $page,
875 875
             ]
876 876
         );
877 877
     }
@@ -940,15 +940,15 @@  discard block
 block discarded – undo
940 940
         return $this->getAdapter()->call(
941 941
             'carVWEListVersions',
942 942
             [
943
-                'production_year' => (int)$productionYear,
944
-                'kind_id'         => (int)$kindId,
945
-                'brand_id'        => (int)$brandId,
946
-                'model_id'        => (int)$modelId,
947
-                'fuel_type_id'    => (int)$fuelTypeId,
948
-                'body_style_id'   => (int)$bodyStyleId,
949
-                'doors'           => (int)$doors,
950
-                'gear_id'         => (int)$gearId,
951
-                'page'            => (int)$page,
943
+                'production_year' => (int) $productionYear,
944
+                'kind_id'         => (int) $kindId,
945
+                'brand_id'        => (int) $brandId,
946
+                'model_id'        => (int) $modelId,
947
+                'fuel_type_id'    => (int) $fuelTypeId,
948
+                'body_style_id'   => (int) $bodyStyleId,
949
+                'doors'           => (int) $doors,
950
+                'gear_id'         => (int) $gearId,
951
+                'page'            => (int) $page,
952 952
             ]
953 953
         );
954 954
     }
@@ -967,7 +967,7 @@  discard block
 block discarded – undo
967 967
     {
968 968
         return $this->getAdapter()->call(
969 969
             'carVWEMeldcodeCheck',
970
-            ['license_plate' => (string)$licensePlate, 'code' => (string)$code]
970
+            ['license_plate' => (string) $licensePlate, 'code' => (string) $code]
971 971
         );
972 972
     }
973 973
 
@@ -987,7 +987,7 @@  discard block
 block discarded – undo
987 987
     {
988 988
         return $this->getAdapter()->call(
989 989
             'carVWEOptions',
990
-            ['license_plate' => (string)$licensePlate, 'atl_code' => (int)$atlCode]
990
+            ['license_plate' => (string) $licensePlate, 'atl_code' => (int) $atlCode]
991 991
         );
992 992
     }
993 993
 
@@ -1001,7 +1001,7 @@  discard block
 block discarded – undo
1001 1001
      */
1002 1002
     public function carVWEPhotos($atlCode)
1003 1003
     {
1004
-        return $this->getAdapter()->call('carVWEPhotos', ['atl_code' => (int)$atlCode]);
1004
+        return $this->getAdapter()->call('carVWEPhotos', ['atl_code' => (int) $atlCode]);
1005 1005
     }
1006 1006
 
1007 1007
     /**
@@ -1019,7 +1019,7 @@  discard block
 block discarded – undo
1019 1019
     {
1020 1020
         return $this->getAdapter()->call(
1021 1021
             'carVWEVersionPrice',
1022
-            ['license_plate' => (string)$licensePlate, 'atl_code' => (int)$atlCode]
1022
+            ['license_plate' => (string) $licensePlate, 'atl_code' => (int) $atlCode]
1023 1023
         );
1024 1024
     }
1025 1025
 
@@ -1089,7 +1089,7 @@  discard block
 block discarded – undo
1089 1089
     {
1090 1090
         return $this->getAdapter()->call(
1091 1091
             'creditsafeGetReportFull',
1092
-            ['company_id' => (int)$companyId, 'language' => (string)$language, 'document' => (string)$document]
1092
+            ['company_id' => (int) $companyId, 'language' => (string) $language, 'document' => (string) $document]
1093 1093
         );
1094 1094
     }
1095 1095
 
@@ -1495,7 +1495,7 @@  discard block
 block discarded – undo
1495 1495
     {
1496 1496
         return $this->getAdapter()->call(
1497 1497
             'dutchBusinessGetExtractDocument',
1498
-            ['dossier_number' => (string)$dossierNumber, 'allow_caching' => (bool)$allowCaching]
1498
+            ['dossier_number' => (string) $dossierNumber, 'allow_caching' => (bool) $allowCaching]
1499 1499
         );
1500 1500
     }
1501 1501
 
@@ -2511,7 +2511,7 @@  discard block
 block discarded – undo
2511 2511
      */
2512 2512
     public function geoLocationNeighborhoodCoordinatesLatLon($nbCode)
2513 2513
     {
2514
-        return $this->getAdapter()->call('geoLocationNeighborhoodCoordinatesLatLon', ['nbcode' => (string)$nbCode]);
2514
+        return $this->getAdapter()->call('geoLocationNeighborhoodCoordinatesLatLon', ['nbcode' => (string) $nbCode]);
2515 2515
     }
2516 2516
 
2517 2517
     /**
@@ -2524,7 +2524,7 @@  discard block
 block discarded – undo
2524 2524
      */
2525 2525
     public function geoLocationNeighborhoodCoordinatesRD($nbCode)
2526 2526
     {
2527
-        return $this->getAdapter()->call('geoLocationNeighborhoodCoordinatesRD', ['nbcode' => (string)$nbCode]);
2527
+        return $this->getAdapter()->call('geoLocationNeighborhoodCoordinatesRD', ['nbcode' => (string) $nbCode]);
2528 2528
     }
2529 2529
 
2530 2530
     /**
@@ -2648,7 +2648,7 @@  discard block
 block discarded – undo
2648 2648
     {
2649 2649
         return $this->getAdapter()->call(
2650 2650
             'graydonCreditCompanyLiaisons',
2651
-            ['graydon_company_id' => (int)$graydonCompanyId]
2651
+            ['graydon_company_id' => (int) $graydonCompanyId]
2652 2652
         );
2653 2653
     }
2654 2654
 
@@ -4439,11 +4439,11 @@  discard block
 block discarded – undo
4439 4439
         return $this->getAdapter()->call(
4440 4440
             'routePlannerEUDescription',
4441 4441
             [
4442
-                'latitudefrom'  => (float)$latitudeFrom,
4443
-                'longitudefrom' => (float)$longitudeFrom,
4444
-                'latitudeto'    => (float)$latitudeTo,
4445
-                'longitudeto'   => (float)$longitudeTo,
4446
-                'routetype'     => (float)$routeType,
4442
+                'latitudefrom'  => (float) $latitudeFrom,
4443
+                'longitudefrom' => (float) $longitudeFrom,
4444
+                'latitudeto'    => (float) $latitudeTo,
4445
+                'longitudeto'   => (float) $longitudeTo,
4446
+                'routetype'     => (float) $routeType,
4447 4447
                 'language'      => $language,
4448 4448
             ]
4449 4449
         );
Please login to merge, or discard this patch.