Completed
Push — develop ( b082c1...67a76c )
by René
03:07
created
Classes/Persister/ApiResultToCachePersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Classes/ViewHelpers/ArrayPadViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Classes/Provider/ConfigurationProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Classes/Utility/TitleUtility.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
 
15 15
     /**
16
-     * @param $section
16
+     * @param string $section
17 17
      *
18 18
      * @return string
19 19
      */
Please login to merge, or discard this patch.
Classes/ViewHelpers/InArrayViewHelper.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,6 @@
 block discarded – undo
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
  */
Please login to merge, or discard this patch.
Classes/ViewHelpers/TitleViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Classes/Utility/ArrayUtility.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
 
15 15
     /**
16
-     * @param $section
16
+     * @param string $section
17 17
      *
18 18
      * @return string
19 19
      */
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@  discard block
 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++) {
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Classes/Controller/BackendController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
Classes/Service/DataService.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         foreach ($keys as $key) {
80 80
             try {
81 81
                 $results[$key] = $this->getApiResult($key);
82
-            }catch (ApiErrorException $e) {
82
+            } catch (ApiErrorException $e) {
83 83
                 continue;
84 84
             }
85 85
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         foreach ($keys as $key) {
80 80
             try {
81 81
                 $results[$key] = $this->getApiResult($key);
82
-            }catch (ApiErrorException $e) {
82
+            } catch (ApiErrorException $e) {
83 83
                 continue;
84 84
             }
85 85
 
Please login to merge, or discard this patch.