1 | <?php |
||
8 | class MetaDataProvider |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var \HDNET\OnpageIntegration\Provider\ConfigurationProvider |
||
13 | */ |
||
14 | protected $configurationProvider; |
||
15 | |||
16 | /** |
||
17 | * @var \HDNET\OnpageIntegration\Service\ArrayService |
||
18 | */ |
||
19 | protected $arrayService; |
||
20 | |||
21 | /** |
||
22 | * @var \HDNET\OnpageIntegration\Service\OnPageService |
||
23 | */ |
||
24 | protected $onPageService; |
||
25 | |||
26 | /** |
||
27 | * MetaDataProvider constructor. |
||
28 | * |
||
29 | * @param ConfigurationProvider $configurationProvider |
||
30 | * @param ArrayService $arrayService |
||
31 | */ |
||
32 | public function __construct( |
||
41 | |||
42 | /** |
||
43 | * @param string $key |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | public function getMetaData($key) |
||
65 | |||
66 | /** |
||
67 | * @param array $array |
||
68 | * @param array $searchKeys |
||
69 | * |
||
70 | * @return array |
||
71 | */ |
||
72 | protected function buildData(array $array, array $searchKeys) |
||
82 | |||
83 | /** |
||
84 | * @param array $array |
||
85 | * @param array $searchKeys |
||
86 | * |
||
87 | * @return array |
||
88 | */ |
||
89 | protected function filter(array $array, array $searchKeys) |
||
101 | } |
||
102 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.