Completed
Push — master ( 5b4c10...526034 )
by Benjamin
04:25
created

InstallFixFolderStructureTask::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the teamneusta/magallanes-task-typo3 package.
4
 *
5
 * Copyright (c) 2017 neusta GmbH | Ein team neusta Unternehmen
6
 *
7
 * For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
8
 *
9
 * @license http://www.opensource.org/licenses/mit-license.html  MIT License
10
 */
11
declare(strict_types=1);
12
13
namespace TeamNeusta\Magallanes\Task\TYPO3\Console;
14
15
/**
16
 * Class InstallFixFolderStructureTask
17
 *
18
 * @author Benjamin Kluge <[email protected]>
19
 * @package TeamNeusta\Magallanes\Task\TYPO3\Console
20
 */
21
class InstallFixFolderStructureTask extends AbstractConsoleTask
22
{
23
    /**
24
     * name
25
     *
26
     * @var string
27
     */
28
    protected $name = 'console-generate-packagestates';
29
30
    /**
31
     * description
32
     *
33
     * @var string
34
     */
35
    protected $description = '[TYPO3] TYPO3 console generate packagestates task';
36
37
    /**
38
     * execute
39
     *
40
     * @return bool
41
     */
42
    public function execute(): bool
43
    {
44
        $options = $this->getOptions([]);
45
        $command = $this->getConsoleCommand('install:fixfolderstructure', $options);
46
47
        return $this->executeCommand($command);
48
    }
49
}
50