Completed
Push — develop ( 0bffec...8a2c2d )
by René
12:37
created
Classes/Service/ApiCallService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,16 +62,16 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Classes/Controller/BackendController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Classes/Utility/ArrayUtility.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.