| 1 | <?php |
||
| 14 | class Greedy extends BasePartitionAlgorithm implements PartitionAlgorithmInterface { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The greedy algorithm needs the input data to be sorted (desc). |
||
| 18 | * |
||
| 19 | * @return array |
||
| 20 | */ |
||
| 21 | public function getFormattedData() { |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param \drupol\phpartition\Subset $subset |
||
| 33 | * |
||
| 34 | * @return int|mixed |
||
| 35 | */ |
||
| 36 | public function getSubsetWeight(Subset $subset) { |
||
| 45 | |||
| 46 | } |
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.