| @@ -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 | } | 
| @@ -283,7 +283,7 @@ | ||
| 283 | 283 | * @param string $string | 
| 284 | 284 | * @param \Shopware_Components_StringCompiler $compiler | 
| 285 | 285 | * | 
| 286 | - * @return mixed | |
| 286 | + * @return string | |
| 287 | 287 | */ | 
| 288 | 288 | private function stripSlashesFromJsonEncodedSmartySyntax( | 
| 289 | 289 | $string, | 
| @@ -36,7 +36,7 @@ discard block | ||
| 36 | 36 | |
| 37 | 37 | public function listAction() | 
| 38 | 38 |      { | 
| 39 | -        $id = (int) $this->Request()->getParam('id', null); | |
| 39 | +        $id = (int)$this->Request()->getParam('id', null); | |
| 40 | 40 |          $module = $this->Request()->getParam('moduleName', null); | 
| 41 | 41 | |
| 42 | 42 |          $data = $this->container->get('models')->getRepository(Property::class)->getChildrenList($id, $module); | 
| @@ -73,7 +73,7 @@ discard block | ||
| 73 | 73 | public function updateAction() | 
| 74 | 74 |      { | 
| 75 | 75 | $params = $this->Request()->getPost(); | 
| 76 | -        $id = (int) $this->Request()->get('id'); | |
| 76 | +        $id = (int)$this->Request()->get('id'); | |
| 77 | 77 | |
| 78 | 78 | /** @var Property $property */ | 
| 79 | 79 |          $property = $this->container->get('models')->getRepository(Property::class)->find($id); | 
| @@ -92,7 +92,7 @@ discard block | ||
| 92 | 92 | */ | 
| 93 | 93 | public function deleteAction() | 
| 94 | 94 |      { | 
| 95 | -        $id = (int) $this->Request()->get('id'); | |
| 95 | +        $id = (int)$this->Request()->get('id'); | |
| 96 | 96 | |
| 97 | 97 | /** @var Property $property */ | 
| 98 | 98 |          $property = $this->container->get('models')->getRepository(Property::class)->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 | |
| 63 | 62 |          if ($module->getId() && $module->getModule() !== $params['module']) { | 
| 64 | 63 |              $this->container->get('dbal_connection')->update( | 
| @@ -92,7 +91,7 @@ discard block | ||
| 92 | 91 | */ | 
| 93 | 92 | public function deleteAction() | 
| 94 | 93 |      { | 
| 95 | -        $id = (int) $this->Request()->get('id'); | |
| 94 | +        $id = (int)$this->Request()->get('id'); | |
| 96 | 95 | |
| 97 | 96 | /** @var Module $module */ | 
| 98 | 97 |          $module = $this->container->get('models')->getRepository(Module::class)->find($id); | 
| @@ -169,7 +169,7 @@ | ||
| 169 | 169 | $modules = []; | 
| 170 | 170 | |
| 171 | 171 |          foreach ($data as $row) { | 
| 172 | - $modules[$row['module']] = isset($row['predispatch']) ? (bool) $row['predispatch'] : false; | |
| 172 | + $modules[$row['module']] = isset($row['predispatch']) ? (bool)$row['predispatch'] : false; | |
| 173 | 173 | } | 
| 174 | 174 | |
| 175 | 175 | return $modules; |