@@ -33,7 +33,7 @@ |
||
| 33 | 33 | $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml'); |
| 34 | 34 | |
| 35 | 35 | if ($this->isSymfony3()) { |
| 36 | - $loader->load(function (ContainerBuilder $container) { |
|
| 36 | + $loader->load(function(ContainerBuilder $container) { |
|
| 37 | 37 | $container->loadFromExtension('framework', array( |
| 38 | 38 | 'assets' => null, |
| 39 | 39 | )); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | -AnnotationRegistry::registerLoader(function ($class) use ($autoload) { |
|
| 33 | +AnnotationRegistry::registerLoader(function($class) use ($autoload) { |
|
| 34 | 34 | $autoload->loadClass($class); |
| 35 | 35 | |
| 36 | 36 | return class_exists($class, false); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | ->where('page.category = :category') |
| 33 | 33 | ->orderBy('page.'.$orderBy, $order) |
| 34 | 34 | ->setMaxResults($limit) |
| 35 | - ->setFirstResult($limit * ($page - 1)) |
|
| 35 | + ->setFirstResult($limit * ($page-1)) |
|
| 36 | 36 | ->setParameter('category', $category); |
| 37 | 37 | |
| 38 | 38 | return new Paginator($qb->getQuery()->useResultCache($this->cacheEnabled, $this->cacheTtl)); |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | // Sort configs by host, because host is checked before pattern. |
| 51 | - uasort($config['layouts'], function ($a, $b) { |
|
| 51 | + uasort($config['layouts'], function($a, $b) { |
|
| 52 | 52 | if ($a['host'] && $b['host']) { |
| 53 | 53 | return strcasecmp($a['host'], $b['host']); |
| 54 | 54 | } elseif ($a['host'] && !$b['host']) { |