File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11parameters :
22 level : 5
3- checkMissingIterableValueType : false
43 paths :
54 - src
6- - tests
7- ignoreErrors :
8- # Ignore skipped tests:
9- - message : " #Unreachable statement#"
10- paths :
11- - tests/Idoit/APIClient/*
Original file line number Diff line number Diff line change @@ -622,7 +622,7 @@ protected function execute(array $data): array {
622622 $ lastResponse = json_decode (trim ($ body ), true );
623623
624624 if (!is_array ($ lastResponse )) {
625- if (is_string ( $ body ) && strlen ($ body ) > 0 ) {
625+ if (strlen ($ body ) > 0 ) {
626626 throw new RuntimeException (sprintf (
627627 'i-doit responded with an unknown message: %s ' ,
628628 $ body
Original file line number Diff line number Diff line change @@ -131,13 +131,7 @@ public function readAll(): array {
131131
132132 $ categories = $ this ->batchRead ($ cleanCategoryConstants );
133133
134- $ combinedArray = array_combine ($ cleanCategoryConstants , $ categories );
135-
136- if (!is_array ($ combinedArray )) {
137- throw new RuntimeException ('Unable to restructure result ' );
138- }
139-
140- return $ combinedArray ;
134+ return array_combine ($ cleanCategoryConstants , $ categories );
141135 }
142136
143137 /**
You can’t perform that action at this time.
0 commit comments