Completed
Push — master ( 5ee59d...2838d5 )
by Tim
04:06 queued 02:03
created
Classes/Hooks/CmsLayout.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         $actions = $this->flexFormService->get('switchableControllerActions', 'main');
66 66
         $parts = GeneralUtility::trimExplode(';', $actions, true);
67
-        $parts = \array_map(function ($element) {
67
+        $parts = \array_map(function($element) {
68 68
             $split = \explode('->', $element);
69 69
 
70 70
             return \ucfirst($split[1]);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         $this->layoutService->addRow(TranslateUtility::get('mode'), TranslateUtility::get('mode.' . $actionKey));
75 75
 
76
-        $pluginConfiguration = (int) $this->flexFormService->get('settings.pluginConfiguration', 'main');
76
+        $pluginConfiguration = (int)$this->flexFormService->get('settings.pluginConfiguration', 'main');
77 77
         if ($pluginConfiguration) {
78 78
             $table = 'tx_calendarize_domain_model_pluginconfiguration';
79 79
 
@@ -88,17 +88,17 @@  discard block
 block discarded – undo
88 88
             );
89 89
         }
90 90
 
91
-        if ('' !== \trim((string) $this->flexFormService->get('settings.configuration', 'general'))) {
91
+        if ('' !== \trim((string)$this->flexFormService->get('settings.configuration', 'general'))) {
92 92
             $this->layoutService->addRow(
93 93
                 TranslateUtility::get('configuration'),
94 94
                 $this->flexFormService->get('settings.configuration', 'general')
95 95
             );
96 96
         }
97 97
 
98
-        if ((bool) $this->flexFormService->get('settings.hidePagination', 'main')) {
98
+        if ((bool)$this->flexFormService->get('settings.hidePagination', 'main')) {
99 99
             $this->layoutService->addRow(TranslateUtility::get('hide.pagination.teaser'), '!!!');
100 100
         }
101
-        $useRelativeDate = (bool) $this->flexFormService->get('settings.useRelativeDate', 'main');
101
+        $useRelativeDate = (bool)$this->flexFormService->get('settings.useRelativeDate', 'main');
102 102
         if ($useRelativeDate) {
103 103
             $overrideStartRelative = $this->flexFormService->get('settings.overrideStartRelative', 'main');
104 104
             if ($overrideStartRelative) {
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
                 $this->layoutService->addRow(TranslateUtility::get('override.endrelative'), $overrideEndRelative);
110 110
             }
111 111
         } else {
112
-            $overrideStartDate = (int) $this->flexFormService->get('settings.overrideStartdate', 'main');
112
+            $overrideStartDate = (int)$this->flexFormService->get('settings.overrideStartdate', 'main');
113 113
             if ($overrideStartDate) {
114 114
                 $this->layoutService->addRow(TranslateUtility::get('override.startdate'), \date('d.m.y H:i', $overrideStartDate));
115 115
             }
116
-            $overrideEndDate = (int) $this->flexFormService->get('settings.overrideEnddate', 'main');
116
+            $overrideEndDate = (int)$this->flexFormService->get('settings.overrideEnddate', 'main');
117 117
             if ($overrideEndDate) {
118 118
                 $this->layoutService->addRow(TranslateUtility::get('override.enddate'), \date('d.m.y H:i', $overrideEndDate));
119 119
             }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             'bookingPid',
140 140
         ];
141 141
         foreach ($pageIdsNames as $pageIdName) {
142
-            $pageId = (int) $this->flexFormService->get('settings.' . $pageIdName, 'pages');
142
+            $pageId = (int)$this->flexFormService->get('settings.' . $pageIdName, 'pages');
143 143
             $pageRow = BackendUtility::getRecord('pages', $pageId);
144 144
             if ($pageRow) {
145 145
                 $this->layoutService->addRow(
Please login to merge, or discard this patch.