@@ -279,6 +279,9 @@ |
||
279 | 279 | return new Less_Tree_Expression( $mapped ); |
280 | 280 | } |
281 | 281 | |
282 | + /** |
|
283 | + * @param Less_Tree_Expression[] $values |
|
284 | + */ |
|
282 | 285 | public static function toValue($values){ |
283 | 286 | //return new Less_Tree_Value($values); ?? |
284 | 287 |
@@ -6,65 +6,65 @@ discard block |
||
6 | 6 | * @package Less |
7 | 7 | * @subpackage visitor |
8 | 8 | */ |
9 | -class Less_Visitor_toCSS extends Less_VisitorReplacing{ |
|
9 | +class Less_Visitor_toCSS extends Less_VisitorReplacing { |
|
10 | 10 | |
11 | 11 | private $charset; |
12 | 12 | |
13 | - public function __construct(){ |
|
13 | + public function __construct() { |
|
14 | 14 | parent::__construct(); |
15 | 15 | } |
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @param Less_Tree_Ruleset $root |
19 | 19 | */ |
20 | - public function run( $root ){ |
|
20 | + public function run($root) { |
|
21 | 21 | return $this->visitObj($root); |
22 | 22 | } |
23 | 23 | |
24 | - public function visitRule( $ruleNode ){ |
|
25 | - if( $ruleNode->variable ){ |
|
24 | + public function visitRule($ruleNode) { |
|
25 | + if ($ruleNode->variable) { |
|
26 | 26 | return array(); |
27 | 27 | } |
28 | 28 | return $ruleNode; |
29 | 29 | } |
30 | 30 | |
31 | - public function visitMixinDefinition($mixinNode){ |
|
31 | + public function visitMixinDefinition($mixinNode) { |
|
32 | 32 | // mixin definitions do not get eval'd - this means they keep state |
33 | 33 | // so we have to clear that state here so it isn't used if toCSS is called twice |
34 | 34 | $mixinNode->frames = array(); |
35 | 35 | return array(); |
36 | 36 | } |
37 | 37 | |
38 | - public function visitExtend(){ |
|
38 | + public function visitExtend() { |
|
39 | 39 | return array(); |
40 | 40 | } |
41 | 41 | |
42 | - public function visitComment( $commentNode ){ |
|
43 | - if( $commentNode->isSilent() ){ |
|
42 | + public function visitComment($commentNode) { |
|
43 | + if ($commentNode->isSilent()) { |
|
44 | 44 | return array(); |
45 | 45 | } |
46 | 46 | return $commentNode; |
47 | 47 | } |
48 | 48 | |
49 | - public function visitMedia( $mediaNode, &$visitDeeper ){ |
|
49 | + public function visitMedia($mediaNode, &$visitDeeper) { |
|
50 | 50 | $mediaNode->accept($this); |
51 | 51 | $visitDeeper = false; |
52 | 52 | |
53 | - if( !$mediaNode->rules ){ |
|
53 | + if (!$mediaNode->rules) { |
|
54 | 54 | return array(); |
55 | 55 | } |
56 | 56 | return $mediaNode; |
57 | 57 | } |
58 | 58 | |
59 | - public function visitDirective( $directiveNode ){ |
|
60 | - if( isset($directiveNode->currentFileInfo['reference']) && (!property_exists($directiveNode,'isReferenced') || !$directiveNode->isReferenced) ){ |
|
59 | + public function visitDirective($directiveNode) { |
|
60 | + if (isset($directiveNode->currentFileInfo['reference']) && (!property_exists($directiveNode, 'isReferenced') || !$directiveNode->isReferenced)) { |
|
61 | 61 | return array(); |
62 | 62 | } |
63 | - if( $directiveNode->name === '@charset' ){ |
|
63 | + if ($directiveNode->name==='@charset') { |
|
64 | 64 | // Only output the debug info together with subsequent @charset definitions |
65 | 65 | // a comment (or @media statement) before the actual @charset directive would |
66 | 66 | // be considered illegal css as it has to be on the first line |
67 | - if( isset($this->charset) && $this->charset ){ |
|
67 | + if (isset($this->charset) && $this->charset) { |
|
68 | 68 | |
69 | 69 | //if( $directiveNode->debugInfo ){ |
70 | 70 | // $comment = new Less_Tree_Comment('/* ' . str_replace("\n",'',$directiveNode->toCSS())." */\n"); |
@@ -80,14 +80,14 @@ discard block |
||
80 | 80 | return $directiveNode; |
81 | 81 | } |
82 | 82 | |
83 | - public function checkPropertiesInRoot( $rulesetNode ){ |
|
83 | + public function checkPropertiesInRoot($rulesetNode) { |
|
84 | 84 | |
85 | - if( !$rulesetNode->firstRoot ){ |
|
85 | + if (!$rulesetNode->firstRoot) { |
|
86 | 86 | return; |
87 | 87 | } |
88 | 88 | |
89 | - foreach($rulesetNode->rules as $ruleNode){ |
|
90 | - if( $ruleNode instanceof Less_Tree_Rule && !$ruleNode->variable ){ |
|
89 | + foreach ($rulesetNode->rules as $ruleNode) { |
|
90 | + if ($ruleNode instanceof Less_Tree_Rule && !$ruleNode->variable) { |
|
91 | 91 | $msg = "properties must be inside selector blocks, they cannot be in the root. Index ".$ruleNode->index.($ruleNode->currentFileInfo ? (' Filename: '.$ruleNode->currentFileInfo['filename']) : null); |
92 | 92 | throw new Less_Exception_Compiler($msg); |
93 | 93 | } |
@@ -95,14 +95,14 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | |
98 | - public function visitRuleset( $rulesetNode, &$visitDeeper ){ |
|
98 | + public function visitRuleset($rulesetNode, &$visitDeeper) { |
|
99 | 99 | |
100 | 100 | $visitDeeper = false; |
101 | 101 | |
102 | - $this->checkPropertiesInRoot( $rulesetNode ); |
|
102 | + $this->checkPropertiesInRoot($rulesetNode); |
|
103 | 103 | |
104 | - if( $rulesetNode->root ){ |
|
105 | - return $this->visitRulesetRoot( $rulesetNode ); |
|
104 | + if ($rulesetNode->root) { |
|
105 | + return $this->visitRulesetRoot($rulesetNode); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | $rulesets = array(); |
@@ -111,13 +111,13 @@ discard block |
||
111 | 111 | |
112 | 112 | // Compile rules and rulesets |
113 | 113 | $nodeRuleCnt = count($rulesetNode->rules); |
114 | - for( $i = 0; $i < $nodeRuleCnt; ){ |
|
114 | + for ($i = 0; $i<$nodeRuleCnt;) { |
|
115 | 115 | $rule = $rulesetNode->rules[$i]; |
116 | 116 | |
117 | - if( property_exists($rule,'rules') ){ |
|
117 | + if (property_exists($rule, 'rules')) { |
|
118 | 118 | // visit because we are moving them out from being a child |
119 | 119 | $rulesets[] = $this->visitObj($rule); |
120 | - array_splice($rulesetNode->rules,$i,1); |
|
120 | + array_splice($rulesetNode->rules, $i, 1); |
|
121 | 121 | $nodeRuleCnt--; |
122 | 122 | continue; |
123 | 123 | } |
@@ -127,27 +127,27 @@ discard block |
||
127 | 127 | |
128 | 128 | // accept the visitor to remove rules and refactor itself |
129 | 129 | // then we can decide now whether we want it or not |
130 | - if( $nodeRuleCnt > 0 ){ |
|
130 | + if ($nodeRuleCnt>0) { |
|
131 | 131 | $rulesetNode->accept($this); |
132 | 132 | |
133 | - if( $rulesetNode->rules ){ |
|
133 | + if ($rulesetNode->rules) { |
|
134 | 134 | |
135 | - if( count($rulesetNode->rules) > 1 ){ |
|
136 | - $this->_mergeRules( $rulesetNode->rules ); |
|
137 | - $this->_removeDuplicateRules( $rulesetNode->rules ); |
|
135 | + if (count($rulesetNode->rules)>1) { |
|
136 | + $this->_mergeRules($rulesetNode->rules); |
|
137 | + $this->_removeDuplicateRules($rulesetNode->rules); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | // now decide whether we keep the ruleset |
141 | - if( $rulesetNode->paths ){ |
|
141 | + if ($rulesetNode->paths) { |
|
142 | 142 | //array_unshift($rulesets, $rulesetNode); |
143 | - array_splice($rulesets,0,0,array($rulesetNode)); |
|
143 | + array_splice($rulesets, 0, 0, array($rulesetNode)); |
|
144 | 144 | } |
145 | 145 | } |
146 | 146 | |
147 | 147 | } |
148 | 148 | |
149 | 149 | |
150 | - if( count($rulesets) === 1 ){ |
|
150 | + if (count($rulesets)===1) { |
|
151 | 151 | return $rulesets[0]; |
152 | 152 | } |
153 | 153 | return $rulesets; |
@@ -159,9 +159,9 @@ discard block |
||
159 | 159 | * |
160 | 160 | * return array|Less_Tree_Ruleset |
161 | 161 | */ |
162 | - private function visitRulesetRoot( $rulesetNode ){ |
|
163 | - $rulesetNode->accept( $this ); |
|
164 | - if( $rulesetNode->firstRoot || $rulesetNode->rules ){ |
|
162 | + private function visitRulesetRoot($rulesetNode) { |
|
163 | + $rulesetNode->accept($this); |
|
164 | + if ($rulesetNode->firstRoot || $rulesetNode->rules) { |
|
165 | 165 | return $rulesetNode; |
166 | 166 | } |
167 | 167 | return array(); |
@@ -173,16 +173,16 @@ discard block |
||
173 | 173 | * |
174 | 174 | * @return array |
175 | 175 | */ |
176 | - private function visitRulesetPaths($rulesetNode){ |
|
176 | + private function visitRulesetPaths($rulesetNode) { |
|
177 | 177 | |
178 | 178 | $paths = array(); |
179 | - foreach($rulesetNode->paths as $p){ |
|
180 | - if( $p[0]->elements[0]->combinator === ' ' ){ |
|
179 | + foreach ($rulesetNode->paths as $p) { |
|
180 | + if ($p[0]->elements[0]->combinator===' ') { |
|
181 | 181 | $p[0]->elements[0]->combinator = ''; |
182 | 182 | } |
183 | 183 | |
184 | - foreach($p as $pi){ |
|
185 | - if( $pi->getIsReferenced() && $pi->getIsOutput() ){ |
|
184 | + foreach ($p as $pi) { |
|
185 | + if ($pi->getIsReferenced() && $pi->getIsOutput()) { |
|
186 | 186 | $paths[] = $p; |
187 | 187 | break; |
188 | 188 | } |
@@ -192,26 +192,26 @@ discard block |
||
192 | 192 | return $paths; |
193 | 193 | } |
194 | 194 | |
195 | - protected function _removeDuplicateRules( &$rules ){ |
|
195 | + protected function _removeDuplicateRules(&$rules) { |
|
196 | 196 | // remove duplicates |
197 | 197 | $ruleCache = array(); |
198 | - for( $i = count($rules)-1; $i >= 0 ; $i-- ){ |
|
198 | + for ($i = count($rules)-1; $i>=0; $i--) { |
|
199 | 199 | $rule = $rules[$i]; |
200 | - if( $rule instanceof Less_Tree_Rule || $rule instanceof Less_Tree_NameValue ){ |
|
200 | + if ($rule instanceof Less_Tree_Rule || $rule instanceof Less_Tree_NameValue) { |
|
201 | 201 | |
202 | - if( !isset($ruleCache[$rule->name]) ){ |
|
202 | + if (!isset($ruleCache[$rule->name])) { |
|
203 | 203 | $ruleCache[$rule->name] = $rule; |
204 | - }else{ |
|
205 | - $ruleList =& $ruleCache[$rule->name]; |
|
204 | + }else { |
|
205 | + $ruleList = & $ruleCache[$rule->name]; |
|
206 | 206 | |
207 | - if( $ruleList instanceof Less_Tree_Rule || $ruleList instanceof Less_Tree_NameValue ){ |
|
208 | - $ruleList = $ruleCache[$rule->name] = array( $ruleCache[$rule->name]->toCSS() ); |
|
207 | + if ($ruleList instanceof Less_Tree_Rule || $ruleList instanceof Less_Tree_NameValue) { |
|
208 | + $ruleList = $ruleCache[$rule->name] = array($ruleCache[$rule->name]->toCSS()); |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | $ruleCSS = $rule->toCSS(); |
212 | - if( array_search($ruleCSS,$ruleList) !== false ){ |
|
213 | - array_splice($rules,$i,1); |
|
214 | - }else{ |
|
212 | + if (array_search($ruleCSS, $ruleList)!==false) { |
|
213 | + array_splice($rules, $i, 1); |
|
214 | + }else { |
|
215 | 215 | $ruleList[] = $ruleCSS; |
216 | 216 | } |
217 | 217 | } |
@@ -219,25 +219,25 @@ discard block |
||
219 | 219 | } |
220 | 220 | } |
221 | 221 | |
222 | - protected function _mergeRules( &$rules ){ |
|
222 | + protected function _mergeRules(&$rules) { |
|
223 | 223 | $groups = array(); |
224 | 224 | |
225 | 225 | //obj($rules); |
226 | 226 | |
227 | 227 | $rules_len = count($rules); |
228 | - for( $i = 0; $i < $rules_len; $i++ ){ |
|
228 | + for ($i = 0; $i<$rules_len; $i++) { |
|
229 | 229 | $rule = $rules[$i]; |
230 | 230 | |
231 | - if( ($rule instanceof Less_Tree_Rule) && $rule->merge ){ |
|
231 | + if (($rule instanceof Less_Tree_Rule) && $rule->merge) { |
|
232 | 232 | |
233 | 233 | $key = $rule->name; |
234 | - if( $rule->important ){ |
|
234 | + if ($rule->important) { |
|
235 | 235 | $key .= ',!'; |
236 | 236 | } |
237 | 237 | |
238 | - if( !isset($groups[$key]) ){ |
|
238 | + if (!isset($groups[$key])) { |
|
239 | 239 | $groups[$key] = array(); |
240 | - }else{ |
|
240 | + }else { |
|
241 | 241 | array_splice($rules, $i--, 1); |
242 | 242 | $rules_len--; |
243 | 243 | } |
@@ -247,16 +247,16 @@ discard block |
||
247 | 247 | } |
248 | 248 | |
249 | 249 | |
250 | - foreach($groups as $parts){ |
|
250 | + foreach ($groups as $parts) { |
|
251 | 251 | |
252 | - if( count($parts) > 1 ){ |
|
252 | + if (count($parts)>1) { |
|
253 | 253 | $rule = $parts[0]; |
254 | 254 | $spacedGroups = array(); |
255 | 255 | $lastSpacedGroup = array(); |
256 | 256 | $parts_mapped = array(); |
257 | - foreach($parts as $p){ |
|
258 | - if( $p->merge === '+' ){ |
|
259 | - if( $lastSpacedGroup ){ |
|
257 | + foreach ($parts as $p) { |
|
258 | + if ($p->merge==='+') { |
|
259 | + if ($lastSpacedGroup) { |
|
260 | 260 | $spacedGroups[] = self::toExpression($lastSpacedGroup); |
261 | 261 | } |
262 | 262 | $lastSpacedGroup = array(); |
@@ -271,19 +271,19 @@ discard block |
||
271 | 271 | |
272 | 272 | } |
273 | 273 | |
274 | - public static function toExpression($values){ |
|
274 | + public static function toExpression($values) { |
|
275 | 275 | $mapped = array(); |
276 | - foreach($values as $p){ |
|
276 | + foreach ($values as $p) { |
|
277 | 277 | $mapped[] = $p->value; |
278 | 278 | } |
279 | - return new Less_Tree_Expression( $mapped ); |
|
279 | + return new Less_Tree_Expression($mapped); |
|
280 | 280 | } |
281 | 281 | |
282 | - public static function toValue($values){ |
|
282 | + public static function toValue($values) { |
|
283 | 283 | //return new Less_Tree_Value($values); ?? |
284 | 284 | |
285 | 285 | $mapped = array(); |
286 | - foreach($values as $p){ |
|
286 | + foreach ($values as $p) { |
|
287 | 287 | $mapped[] = $p; |
288 | 288 | } |
289 | 289 | return new Less_Tree_Value($mapped); |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | |
202 | 202 | if( !isset($ruleCache[$rule->name]) ){ |
203 | 203 | $ruleCache[$rule->name] = $rule; |
204 | - }else{ |
|
204 | + } else{ |
|
205 | 205 | $ruleList =& $ruleCache[$rule->name]; |
206 | 206 | |
207 | 207 | if( $ruleList instanceof Less_Tree_Rule || $ruleList instanceof Less_Tree_NameValue ){ |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | $ruleCSS = $rule->toCSS(); |
212 | 212 | if( array_search($ruleCSS,$ruleList) !== false ){ |
213 | 213 | array_splice($rules,$i,1); |
214 | - }else{ |
|
214 | + } else{ |
|
215 | 215 | $ruleList[] = $ruleCSS; |
216 | 216 | } |
217 | 217 | } |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | |
238 | 238 | if( !isset($groups[$key]) ){ |
239 | 239 | $groups[$key] = array(); |
240 | - }else{ |
|
240 | + } else{ |
|
241 | 241 | array_splice($rules, $i--, 1); |
242 | 242 | $rules_len--; |
243 | 243 | } |
@@ -32,9 +32,9 @@ |
||
32 | 32 | */ |
33 | 33 | class AdministrationController extends ActionController{ |
34 | 34 | |
35 | - /** |
|
36 | - * initial action, called on a clean request without specified target |
|
37 | - */ |
|
38 | - public function dashboardAction() { |
|
39 | - } |
|
35 | + /** |
|
36 | + * initial action, called on a clean request without specified target |
|
37 | + */ |
|
38 | + public function dashboardAction() { |
|
39 | + } |
|
40 | 40 | } |
41 | 41 | \ No newline at end of file |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * The main Controller, managing all the tasks for moox core dashboard management |
32 | 32 | */ |
33 | -class AdministrationController extends ActionController{ |
|
33 | +class AdministrationController extends ActionController { |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * initial action, called on a clean request without specified target |
@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | */ |
39 | 39 | class ContentController extends AbstractContentController { |
40 | 40 | |
41 | - /** |
|
42 | - * @return void |
|
43 | - */ |
|
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
44 | 44 | protected function initializeOverriddenSettings() { |
45 | 45 | $record = $this->getRecord(); |
46 | 46 | $useTypoScriptOptionFromForm = $this->provider->getForm($record)->getOption('useTypoScript'); |
@@ -113,9 +113,9 @@ discard block |
||
113 | 113 | |
114 | 114 | } |
115 | 115 | |
116 | - /** |
|
117 | - * @return string |
|
118 | - */ |
|
116 | + /** |
|
117 | + * @return string |
|
118 | + */ |
|
119 | 119 | public function progressBarAction() { |
120 | 120 | |
121 | 121 | } |
@@ -162,18 +162,18 @@ discard block |
||
162 | 162 | |
163 | 163 | } |
164 | 164 | |
165 | - /** |
|
166 | - * @return string |
|
167 | - */ |
|
165 | + /** |
|
166 | + * @return string |
|
167 | + */ |
|
168 | 168 | public function fourColumnAction() { |
169 | 169 | |
170 | 170 | } |
171 | 171 | |
172 | - /** |
|
173 | - * @return string |
|
174 | - */ |
|
175 | - public function imageGalleryAction() { |
|
172 | + /** |
|
173 | + * @return string |
|
174 | + */ |
|
175 | + public function imageGalleryAction() { |
|
176 | 176 | |
177 | - } |
|
177 | + } |
|
178 | 178 | |
179 | 179 | } |
180 | 180 | \ No newline at end of file |
@@ -44,7 +44,7 @@ |
||
44 | 44 | protected function initializeOverriddenSettings() { |
45 | 45 | $record = $this->getRecord(); |
46 | 46 | $useTypoScriptOptionFromForm = $this->provider->getForm($record)->getOption('useTypoScript'); |
47 | - if (NULL !== $useTypoScriptOptionFromForm) { |
|
47 | + if (NULL!==$useTypoScriptOptionFromForm) { |
|
48 | 48 | $this->settings['useTypoScript'] = (boolean)$useTypoScriptOptionFromForm; |
49 | 49 | } |
50 | 50 | parent::initializeOverriddenSettings(); |
@@ -62,9 +62,9 @@ discard block |
||
62 | 62 | $generalSettings = $this->configurationService->convertFlexFormContentToArray($row['pi_flexform'], $form); |
63 | 63 | $contentSettings = $this->configurationService->convertFlexFormContentToArray($row['content_options'], $form); |
64 | 64 | $this->settings = RecursiveArrayUtility::merge($this->settings, $generalSettings, FALSE, FALSE); |
65 | - if (FALSE === isset($this->settings['content'])) { |
|
65 | + if (FALSE===isset($this->settings['content'])) { |
|
66 | 66 | $this->settings['content'] = $contentSettings; |
67 | - } else { |
|
67 | + }else { |
|
68 | 68 | $this->settings['content'] = RecursiveArrayUtility::merge($this->settings['content'], $contentSettings); |
69 | 69 | } |
70 | 70 | parent::initializeViewVariables(); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $bindings = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows( |
146 | 146 | 'uid_foreign', |
147 | 147 | 'sys_category_record_mm', |
148 | - "fieldname = 'categories' AND tablenames = 'pages' AND uid_local IN (" . $selected . ')', |
|
148 | + "fieldname = 'categories' AND tablenames = 'pages' AND uid_local IN (".$selected.')', |
|
149 | 149 | 'uid_foreign', |
150 | 150 | 'sorting ASC' |
151 | 151 | ); |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | $bindings = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows( |
158 | 158 | 'uid_foreign', |
159 | 159 | 'sys_category_record_mm', |
160 | - "fieldname = 'categories' AND tablenames = 'tt_content' AND uid_local IN (" . $selected . ')', |
|
160 | + "fieldname = 'categories' AND tablenames = 'tt_content' AND uid_local IN (".$selected.')', |
|
161 | 161 | 'uid_foreign', |
162 | 162 | 'sorting ASC' |
163 | 163 | ); |
@@ -166,8 +166,8 @@ discard block |
||
166 | 166 | break; |
167 | 167 | case CoreContentProvider::MENU_RELATEDPAGES: |
168 | 168 | $whereKeywords = $this->getWhereQueryForKeywords($record); |
169 | - $selectedUids = TRUE === empty($record['pages']) ? $record['uid'] : $record['pages']; |
|
170 | - $where = $whereKeywords . ' AND uid NOT IN (' . $selectedUids . ')'; |
|
169 | + $selectedUids = TRUE===empty($record['pages']) ? $record['uid'] : $record['pages']; |
|
170 | + $where = $whereKeywords.' AND uid NOT IN ('.$selectedUids.')'; |
|
171 | 171 | $bindings = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows( |
172 | 172 | 'uid', |
173 | 173 | 'pages', |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | public function shortcutAction() { |
189 | 189 | $record = $this->getRecord(); |
190 | 190 | $contentUids = array_map(function($index) { |
191 | - if (0 !== strpos($index, 'tt_content_') && FALSE === MathUtility::canBeInterpretedAsInteger($index)) { |
|
191 | + if (0!==strpos($index, 'tt_content_') && FALSE===MathUtility::canBeInterpretedAsInteger($index)) { |
|
192 | 192 | return FALSE; |
193 | 193 | } |
194 | 194 | return str_replace('tt_content_', '', $index); |
@@ -217,13 +217,13 @@ discard block |
||
217 | 217 | */ |
218 | 218 | protected function getWhereQueryForKeywords($record) { |
219 | 219 | $selectedUids = $record['pages']; |
220 | - if (TRUE == empty($selectedUids)) { |
|
220 | + if (TRUE==empty($selectedUids)) { |
|
221 | 221 | $selectedUids = $record['pid']; |
222 | 222 | } |
223 | 223 | $keywordsRows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows( |
224 | 224 | 'keywords', |
225 | 225 | 'pages', |
226 | - 'uid IN (' . $selectedUids . ')', |
|
226 | + 'uid IN ('.$selectedUids.')', |
|
227 | 227 | '', |
228 | 228 | 'sorting ASC' |
229 | 229 | ); |
@@ -234,10 +234,10 @@ discard block |
||
234 | 234 | foreach ($keywordsArray as $word) { |
235 | 235 | $word = trim($word); |
236 | 236 | if ($word) { |
237 | - $keyWordsWhereArr[] = 'keywords LIKE \'%' . $GLOBALS['TYPO3_DB']->quoteStr($word, 'pages') . '%\''; |
|
237 | + $keyWordsWhereArr[] = 'keywords LIKE \'%'.$GLOBALS['TYPO3_DB']->quoteStr($word, 'pages').'%\''; |
|
238 | 238 | } |
239 | 239 | } |
240 | - $where = empty($keyWordsWhereArr) ? '' : '(' . implode(' OR ', $keyWordsWhereArr) . ')'; |
|
240 | + $where = empty($keyWordsWhereArr) ? '' : '('.implode(' OR ', $keyWordsWhereArr).')'; |
|
241 | 241 | return $where; |
242 | 242 | } |
243 | 243 |
@@ -6,13 +6,13 @@ |
||
6 | 6 | */ |
7 | 7 | class PreHeaderRender { |
8 | 8 | |
9 | - /** |
|
10 | - * @param array $params |
|
11 | - * @param \TYPO3\CMS\Backend\Template\DocumentTemplate $documentTemplate |
|
12 | - */ |
|
13 | - public function addStyles(&$params, &$documentTemplate){ |
|
14 | - $backendCssFile = '/typo3conf/ext/moox_core/Resources/Public/Stylesheets/backend.css'; |
|
15 | - $params['pageRenderer']->addCssFile($backendCssFile,'stylesheet'); |
|
16 | - } |
|
9 | + /** |
|
10 | + * @param array $params |
|
11 | + * @param \TYPO3\CMS\Backend\Template\DocumentTemplate $documentTemplate |
|
12 | + */ |
|
13 | + public function addStyles(&$params, &$documentTemplate){ |
|
14 | + $backendCssFile = '/typo3conf/ext/moox_core/Resources/Public/Stylesheets/backend.css'; |
|
15 | + $params['pageRenderer']->addCssFile($backendCssFile,'stylesheet'); |
|
16 | + } |
|
17 | 17 | |
18 | 18 | } |
@@ -10,9 +10,9 @@ |
||
10 | 10 | * @param array $params |
11 | 11 | * @param \TYPO3\CMS\Backend\Template\DocumentTemplate $documentTemplate |
12 | 12 | */ |
13 | - public function addStyles(&$params, &$documentTemplate){ |
|
13 | + public function addStyles(&$params, &$documentTemplate) { |
|
14 | 14 | $backendCssFile = '/typo3conf/ext/moox_core/Resources/Public/Stylesheets/backend.css'; |
15 | - $params['pageRenderer']->addCssFile($backendCssFile,'stylesheet'); |
|
15 | + $params['pageRenderer']->addCssFile($backendCssFile, 'stylesheet'); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | } |
@@ -6,13 +6,13 @@ |
||
6 | 6 | */ |
7 | 7 | class RenderPreProcess { |
8 | 8 | |
9 | - /** |
|
10 | - * @param array $params |
|
11 | - * @param \TYPO3\CMS\Backend\Controller\BackendController $backendController |
|
12 | - */ |
|
13 | - public function addStyles(&$params, &$backendController){ |
|
14 | - $backendCssFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('moox_core') . 'Resources/Public/Stylesheets/backend.css'; |
|
15 | - $backendController->addCssFile('moox_core',$backendCssFile); |
|
16 | - } |
|
9 | + /** |
|
10 | + * @param array $params |
|
11 | + * @param \TYPO3\CMS\Backend\Controller\BackendController $backendController |
|
12 | + */ |
|
13 | + public function addStyles(&$params, &$backendController){ |
|
14 | + $backendCssFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('moox_core') . 'Resources/Public/Stylesheets/backend.css'; |
|
15 | + $backendController->addCssFile('moox_core',$backendCssFile); |
|
16 | + } |
|
17 | 17 | |
18 | 18 | } |
19 | 19 | \ No newline at end of file |
@@ -10,9 +10,9 @@ |
||
10 | 10 | * @param array $params |
11 | 11 | * @param \TYPO3\CMS\Backend\Controller\BackendController $backendController |
12 | 12 | */ |
13 | - public function addStyles(&$params, &$backendController){ |
|
14 | - $backendCssFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('moox_core') . 'Resources/Public/Stylesheets/backend.css'; |
|
15 | - $backendController->addCssFile('moox_core',$backendCssFile); |
|
13 | + public function addStyles(&$params, &$backendController) { |
|
14 | + $backendCssFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('moox_core').'Resources/Public/Stylesheets/backend.css'; |
|
15 | + $backendController->addCssFile('moox_core', $backendCssFile); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | } |
19 | 19 | \ No newline at end of file |
@@ -7,11 +7,11 @@ |
||
7 | 7 | * InstallSignalSlot |
8 | 8 | */ |
9 | 9 | class InstallSignalSlot implements SingletonInterface { |
10 | - /** |
|
11 | - * Install AddionalConfiguration |
|
12 | - */ |
|
13 | - public function installAddionalConfiguration() { |
|
14 | - $updateService = new UpdateService(); |
|
15 | - $updateService->main(); |
|
16 | - } |
|
10 | + /** |
|
11 | + * Install AddionalConfiguration |
|
12 | + */ |
|
13 | + public function installAddionalConfiguration() { |
|
14 | + $updateService = new UpdateService(); |
|
15 | + $updateService->main(); |
|
16 | + } |
|
17 | 17 | } |
18 | 18 | \ No newline at end of file |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function execute(&$params, &$pagerenderer) { |
42 | 42 | |
43 | - if (TYPO3_MODE !== 'FE' || !is_array($params['cssFiles'])) { |
|
43 | + if (TYPO3_MODE!=='FE' || !is_array($params['cssFiles'])) { |
|
44 | 44 | return; |
45 | 45 | } |
46 | 46 | $files = array(); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | if ($compiledFile) { |
50 | 50 | $settings['file'] = $compiledFile; |
51 | 51 | $files[$compiledFile] = $settings; |
52 | - } else { |
|
52 | + }else { |
|
53 | 53 | $files[$file] = $settings; |
54 | 54 | } |
55 | 55 | } |
@@ -7,12 +7,12 @@ |
||
7 | 7 | * WizardItems Hook Subscriber |
8 | 8 | */ |
9 | 9 | class WizardItemsHookSubscriber extends \FluidTYPO3\Fluidcontent\Hooks\WizardItemsHookSubscriber implements NewContentElementWizardHookInterface { |
10 | - /** |
|
11 | - * @param array $items |
|
12 | - * @param NewContentElementController $parentObject |
|
13 | - * @return void |
|
14 | - */ |
|
15 | - public function manipulateWizardItems(&$items, &$parentObject) { |
|
16 | - parent::manipulateWizardItems($items, $parentObject); |
|
17 | - } |
|
10 | + /** |
|
11 | + * @param array $items |
|
12 | + * @param NewContentElementController $parentObject |
|
13 | + * @return void |
|
14 | + */ |
|
15 | + public function manipulateWizardItems(&$items, &$parentObject) { |
|
16 | + parent::manipulateWizardItems($items, $parentObject); |
|
17 | + } |
|
18 | 18 | } |
19 | 19 | \ No newline at end of file |