Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 1 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function assignParent(CategoryInterface $parent, CategoryInterface $newChild) |
||
38 | { |
||
39 | // $oldParent = $this->categoryTreeRepository->getParent($newChild); |
||
40 | // |
||
41 | // if (!is_null($oldParent)) { |
||
42 | // $oldParent->removeChild($newChild); |
||
43 | // $this->categoryTreeRepository->update($oldParent); |
||
44 | // |
||
45 | // } |
||
46 | // $parent->addChild($newChild); |
||
47 | // $this->categoryTreeRepository->update($parent); |
||
48 | } |
||
49 | } |
||
50 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.