Passed
Push — master ( 918c09...6b84e6 )
by Timo
04:16
created

CommandResolver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A registerPluginCommand() 0 4 1
1
<?php
2
namespace ApacheSolrForTypo3\Solr;
3
/***************************************************************
4
 *  Copyright notice
5
 *
6
 *  (c) 2009-2015 Ingo Renner <[email protected]>
7
 *  All rights reserved
8
 *
9
 *  This script is part of the TYPO3 project. The TYPO3 project is
10
 *  free software; you can redistribute it and/or modify
11
 *  it under the terms of the GNU General Public License as published by
12
 *  the Free Software Foundation; either version 2 of the License, or
13
 *  (at your option) any later version.
14
 *
15
 *  The GNU General Public License can be found at
16
 *  http://www.gnu.org/copyleft/gpl.html.
17
 *
18
 *  This script is distributed in the hope that it will be useful,
19
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 *  GNU General Public License for more details.
22
 *
23
 *  This copyright notice MUST APPEAR in all copies of the script!
24
 ***************************************************************/
25
26
use TYPO3\CMS\Core\Utility\GeneralUtility;
27
28
/**
29
 * command resolver
30
 *
31
 * @deprecated Not supported with fluid templating, will be removed in 8.0
32
 * @author Ingo Renner <[email protected]>
33
 */
34
class CommandResolver {
35
36
    /**
37
     * This method is deprecated an only the signature is kept, to avoid error during the update from 6.1.0 to 7.0.0
38
     *
39
     * @deprecated Not supported with fluid templating, will be removed in 8.0
40
     * @param string $plugins comma separated list of plugin names (without pi_ prefix)
41
     * @param string $commandName command name
42
     * @param string $commandClass name of the class implementing the command
43
     * @param int $requirements Bitmask of which requirements need to be met for a command to be executed
44
     */
45
    public static function registerPluginCommand($plugins, $commandName, $commandClass, $requirements = 2)
0 ignored issues
show
Unused Code introduced by
The parameter $plugins is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $commandName is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $commandClass is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $requirements is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
46
    {
47
        GeneralUtility::logDeprecatedFunction();
48
    }
49
}