@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $alias = $container |
| 19 | 19 | ->setAlias('friendly.symfony.kernel', 'symfony2_extension.kernel') |
| 20 | 20 | ; |
| 21 | - if ( ! $alias instanceof Alias) { |
|
| 21 | + if (!$alias instanceof Alias) { |
|
| 22 | 22 | $alias = $container->getAlias('friendly.symfony.kernel'); |
| 23 | 23 | } |
| 24 | 24 | $alias->setPublic(true); |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | |
| 53 | 53 | public function load($filename) |
| 54 | 54 | { |
| 55 | - if ( ! is_array($filename)) { |
|
| 55 | + if (!is_array($filename)) { |
|
| 56 | 56 | $filename = array($filename); |
| 57 | 57 | } |
| 58 | 58 | return $this->loader->loadFiles($filename)->getObjects(); |
@@ -47,8 +47,7 @@ |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | $this->getEntityManager()->flush(); |
| 50 | - } |
|
| 51 | - else { |
|
| 50 | + } else { |
|
| 52 | 51 | foreach ($fixtures as $id => $fixture) { |
| 53 | 52 | if (in_array($id, $files)) { |
| 54 | 53 | foreach ($loader->load($fixture) as $object) { |
@@ -19,11 +19,11 @@ |
||
| 19 | 19 | |
| 20 | 20 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 21 | 21 | { |
| 22 | - $loader->load($this->getProjectDir() . '/app/config/config_' . $this->getEnvironment() . '.yml'); |
|
| 22 | + $loader->load($this->getProjectDir().'/app/config/config_'.$this->getEnvironment().'.yml'); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public function getProjectDir() |
| 26 | 26 | { |
| 27 | - return realpath(__DIR__ . '/../'); |
|
| 27 | + return realpath(__DIR__.'/../'); |
|
| 28 | 28 | } |
| 29 | 29 | } |