@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | protected function configureRoutes(RouteCollection $collection) |
27 | 27 | { |
28 | - $collection->add('move', $this->getRouterIdParameter().'/move/{position}'); |
|
28 | + $collection->add('move', $this->getRouterIdParameter() . '/move/{position}'); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | public function getPersistentParameters() |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | { |
44 | 44 | $id = $this->getRequest()->query->getInt('menu'); |
45 | 45 | $query = parent::createQuery($context); |
46 | - $query->join($query->getRootAlias().'.menu', 'm') |
|
46 | + $query->join($query->getRootAlias() . '.menu', 'm') |
|
47 | 47 | ->where('m.id = :id') |
48 | 48 | ->setParameters([ |
49 | 49 | 'id' => $id, |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | protected function configureFormFields(FormMapper $formMapper) |
56 | 56 | { |
57 | 57 | $id = $this->getRequest()->query->getInt('menu'); |
58 | - $isNew = ($this->id($this->getSubject()) === null) ? false : true; |
|
58 | + $isNew = ($this->id($this->getSubject()) === null) ? false : true; |
|
59 | 59 | |
60 | 60 | if ($isNew === false) { |
61 | 61 | $formMapper |
@@ -20,12 +20,12 @@ |
||
20 | 20 | $match = false; |
21 | 21 | if (strpos($value, '/') === 0) { |
22 | 22 | $context = $this->router->getContext(); |
23 | - $baseUrl = $context->getScheme().'://'.$context->getHost().$context->getBaseUrl(); |
|
24 | - $value = $baseUrl.$value; |
|
23 | + $baseUrl = $context->getScheme() . '://' . $context->getHost() . $context->getBaseUrl(); |
|
24 | + $value = $baseUrl . $value; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | $handle = curl_init($value); |
28 | - curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE); |
|
28 | + curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE); |
|
29 | 29 | curl_exec($handle); |
30 | 30 | $httpCode = curl_getinfo($handle, CURLINFO_HTTP_CODE); |
31 | 31 |