@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $this->filterParams = $this->getParametersSafely('filterParameter'); |
52 | 52 | |
53 | 53 | // output is done by main action |
54 | - $this->forward('main', null, null, ['filterParameter' => $this->filterParams]); |
|
54 | + $this->forward('main', NULL, NULL, ['filterParameter' => $this->filterParams]); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | // Load current document. |
65 | 65 | $this->loadDocument($this->requestData); |
66 | 66 | if ( |
67 | - $this->document === null |
|
68 | - || $this->document->getDoc() === null |
|
67 | + $this->document === NULL |
|
68 | + || $this->document->getDoc() === NULL |
|
69 | 69 | ) { |
70 | 70 | // Quit without doing anything if required variables are not set. |
71 | 71 | return; |
@@ -127,12 +127,12 @@ discard block |
||
127 | 127 | } |
128 | 128 | // Go through table of contents and create all menu entries. |
129 | 129 | foreach ($this->document->getDoc()->tableOfContents as $entry) { |
130 | - $menuArray[] = $this->getMenuEntry($entry, true); |
|
130 | + $menuArray[] = $this->getMenuEntry($entry, TRUE); |
|
131 | 131 | } |
132 | 132 | } else { |
133 | 133 | // Go through table of contents and create top-level menu entries. |
134 | 134 | foreach ($this->document->getDoc()->tableOfContents as $entry) { |
135 | - $menuArray[] = $this->getMenuEntry($entry, false); |
|
135 | + $menuArray[] = $this->getMenuEntry($entry, FALSE); |
|
136 | 136 | } |
137 | 137 | // Build table of contents from database. |
138 | 138 | $result = $this->documentRepository->getTableOfContentsFromDb($this->document->getUid(), $this->document->getPid(), $this->settings); |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | 'pagination' => '', |
152 | 152 | 'targetUid' => $resArray['uid'] |
153 | 153 | ]; |
154 | - $menuArray[0]['_SUB_MENU'][] = $this->getMenuEntry($entry, false); |
|
154 | + $menuArray[0]['_SUB_MENU'][] = $this->getMenuEntry($entry, FALSE); |
|
155 | 155 | } |
156 | 156 | } |
157 | 157 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | |
175 | 175 | // Go through table of contents and create all menu entries. |
176 | 176 | foreach ($this->document->getDoc()->tableOfContents as $entry) { |
177 | - $menuEntry = $this->getMenuEntryWithImage($entry, true); |
|
177 | + $menuEntry = $this->getMenuEntryWithImage($entry, TRUE); |
|
178 | 178 | if (!empty($menuEntry)) { |
179 | 179 | $menuArray[] = $menuEntry; |
180 | 180 | } |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * |
193 | 193 | * @return array HMENU array for menu entry |
194 | 194 | */ |
195 | - protected function getMenuEntry(array $entry, $recursive = false) |
|
195 | + protected function getMenuEntry(array $entry, $recursive = FALSE) |
|
196 | 196 | { |
197 | 197 | $entry = $this->resolveMenuEntry($entry); |
198 | 198 | |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | } |
251 | 251 | // Build sub-menu if available and called recursively. |
252 | 252 | if ( |
253 | - $recursive === true |
|
253 | + $recursive === TRUE |
|
254 | 254 | && !empty($entry['children']) |
255 | 255 | ) { |
256 | 256 | // Build sub-menu only if one of the following conditions apply: |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | if (in_array($child['id'], $this->activeEntries)) { |
269 | 269 | $entryArray['ITEM_STATE'] = 'ACT'; |
270 | 270 | } |
271 | - $entryArray['_SUB_MENU'][] = $this->getMenuEntry($child, true); |
|
271 | + $entryArray['_SUB_MENU'][] = $this->getMenuEntry($child, TRUE); |
|
272 | 272 | } |
273 | 273 | } |
274 | 274 | // Append "IFSUB" to "ITEM_STATE" if this entry has sub-entries. |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | return $entry; |
305 | 305 | } |
306 | 306 | |
307 | - protected function getMenuEntryWithImage(array $entry, $recursive = false) |
|
307 | + protected function getMenuEntryWithImage(array $entry, $recursive = FALSE) |
|
308 | 308 | { |
309 | 309 | $entryArray = []; |
310 | 310 | |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | $entryArray['doNotLinkIt'] = 1; |
326 | 326 | $entryArray['ITEM_STATE'] = 'HEADER'; |
327 | 327 | |
328 | - if ($entry['children'] === null) { |
|
328 | + if ($entry['children'] === NULL) { |
|
329 | 329 | $entryArray['description'] = $entry['description']; |
330 | 330 | $id = $this->document->getDoc()->smLinks['l2p'][$entry['id']][0]; |
331 | 331 | $entryArray['image'] = $this->document->getDoc()->getFileLocation($this->document->getDoc()->physicalStructureInfo[$id]['files']['THUMBS']); |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | |
339 | 339 | // Build sub-menu if available and called recursively. |
340 | 340 | if ( |
341 | - $recursive == true |
|
341 | + $recursive == TRUE |
|
342 | 342 | && !empty($entry['children']) |
343 | 343 | ) { |
344 | 344 | // Build sub-menu only if one of the following conditions apply: |