Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | protected function initPhpcr(DocumentManagerInterface $documentManager) |
||
25 | { |
||
26 | $session = $documentManager->getPhpcrSession(); |
||
27 | |||
28 | $rootNode = $session->getRootNode(); |
||
29 | if ($rootNode->hasNode('test')) { |
||
30 | $rootNode->getNode('test')->remove(); |
||
31 | } |
||
32 | |||
33 | $rootNode->addNode('test'); |
||
34 | } |
||
35 | } |
||
36 |
This check marks private properties in classes that are never used. Those properties can be removed.