@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function getIdentifier($key) |
| 35 | 35 | { |
| 36 | - $id = sha1(self::CACHE_ID_PREFIX . $key); |
|
| 36 | + $id = sha1(self::CACHE_ID_PREFIX.$key); |
|
| 37 | 37 | return $id; |
| 38 | 38 | } |
| 39 | 39 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function render($size) |
| 22 | 22 | { |
| 23 | - $emptyArray = []; |
|
| 23 | + $emptyArray = []; |
|
| 24 | 24 | $emptyArray = array_pad($emptyArray, $size, ''); |
| 25 | 25 | return $emptyArray; |
| 26 | 26 | } |
@@ -50,8 +50,8 @@ |
||
| 50 | 50 | protected function getApiCallsArray() |
| 51 | 51 | { |
| 52 | 52 | $this->fileService = GeneralUtility::makeInstance(FileService::class); |
| 53 | - $apiCallData = $this->fileService->readFile( |
|
| 54 | - PATH_site . 'typo3conf/ext/onpage_integration/Configuration/ApiCalls.json' |
|
| 53 | + $apiCallData = $this->fileService->readFile( |
|
| 54 | + PATH_site.'typo3conf/ext/onpage_integration/Configuration/ApiCalls.json' |
|
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | return json_decode($apiCallData, true); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * @param $section |
|
| 16 | + * @param string $section |
|
| 17 | 17 | * |
| 18 | 18 | * @return string |
| 19 | 19 | */ |
@@ -6,8 +6,6 @@ |
||
| 6 | 6 | |
| 7 | 7 | namespace HDNET\OnpageIntegration\ViewHelpers; |
| 8 | 8 | |
| 9 | -use TYPO3\CMS\Extbase\Utility\DebuggerUtility; |
|
| 10 | - |
|
| 11 | 9 | /** |
| 12 | 10 | * Class InArrayViewHelper |
| 13 | 11 | */ |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | { |
| 26 | 26 | $titleArray = explode('_', $title); |
| 27 | 27 | |
| 28 | - $UpperTitle = array_map(function ($value) { |
|
| 28 | + $UpperTitle = array_map(function($value) { |
|
| 29 | 29 | return ucfirst($value); |
| 30 | 30 | }, $titleArray); |
| 31 | 31 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * @param $section |
|
| 16 | + * @param string $section |
|
| 17 | 17 | * |
| 18 | 18 | * @return string |
| 19 | 19 | */ |
@@ -23,9 +23,9 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | $loader = GeneralUtility::makeInstance(\HDNET\OnpageIntegration\Loader\ApiResultLoader::class); |
| 25 | 25 | |
| 26 | - for ($i = 0; $i < count($metaDataArray[0]); $i++) { |
|
| 26 | + for ($i = 0; $i<count($metaDataArray[0]); $i++) { |
|
| 27 | 27 | |
| 28 | - $graphDataArray = $loader->load('zoom_' . $section . '_' . $i . '_graph'); |
|
| 28 | + $graphDataArray = $loader->load('zoom_'.$section.'_'.$i.'_graph'); |
|
| 29 | 29 | $errorReportyKey = $metaDataArray[0][$i]['errors']; |
| 30 | 30 | |
| 31 | 31 | $metaDataArray[0][$i]['errors'] = self::errorReport($graphDataArray, $errorReportyKey); |
@@ -41,19 +41,19 @@ discard block |
||
| 41 | 41 | * |
| 42 | 42 | * @return int |
| 43 | 43 | */ |
| 44 | - protected static function errorReport($graphApiCallResult,$errorReportKey) { |
|
| 44 | + protected static function errorReport($graphApiCallResult, $errorReportKey) { |
|
| 45 | 45 | $totalErrors = 0; |
| 46 | 46 | |
| 47 | - foreach($graphApiCallResult as $element) { |
|
| 47 | + foreach ($graphApiCallResult as $element) { |
|
| 48 | 48 | |
| 49 | - if(in_array('sum', $errorReportKey)) { |
|
| 50 | - if(in_array($errorReportKey['hidden'], $element)) { |
|
| 49 | + if (in_array('sum', $errorReportKey)) { |
|
| 50 | + if (in_array($errorReportKey['hidden'], $element)) { |
|
| 51 | 51 | continue; |
| 52 | 52 | } |
| 53 | 53 | $totalErrors += $element['count']; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - if(in_array($errorReportKey['show'], $element)) { |
|
| 56 | + if (in_array($errorReportKey['show'], $element)) { |
|
| 57 | 57 | $totalErrors += $element['count']; |
| 58 | 58 | } |
| 59 | 59 | } |
@@ -72,8 +72,8 @@ |
||
| 72 | 72 | /** @var \HDNET\OnpageIntegration\Domain\Model\Configuration $configuration */ |
| 73 | 73 | $configuration = $configurationRepository->findByUid(1); |
| 74 | 74 | |
| 75 | - $apiCallTable = 'zoom_' . $section . '_' . $call . '_table'; |
|
| 76 | - $apiCallGraph = 'zoom_' . $section . '_' . $call . '_graph'; |
|
| 75 | + $apiCallTable = 'zoom_'.$section.'_'.$call.'_table'; |
|
| 76 | + $apiCallGraph = 'zoom_'.$section.'_'.$call.'_graph'; |
|
| 77 | 77 | |
| 78 | 78 | $this->view->assignMultiple([ |
| 79 | 79 | 'moduleName' => TitleUtility::makeSubTitle($section), |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | if ($entry === false) { |
| 47 | 47 | try { |
| 48 | 48 | $entry = $this->dataService->getApiResult($key); |
| 49 | - }catch (ApiErrorException $e) { |
|
| 49 | + } catch (ApiErrorException $e) { |
|
| 50 | 50 | |
| 51 | 51 | } |
| 52 | 52 | $this->persister->persist($entry, $key); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | if ($entry === false) { |
| 47 | 47 | try { |
| 48 | 48 | $entry = $this->dataService->getApiResult($key); |
| 49 | - }catch (ApiErrorException $e) { |
|
| 49 | + } catch (ApiErrorException $e) { |
|
| 50 | 50 | |
| 51 | 51 | } |
| 52 | 52 | $this->persister->persist($entry, $key); |