Completed
Push — develop ( 29c45a...9c1d06 )
by René
03:15
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/Service/ProgressService.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,6 @@
 block discarded – undo
7 7
 
8 8
 
9 9
 use HDNET\OnpageIntegration\Service\AbstractService;
10
-use TYPO3\CMS\Core\Utility\GeneralUtility;
11
-use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
12 10
 
13 11
 class ProgressService extends AbstractService
14 12
 {
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/Controller/BackendController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use HDNET\OnpageIntegration\Utility\TitleUtility;
11 11
 use HDNET\OnpageIntegration\Provider\MetaDataProvider;
12 12
 use HDNET\OnpageIntegration\Utility\ArrayUtility;
13
-
14 13
 use TYPO3\CMS\Extbase\Object\ObjectManager;
15 14
 use TYPO3\CMS\Core\Utility\GeneralUtility;
16 15
 use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@
 block discarded – undo
64 64
         /** @var \HDNET\OnpageIntegration\Domain\Model\Configuration $configuration */
65 65
         $configuration = $configurationRepository->findByUid(1);
66 66
 
67
-        $apiCallTable = 'zoom_' . $section . '_' . $call . '_table';
68
-        $apiCallGraph = 'zoom_' . $section . '_' . $call . '_graph';
67
+        $apiCallTable = 'zoom_'.$section.'_'.$call.'_table';
68
+        $apiCallGraph = 'zoom_'.$section.'_'.$call.'_graph';
69 69
 
70 70
         $this->view->assignMultiple([
71 71
             'moduleName' => TitleUtility::makeSubTitle($section),
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.