@@ -33,12 +33,12 @@ discard block |
||
33 | 33 | $configuration = new Configuration(); |
34 | 34 | $config = $this->processConfiguration($configuration, $configs); |
35 | 35 | |
36 | - $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
36 | + $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
37 | 37 | $loader->load('services.yml'); |
38 | 38 | |
39 | 39 | if ($config['persistence']['phpcr']['enabled']) { |
40 | 40 | $this->loadPhpcr($config['persistence']['phpcr'], $loader, $container); |
41 | - $container->setParameter($this->getAlias().'.backend_type_phpcr', true); |
|
41 | + $container->setParameter($this->getAlias() . '.backend_type_phpcr', true); |
|
42 | 42 | } |
43 | 43 | } |
44 | 44 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | foreach ($keys as $sourceKey => $targetKey) { |
56 | 56 | $container->setParameter( |
57 | - $this->getAlias().'.persistence.phpcr.'.$targetKey, |
|
57 | + $this->getAlias() . '.persistence.phpcr.' . $targetKey, |
|
58 | 58 | $config[$sourceKey] |
59 | 59 | ); |
60 | 60 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | array_push($config['route_basepaths'], $config['content_basepath']); |
63 | 63 | |
64 | 64 | $container->setParameter( |
65 | - $this->getAlias().'.persistence.phpcr.base_paths', |
|
65 | + $this->getAlias() . '.persistence.phpcr.base_paths', |
|
66 | 66 | $config['route_basepaths'] |
67 | 67 | ); |
68 | 68 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | if ($this->hasParameter('tenantId')) { |
34 | - return $targetTableAlias.'.tenant_id = '.$this->getParameter('tenantId'); |
|
34 | + return $targetTableAlias . '.tenant_id = ' . $this->getParameter('tenantId'); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | return ''; |
@@ -126,7 +126,7 @@ |
||
126 | 126 | $home = 'homepage'; |
127 | 127 | foreach ($basePaths as $path) { |
128 | 128 | NodeHelper::createPath($session, $path); |
129 | - $homepage = $this->dm->find(null, $path.'/'.$home); |
|
129 | + $homepage = $this->dm->find(null, $path . '/' . $home); |
|
130 | 130 | if (null === $homepage) { |
131 | 131 | $route = new $this->documentClass(); |
132 | 132 | $route->setParentDocument($this->dm->find(null, $path)); |
@@ -110,10 +110,10 @@ |
||
110 | 110 | if (!$input->getArgument($name) && !$default) { |
111 | 111 | $argument = $this->getHelper('dialog')->askAndValidate( |
112 | 112 | $output, |
113 | - '<question>Please enter '.$name.':</question>', |
|
114 | - function ($argument) use ($name) { |
|
113 | + '<question>Please enter ' . $name . ':</question>', |
|
114 | + function($argument) use ($name) { |
|
115 | 115 | if (empty($argument)) { |
116 | - throw new \RuntimeException('The '.$name.' can not be empty'); |
|
116 | + throw new \RuntimeException('The ' . $name . ' can not be empty'); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | return $argument; |