@@ -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 |
@@ -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); |
@@ -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 |
@@ -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); |
@@ -40,7 +40,6 @@ |
||
40 | 40 | * |
41 | 41 | * @param array $buildData |
42 | 42 | * @param string $section |
43 | - * @param ApiResultLoader $loader |
|
44 | 43 | */ |
45 | 44 | public function build($buildData, $section) |
46 | 45 | { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $i = 0; |
47 | 47 | foreach ($buildData as &$element) { |
48 | - $graphDataArray = $this->loader->load('zoom_' . $section . '_' . $i . '_graph'); |
|
48 | + $graphDataArray = $this->loader->load('zoom_'.$section.'_'.$i.'_graph'); |
|
49 | 49 | $errorReportKey = $element['errors']; |
50 | 50 | $element['errors'] = $this->errorReport($graphDataArray, $errorReportKey); |
51 | 51 | $i++; |
@@ -52,7 +52,7 @@ |
||
52 | 52 | // todo outsourced |
53 | 53 | $trimmedConfigData = []; |
54 | 54 | foreach ($configData['zoom'][$key] as $element) { |
55 | - if(!array_key_exists('disable', $element)) { |
|
55 | + if (!array_key_exists('disable', $element)) { |
|
56 | 56 | $trimmedConfigData[] = $element; |
57 | 57 | } |
58 | 58 | } |