@@ -54,11 +54,10 @@ discard block |
||
| 54 | 54 | public function saveAction() |
| 55 | 55 | { |
| 56 | 56 | $params = $this->Request()->getPost(); |
| 57 | - $id = (int) $this->Request()->get('id'); |
|
| 57 | + $id = (int)$this->Request()->get('id'); |
|
| 58 | 58 | |
| 59 | 59 | $module = $id ? |
| 60 | - $this->container->get('models')->getRepository(Module::class)->find($id) : |
|
| 61 | - new Module(); |
|
| 60 | + $this->container->get('models')->getRepository(Module::class)->find($id) : new Module(); |
|
| 62 | 61 | $module->fromArray($params); |
| 63 | 62 | |
| 64 | 63 | $this->container->get('models')->persist($module); |
@@ -81,7 +80,7 @@ discard block |
||
| 81 | 80 | */ |
| 82 | 81 | public function deleteAction() |
| 83 | 82 | { |
| 84 | - $id = (int) $this->Request()->get('id'); |
|
| 83 | + $id = (int)$this->Request()->get('id'); |
|
| 85 | 84 | |
| 86 | 85 | $property = $this->container->get('models')->getRepository(Module::class)->find($id); |
| 87 | 86 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | public function listAction() |
| 29 | 29 | { |
| 30 | - $id = (int) $this->Request()->getParam('id', null); |
|
| 30 | + $id = (int)$this->Request()->getParam('id', null); |
|
| 31 | 31 | $module = $this->Request()->getParam('moduleName', null); |
| 32 | 32 | |
| 33 | 33 | $data = $this->container->get('models')->getRepository('WbmTagManager\Models\Property')->getChildrenList($id, $module); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | public function updateAction() |
| 65 | 65 | { |
| 66 | 66 | $params = $this->Request()->getPost(); |
| 67 | - $id = (int) $this->Request()->get('id'); |
|
| 67 | + $id = (int)$this->Request()->get('id'); |
|
| 68 | 68 | |
| 69 | 69 | /** @var Property $property */ |
| 70 | 70 | $property = $this->container->get('models')->getRepository('WbmTagManager\Models\Property')->find($id); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function deleteAction() |
| 85 | 85 | { |
| 86 | - $id = (int) $this->Request()->get('id'); |
|
| 86 | + $id = (int)$this->Request()->get('id'); |
|
| 87 | 87 | |
| 88 | 88 | /** @var Property $property */ |
| 89 | 89 | $property = $this->container->get('models')->getRepository('WbmTagManager\Models\Property')->find($id); |