1 | <?php |
||
16 | class FunctionChecker extends AbstractChecker |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * Source function data. |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $sourceFunctionData = array(); |
||
25 | |||
26 | /** |
||
27 | * Target function data. |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $targetFunctionData = array(); |
||
32 | |||
33 | /** |
||
34 | * FunctionChecker constructor. |
||
35 | */ |
||
36 | public function __construct() |
||
43 | |||
44 | /** |
||
45 | * Returns backwards compatibility checker name. |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getName() |
||
53 | |||
54 | /** |
||
55 | * Collects backwards compatibility violations. |
||
56 | * |
||
57 | * @return void |
||
58 | */ |
||
59 | protected function doCheck() |
||
87 | |||
88 | /** |
||
89 | * Calculates function parameter signature. |
||
90 | * |
||
91 | * @param ExtendedPdoInterface $db Database. |
||
92 | * @param integer $function_id Function ID. |
||
93 | * |
||
94 | * @return integer |
||
95 | */ |
||
96 | protected function getFunctionParameterSignature(ExtendedPdoInterface $db, $function_id) |
||
112 | |||
113 | /** |
||
114 | * Processes function. |
||
115 | * |
||
116 | * @return void |
||
117 | */ |
||
118 | protected function processFunction() |
||
131 | |||
132 | } |
||
133 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.