Completed
Push — develop ( f4b279...a19c81 )
by René
17:42
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/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/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/Service/OnPageService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $i = 0;
48 48
         foreach ($buildData as &$element) {
49
-            $graphDataArray = $this->loader->load('zoom_' . $section . '_' . $i . '_graph');
49
+            $graphDataArray = $this->loader->load('zoom_'.$section.'_'.$i.'_graph');
50 50
             $errorReportKey = $element['errors'];
51 51
             $element['errors'] = $this->errorReport($graphDataArray, $errorReportKey);
52 52
             $i++;
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 if (array_key_exists($key, $singleCallElement)) {
102 102
                     $singleRecordArray[$key] = $singleCallElement[$key];
103 103
                 }
104
-                if($key === 'documents') {
104
+                if ($key === 'documents') {
105 105
                     $documents = [
106 106
                         'mime' => $singleCallElement['mime'],
107 107
                         'meta_title' => $singleCallElement['meta_title'],
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     public function replaceNULL($array)
122 122
     {
123 123
         foreach ($array as &$element) {
124
-            if(empty($element)) {
124
+            if (empty($element)) {
125 125
                 $element = "Keine";
126 126
             }
127 127
         }
Please login to merge, or discard this patch.
Classes/ViewHelpers/ArrayTransformViewHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
      */
35 35
     public function render($lastCrawl)
36 36
     {
37
-        foreach($lastCrawl as $lastCrawlElement) {
38
-            foreach($this->transformedLastCrawl as $key => $element) {
39
-                if($lastCrawlElement['inventory_group'] === $key) {
37
+        foreach ($lastCrawl as $lastCrawlElement) {
38
+            foreach ($this->transformedLastCrawl as $key => $element) {
39
+                if ($lastCrawlElement['inventory_group'] === $key) {
40 40
                     $this->transformedLastCrawl[$key] = $lastCrawlElement['count'];
41 41
                 }
42 42
             }
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
@@ -70,11 +70,11 @@
 block discarded – undo
70 70
 
71 71
         $showTableKey = $metaDataResult[$call]['show'];
72 72
         // todo fix
73
-        if(!$showTableKey) {
73
+        if (!$showTableKey) {
74 74
             $showTableKey = [];
75 75
         }
76 76
 
77
-        $apiCallTable = 'zoom_' . $section . '_' . $call . '_table';
77
+        $apiCallTable = 'zoom_'.$section.'_'.$call.'_table';
78 78
         $this->view->assignMultiple([
79 79
             'moduleName'    => TitleUtility::makeSubTitle($section),
80 80
             'table'         => $this->onpPageService->showColumns($apiCallTable, $showTableKey),
Please login to merge, or discard this patch.