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