@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function transform($data) |
| 48 | 48 | { |
| 49 | - if (self::MODE_TO_PUBLIC === (self::MODE_TO_PUBLIC & $this->mode)) { |
|
| 49 | + if (self::MODE_TO_PUBLIC === (self::MODE_TO_PUBLIC&$this->mode)) { |
|
| 50 | 50 | return $this->map($data, UrlMapperInterface::MODE_INTERNAL_TO_PUBLIC); |
| 51 | 51 | } else { |
| 52 | 52 | return $data; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function reverseTransform($data) |
| 63 | 63 | { |
| 64 | - if (self::MODE_TO_INTERNAL === (self::MODE_TO_INTERNAL & $this->mode)) { |
|
| 64 | + if (self::MODE_TO_INTERNAL === (self::MODE_TO_INTERNAL&$this->mode)) { |
|
| 65 | 65 | return $this->map($data, UrlMapperInterface::MODE_PUBLIC_TO_INTERNAL); |
| 66 | 66 | } else { |
| 67 | 67 | return $data; |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | * @param string $url |
| 71 | 71 | * @param Constraint $constraint |
| 72 | 72 | */ |
| 73 | - public function addViolation($url, Constraint $constraint) |
|
| 73 | + public function addViolation($url, Constraint $constraint) |
|
| 74 | 74 | { |
| 75 | 75 | $this->context->addViolation($constraint->message, ['%url%' => $url]); |
| 76 | 76 | } |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | $url = $this->refs[$object][$this->getLocale()]; |
| 93 | 93 | |
| 94 | 94 | if (!preg_match('/^(http|https)/', $url) && (null !== ($request = $this->getMasterRequest()))) { |
| 95 | - $url = $request->getBaseUrl() . '/' . ltrim($url, '/'); |
|
| 95 | + $url = $request->getBaseUrl().'/'.ltrim($url, '/'); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | return $url; |