Passed
Pull Request — master (#123)
by Sebastian
03:39
created
Classes/Controller/TableOfContentsController.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
  * @subpackage dlf
25 25
  * @access public
26 26
  */
27
-class TableOfContentsController extends AbstractController
28
-{
27
+class TableOfContentsController extends AbstractController {
29 28
     /**
30 29
      * This holds the active entries according to the currently selected page
31 30
      *
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
      *
40 39
      * @return void
41 40
      */
42
-    public function mainAction()
43
-    {
41
+    public function mainAction() {
44 42
         // Load current document.
45 43
         $this->loadDocument($this->requestData);
46 44
         if (
@@ -66,8 +64,7 @@  discard block
 block discarded – undo
66 64
      * @access protected
67 65
      * @return array HMENU array
68 66
      */
69
-    protected function makeMenuArray()
70
-    {
67
+    protected function makeMenuArray() {
71 68
         // Set default values for page if not set.
72 69
         // $this->requestData['page'] may be integer or string (physical structure @ID)
73 70
         if (
@@ -143,8 +140,7 @@  discard block
 block discarded – undo
143 140
      *
144 141
      * @return array HMENU array for menu entry
145 142
      */
146
-    protected function getMenuEntry(array $entry, $recursive = false)
147
-    {
143
+    protected function getMenuEntry(array $entry, $recursive = false) {
148 144
         $entry = $this->resolveMenuEntry($entry);
149 145
 
150 146
         $entryArray = [];
@@ -238,8 +234,7 @@  discard block
 block discarded – undo
238 234
      * @param array $entry
239 235
      * @return array
240 236
      */
241
-    protected function resolveMenuEntry($entry)
242
-    {
237
+    protected function resolveMenuEntry($entry) {
243 238
         // If the menu entry points to the parent document,
244 239
         // resolve to the parent UID set on indexation.
245 240
         $doc = $this->document->getDoc();
Please login to merge, or discard this patch.