@@ -10,7 +10,6 @@ |
||
10 | 10 | use HDNET\OnpageIntegration\Utility\ArrayUtility; |
11 | 11 | use HDNET\OnpageIntegration\Utility\TitleUtility; |
12 | 12 | use TYPO3\CMS\Extbase\Mvc\Controller\ActionController; |
13 | -use TYPO3\CMS\Extbase\Utility\DebuggerUtility; |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * Class BackendController |
@@ -78,7 +78,7 @@ |
||
78 | 78 | $metaDataProvider = $this->metaDataProvider->getMetaData($section); |
79 | 79 | |
80 | 80 | $showTableKey = $metaDataProvider[$call]['show']; |
81 | - $apiCallTable = 'zoom_' . $section . '_' . $call . '_table'; |
|
81 | + $apiCallTable = 'zoom_'.$section.'_'.$call.'_table'; |
|
82 | 82 | |
83 | 83 | $table = $this->loader->load($apiCallTable); |
84 | 84 | #$table = ArrayUtility::showTable($this->loader->load($apiCallTable), $showTableKey); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | namespace HDNET\OnpageIntegration\Utility; |
6 | 6 | |
7 | 7 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
8 | -use TYPO3\CMS\Extbase\Utility\DebuggerUtility; |
|
9 | 8 | |
10 | 9 | /** |
11 | 10 | * Class ArrayUtility |
@@ -24,9 +24,9 @@ discard block |
||
24 | 24 | { |
25 | 25 | $loader = GeneralUtility::makeInstance(\HDNET\OnpageIntegration\Loader\ApiResultLoader::class); |
26 | 26 | |
27 | - for ($i = 0; $i < count($metaDataArray[0]); $i++) { |
|
27 | + for ($i = 0; $i<count($metaDataArray[0]); $i++) { |
|
28 | 28 | |
29 | - $graphDataArray = $loader->load('zoom_' . $section . '_' . $i . '_graph'); |
|
29 | + $graphDataArray = $loader->load('zoom_'.$section.'_'.$i.'_graph'); |
|
30 | 30 | $errorReportyKey = $metaDataArray[0][$i]['errors']; |
31 | 31 | |
32 | 32 | $metaDataArray[0][$i]['errors'] = self::errorReport($graphDataArray, $errorReportyKey); |
@@ -43,19 +43,19 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @return int |
45 | 45 | */ |
46 | - protected static function errorReport($graphApiCallResult,$errorReportKey) { |
|
46 | + protected static function errorReport($graphApiCallResult, $errorReportKey) { |
|
47 | 47 | $totalErrors = 0; |
48 | 48 | |
49 | - foreach($graphApiCallResult as $element) { |
|
49 | + foreach ($graphApiCallResult as $element) { |
|
50 | 50 | |
51 | - if(in_array('sum', $errorReportKey)) { |
|
52 | - if(in_array($errorReportKey['hidden'], $element)) { |
|
51 | + if (in_array('sum', $errorReportKey)) { |
|
52 | + if (in_array($errorReportKey['hidden'], $element)) { |
|
53 | 53 | continue; |
54 | 54 | } |
55 | 55 | $totalErrors += $element['count']; |
56 | 56 | } |
57 | 57 | |
58 | - if(in_array($errorReportKey['show'], $element)) { |
|
58 | + if (in_array($errorReportKey['show'], $element)) { |
|
59 | 59 | $totalErrors += $element['count']; |
60 | 60 | } |
61 | 61 | } |
@@ -71,12 +71,12 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @return array |
73 | 73 | */ |
74 | - public static function showTable(array $tableApiCallResult,array $showTableKey) { |
|
74 | + public static function showTable(array $tableApiCallResult, array $showTableKey) { |
|
75 | 75 | $fittedTablesRecords = []; |
76 | - foreach($tableApiCallResult as $singleCallElement) { |
|
76 | + foreach ($tableApiCallResult as $singleCallElement) { |
|
77 | 77 | |
78 | - foreach($showTableKey as $key) { |
|
79 | - if(array_key_exists($key, $singleCallElement)) { |
|
78 | + foreach ($showTableKey as $key) { |
|
79 | + if (array_key_exists($key, $singleCallElement)) { |
|
80 | 80 | $singleRecordArray[$key] = $singleCallElement[$key]; |
81 | 81 | } |
82 | 82 | } |