| @@ -22,10 +22,10 @@ | ||
| 22 | 22 | $treeBuilder = new TreeBuilder(); | 
| 23 | 23 |          $rootNode = $treeBuilder->root('zicht_url'); | 
| 24 | 24 | |
| 25 | -        $isBool = function ($v) { | |
| 25 | +        $isBool = function($v) { | |
| 26 | 26 | return is_bool($v); | 
| 27 | 27 | }; | 
| 28 | -        $convertToEnabledKey = function ($v) { | |
| 28 | +        $convertToEnabledKey = function($v) { | |
| 29 | 29 |              return array('enabled' => $v); | 
| 30 | 30 | }; | 
| 31 | 31 | |
| @@ -27,7 +27,7 @@ discard block | ||
| 27 | 27 | */ | 
| 28 | 28 | public function load(array $configs, ContainerBuilder $container) | 
| 29 | 29 |      { | 
| 30 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); | |
| 30 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); | |
| 31 | 31 |          $loader->load('services.xml'); | 
| 32 | 32 | |
| 33 | 33 | $config = $this->processConfiguration(new Configuration(), $configs); | 
| @@ -71,7 +71,7 @@ discard block | ||
| 71 | 71 | } | 
| 72 | 72 | |
| 73 | 73 |          $formResources = $container->getParameter('twig.form.resources'); | 
| 74 | - $formResources[]= 'ZichtUrlBundle::form_theme.html.twig'; | |
| 74 | + $formResources[] = 'ZichtUrlBundle::form_theme.html.twig'; | |
| 75 | 75 |          $container->setParameter('twig.form.resources', $formResources); | 
| 76 | 76 | } | 
| 77 | 77 | |
| @@ -95,7 +95,7 @@ | ||
| 95 | 95 | public function __toString() | 
| 96 | 96 |      { | 
| 97 | 97 | return (string)$this->message | 
| 98 | -            . ' @ ' . (string)($this->date_created ? $this->date_created->format('YmdHis') : ''); | |
| 98 | +            . ' @ '.(string)($this->date_created ? $this->date_created->format('YmdHis') : ''); | |
| 99 | 99 | } | 
| 100 | 100 | |
| 101 | 101 | /** | 
| @@ -25,17 +25,17 @@ | ||
| 25 | 25 | * The alias is an internal rewrite, i.e. external url's are rewritten to internal on request, | 
| 26 | 26 | * and vice versa when composing an url. | 
| 27 | 27 | */ | 
| 28 | - const REWRITE = 0; | |
| 28 | + const REWRITE = 0; | |
| 29 | 29 | |
| 30 | 30 | /** | 
| 31 | 31 | * The MOVE type yields a 301 response with the internal url if the public url is matched | 
| 32 | 32 | */ | 
| 33 | - const MOVE = 301; | |
| 33 | + const MOVE = 301; | |
| 34 | 34 | |
| 35 | 35 | /** | 
| 36 | 36 | * The ALIAS type yields a 302 response with the internal url if the public url is matched | 
| 37 | 37 | */ | 
| 38 | - const ALIAS = 302; | |
| 38 | + const ALIAS = 302; | |
| 39 | 39 | |
| 40 | 40 | /** | 
| 41 | 41 | * @ORM\Id | 
| @@ -108,13 +108,13 @@ | ||
| 108 | 108 |              try { | 
| 109 | 109 | $this->static_refs[$name] = $this->provider->url($name); | 
| 110 | 110 |              } catch (UnsupportedException $e) { | 
| 111 | - $this->static_refs[$name] = '/[static_reference: '. $name . ']'; | |
| 111 | + $this->static_refs[$name] = '/[static_reference: '.$name.']'; | |
| 112 | 112 | } | 
| 113 | 113 | } | 
| 114 | 114 | |
| 115 | 115 | $ret = $this->static_refs[$name]; | 
| 116 | 116 |          if ($params) { | 
| 117 | - $ret .= '?' . http_build_query($params, 0, '&'); | |
| 117 | + $ret .= '?'.http_build_query($params, 0, '&'); | |
| 118 | 118 | } | 
| 119 | 119 | |
| 120 | 120 | return $ret; | 
| @@ -121,7 +121,7 @@ | ||
| 121 | 121 |              if ($external = $this->translateKeyOutput($param)) { | 
| 122 | 122 | $param = $external; | 
| 123 | 123 | } | 
| 124 | - $ret .= $param . $this->seperators['key_value']; | |
| 124 | + $ret .= $param.$this->seperators['key_value']; | |
| 125 | 125 | $firstValue = true; | 
| 126 | 126 |              foreach ($values as $value) { | 
| 127 | 127 |                  if ($external = $this->translateValueOutput($internal, $value)) { | 
| @@ -27,7 +27,7 @@ discard block | ||
| 27 | 27 | */ | 
| 28 | 28 | public function composeUri($params) | 
| 29 | 29 |      { | 
| 30 | - $ret = []; | |
| 30 | + $ret = []; | |
| 31 | 31 | |
| 32 | 32 |          foreach ($params as $param => $values) { | 
| 33 | 33 | $internal = $param; | 
| @@ -39,7 +39,7 @@ discard block | ||
| 39 | 39 |                  if ($external = $this->translateValueOutput($internal, $value)) { | 
| 40 | 40 | $value = $external; | 
| 41 | 41 | } | 
| 42 | - $ret[$param][]= $value; | |
| 42 | + $ret[$param][] = $value; | |
| 43 | 43 | } | 
| 44 | 44 | } | 
| 45 | 45 | |
| @@ -110,7 +110,7 @@ | ||
| 110 | 110 |          if (!$multiple) { | 
| 111 | 111 |              if (!is_scalar($value)) { | 
| 112 | 112 | throw new \InvalidArgumentException( | 
| 113 | - "Invalid argument \$value to with(), expected scalar, got " . gettype($value) | |
| 113 | + "Invalid argument \$value to with(), expected scalar, got ".gettype($value) | |
| 114 | 114 | ); | 
| 115 | 115 | } | 
| 116 | 116 |              if ($ret->contains($key, $value)) { | 
| @@ -61,6 +61,6 @@ | ||
| 61 | 61 | */ | 
| 62 | 62 | public function url($object, array $options = array()) | 
| 63 | 63 |      { | 
| 64 | - return $this->router->getContext()->getBaseUrl() . '/' . ltrim($this->refs[$object], '/'); | |
| 64 | + return $this->router->getContext()->getBaseUrl().'/'.ltrim($this->refs[$object], '/'); | |
| 65 | 65 | } | 
| 66 | 66 | } |