Completed
Push — Projets ( 28ff11...ea7aa3 )
by Hugo
02:59
created
app/controllers/ControllerBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /////////////////////////////////////////
69 69
     public function updateAction()
70 70
     {
71
-        $id = $this->request->getPost('id','int');
71
+        $id = $this->request->getPost('id', 'int');
72 72
         if ($this->request->isPost()) {
73 73
             $object = $this->getInstance(@$_POST["id"]);
74 74
             $this->setValuesToObject($object);
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     //PErmet l'édition d'un seul champ à la fois
95 95
     public function soloUpdateAction()
96 96
     {
97
-        $name = $this->request->getPost('name','string');
97
+        $name = $this->request->getPost('name', 'string');
98 98
         //Créer la fonction variable 'set' en fonction du name en POST
99 99
         $func = 'set' . ucfirst($name);
100 100
         $projet = call_user_func($this->model . '::findFirst', $_POST['pk']);
Please login to merge, or discard this patch.