@@ -62,16 +62,16 @@ |
||
| 62 | 62 | CURLOPT_HTTPHEADER, |
| 63 | 63 | array( |
| 64 | 64 | 'Content-Type: application/json', |
| 65 | - 'Content-Length: ' . strlen($data) |
|
| 65 | + 'Content-Length: '.strlen($data) |
|
| 66 | 66 | ) |
| 67 | 67 | ); |
| 68 | 68 | $return = curl_exec($ch); |
| 69 | 69 | $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
| 70 | 70 | |
| 71 | - if ($code >= 500) { |
|
| 71 | + if ($code>=500) { |
|
| 72 | 72 | throw new UnavailableException('The API could not be reached.'); |
| 73 | 73 | } |
| 74 | - if ($code >= 400) { |
|
| 74 | + if ($code>=400) { |
|
| 75 | 75 | throw new UnavailableException('There has been an error reaching the API.'); |
| 76 | 76 | } |
| 77 | 77 | |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | $metaDataProvider = $this->metaDataProvider->getMetaData($section); |
| 77 | 77 | |
| 78 | 78 | $showTableKey = $metaDataProvider[$call]['show']; |
| 79 | - $apiCallTable = 'zoom_' . $section . '_' . $call . '_table'; |
|
| 79 | + $apiCallTable = 'zoom_'.$section.'_'.$call.'_table'; |
|
| 80 | 80 | |
| 81 | 81 | $table = $this->loader->load($apiCallTable); |
| 82 | 82 | #$table = ArrayUtility::showTable($this->loader->load($apiCallTable), $showTableKey); |
@@ -23,8 +23,8 @@ |
||
| 23 | 23 | { |
| 24 | 24 | $loader = GeneralUtility::makeInstance(\HDNET\OnpageIntegration\Loader\ApiResultLoader::class); |
| 25 | 25 | |
| 26 | - for ($i = 0; $i < count($metaDataArray[0]); $i++) { |
|
| 27 | - $graphDataArray = $loader->load('zoom_' . $section . '_' . $i . '_graph'); |
|
| 26 | + for ($i = 0; $i<count($metaDataArray[0]); $i++) { |
|
| 27 | + $graphDataArray = $loader->load('zoom_'.$section.'_'.$i.'_graph'); |
|
| 28 | 28 | $errorReportyKey = $metaDataArray[0][$i]['errors']; |
| 29 | 29 | |
| 30 | 30 | $metaDataArray[0][$i]['errors'] = self::errorReport($graphDataArray, $errorReportyKey); |