Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 12 |
Ratio | 100 % |
1 | <?php |
||
24 | View Code Duplication | public function soloUpdateAction() |
|
25 | { |
||
26 | |||
27 | $name = $this->request->getPost('name', 'string'); |
||
28 | //Cr�er la fonction variable 'set' en fonction du name en POST |
||
29 | $func = 'set' . ucfirst($name); |
||
30 | $projet = call_user_func($this->model . '::findFirst', $_POST['pk']); |
||
31 | $projet->$func($_POST['value']); |
||
32 | $projet->save(); |
||
33 | |||
34 | $this->useCaseUpdate($projet); |
||
35 | } |
||
36 | |||
62 |
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.