@@ -2,7 +2,7 @@ |
||
| 2 | 2 | /** |
| 3 | 3 | * @author Oskar van Velden <[email protected]> |
| 4 | 4 | * @copyright Zicht Online <http://zicht.nl> |
| 5 | - */ |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | namespace Zicht\Bundle\PageBundle\Entity; |
| 8 | 8 | |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | $suggestions = array(); |
| 86 | 86 | foreach ($pages as $page) { |
| 87 | - $suggestions[]= array( |
|
| 87 | + $suggestions[] = array( |
|
| 88 | 88 | 'value' => $this->url($page), |
| 89 | 89 | 'label' => $this->getLabel($page) |
| 90 | 90 | ); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | if (array_key_exists($region, $this->matrix)) { |
| 115 | 115 | array_walk( |
| 116 | 116 | $this->matrix[$region], |
| 117 | - function ($value, $idx, $matrix) use ($type, $region) { |
|
| 117 | + function($value, $idx, $matrix) use ($type, $region) { |
|
| 118 | 118 | $class = explode('\\', $value); |
| 119 | 119 | $className = array_pop($class); |
| 120 | 120 | if ($className === $type) { |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | if (!class_exists($className)) { |
| 142 | 142 | throw new \InvalidArgumentException("Class {$className} is non-existent or could not be loaded"); |
| 143 | 143 | } |
| 144 | - $this->matrix[$this->currentRegion][]= $className; |
|
| 144 | + $this->matrix[$this->currentRegion][] = $className; |
|
| 145 | 145 | return $this; |
| 146 | 146 | } |
| 147 | 147 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | public function ns($namespace) |
| 156 | 156 | { |
| 157 | - if ('\\' !== $namespace{strlen($namespace) -1}) { |
|
| 157 | + if ('\\' !== $namespace{strlen($namespace) - 1}) { |
|
| 158 | 158 | $namespace .= '\\'; |
| 159 | 159 | } |
| 160 | 160 | $this->namespacePrefix = $namespace; |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | $ret = array(); |
| 197 | 197 | foreach ($this->matrix as $region => $types) { |
| 198 | 198 | if (in_array($type, $types)) { |
| 199 | - $ret[]= $region; |
|
| 199 | + $ret[] = $region; |
|
| 200 | 200 | } |
| 201 | 201 | } |
| 202 | 202 | return $ret; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $this->setDescription("Creates aliases for all pages") |
| 27 | 27 | ->setName('zicht:page:alias') |
| 28 | 28 | ->addArgument('entity', InputArgument::OPTIONAL, 'Only do a specific entity') |
| 29 | - ->addOption('where', 'w', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Add a WHERE query') |
|
| 29 | + ->addOption('where', 'w', InputOption::VALUE_REQUIRED|InputOption::VALUE_IS_ARRAY, 'Add a WHERE query') |
|
| 30 | 30 | ->addOption('move', '', InputOption::VALUE_NONE, 'Force regeneration (use MOVE strategy for new aliases)'); |
| 31 | 31 | } |
| 32 | 32 | |