@@ -171,7 +171,7 @@ |
||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
| 174 | - * @param $string |
|
| 174 | + * @param string $string |
|
| 175 | 175 | * |
| 176 | 176 | * @return string |
| 177 | 177 | */ |
@@ -195,7 +195,7 @@ |
||
| 195 | 195 | return $compiler->compileString($string); |
| 196 | 196 | } catch (\Exception $exception) { |
| 197 | 197 | return json_encode([ |
| 198 | - 'error' => sprintf('Error while compiling the dataLayer: %s', $exception->getMessage()), |
|
| 198 | + 'error' => sprintf('Error while compiling the dataLayer: %s', $exception->getMessage()), |
|
| 199 | 199 | ]); |
| 200 | 200 | } |
| 201 | 201 | } |
@@ -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); |
@@ -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 | /** @var Module $module */ |
| 87 | 86 | $module = $this->container->get('models')->getRepository(Module::class)->find($id); |