Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
16 | public function readAction($id = null) |
||
17 | { |
||
18 | $user = User::findFirst($id); |
||
19 | $usecases = Usecase::find("idDev=$id"); |
||
20 | $projets = array(); |
||
21 | foreach ($usecases as $u) { |
||
22 | $projets[$u->getProjet()->getId()] = $u->getProjet(); |
||
23 | } |
||
24 | $projetsCree = Projet::find("idClient = $id"); |
||
25 | |||
26 | $this->view->setVar("user", $user); |
||
27 | $this->view->setVar("projets", $projets); |
||
28 | $this->view->setVar("projetsCree", $projetsCree); |
||
29 | $this->view->setVar("usecases", $usecases); |
||
30 | } |
||
31 | } |
||
33 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.