Code Duplication    Length = 10-16 lines in 5 locations

typo3/sysext/recordlist/Classes/RecordList.php 1 location

@@ 585-595 (lines=11) @@
582
     * @param ResponseInterface $response
583
     * @return ResponseInterface the response with the content
584
     */
585
    public function mainAction(ServerRequestInterface $request, ResponseInterface $response)
586
    {
587
        BackendUtility::lockRecords();
588
        $GLOBALS['SOBE'] = $this;
589
        $this->init();
590
        $this->clearCache();
591
        $this->main();
592
        $this->moduleTemplate->setContent($this->content);
593
        $response->getBody()->write($this->moduleTemplate->renderContent());
594
        return $response;
595
    }
596
597
    /**
598
     * Make selector box for creating new translation in a language

typo3/sysext/impexp/Classes/Controller/ImportExportController.php 1 location

@@ 298-307 (lines=10) @@
295
     * @param ResponseInterface $response
296
     * @return ResponseInterface the response with the content
297
     */
298
    public function mainAction(ServerRequestInterface $request, ResponseInterface $response)
299
    {
300
        $GLOBALS['SOBE'] = $this;
301
        $this->init();
302
        $this->main();
303
        $this->moduleTemplate->setContent($this->standaloneView->render());
304
        $response->getBody()->write($this->moduleTemplate->renderContent());
305
306
        return $response;
307
    }
308
309
    /**
310
     * Create the panel of buttons for submitting the form or otherwise perform operations.

typo3/sysext/info/Classes/Controller/InfoModuleController.php 1 location

@@ 138-153 (lines=16) @@
135
     * @param ResponseInterface $response
136
     * @return ResponseInterface the response with the content
137
     */
138
    public function mainAction(ServerRequestInterface $request, ResponseInterface $response)
139
    {
140
        $GLOBALS['SOBE'] = $this;
141
        $this->init();
142
143
        // Checking for first level external objects
144
        $this->checkExtObj();
145
146
        // Checking second level external objects
147
        $this->checkSubExtObj();
148
        $this->main();
149
150
        $this->moduleTemplate->setContent($this->content);
151
        $response->getBody()->write($this->moduleTemplate->renderContent());
152
        return $response;
153
    }
154
155
    /**
156
     * Create the panel of buttons for submitting the form or otherwise perform operations.

typo3/sysext/setup/Classes/Controller/SetupModuleController.php 1 location

@@ 432-442 (lines=11) @@
429
     * @param ResponseInterface $response
430
     * @return ResponseInterface the response with the content
431
     */
432
    public function mainAction(ServerRequestInterface $request, ResponseInterface $response)
433
    {
434
        $GLOBALS['SOBE'] = $this;
435
        $this->simulateUser();
436
        $this->init();
437
        $this->storeIncomingData();
438
        $this->main();
439
440
        $response->getBody()->write($this->moduleTemplate->renderContent());
441
        return $response;
442
    }
443
444
    /**
445
     * Create the panel of buttons for submitting the form or otherwise perform operations.

typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php 1 location

@@ 280-294 (lines=15) @@
277
     * @param ResponseInterface $response
278
     * @return ResponseInterface the response with the content
279
     */
280
    public function mainAction(ServerRequestInterface $request, ResponseInterface $response)
281
    {
282
        $GLOBALS['SOBE'] = $this;
283
        $this->init();
284
285
        // Checking for first level external objects
286
        $this->checkExtObj();
287
288
        $this->clearCache();
289
        $this->main();
290
291
        $this->moduleTemplate->setContent($this->content);
292
        $response->getBody()->write($this->moduleTemplate->renderContent());
293
        return $response;
294
    }
295
296
    /**
297
     * Create the panel of buttons for submitting the form or otherwise perform operations.