| @@ -3,8 +3,6 @@ | ||
| 3 | 3 | namespace Alpixel\Bundle\ElasticaUtilsBundle\Twig\Extension; | 
| 4 | 4 | |
| 5 | 5 | use Alpixel\Bundle\ElasticaUtilsBundle\Services\ElasticaQuerySorter; | 
| 6 | -use Symfony\Component\DependencyInjection\ContainerBuilder; | |
| 7 | -use Symfony\Component\Yaml\Parser; | |
| 8 | 6 | |
| 9 | 7 | class ElasticaSorterExtension extends \Twig_Extension | 
| 10 | 8 |  { | 
| @@ -91,7 +91,7 @@ | ||
| 91 | 91 | } | 
| 92 | 92 | |
| 93 | 93 | |
| 94 | - protected function addSort(Query &$query) | |
| 94 | + protected function addSort(Query & $query) | |
| 95 | 95 |      { | 
| 96 | 96 |          $sortBy    = explode('-', $this->fetchData('sortBy')); | 
| 97 | 97 |          $sortOrder = $this->fetchData('sortOrder'); | 
| @@ -22,6 +22,6 @@ | ||
| 22 | 22 | |
| 23 | 23 | public function registerContainerConfiguration(LoaderInterface $loader) | 
| 24 | 24 |      { | 
| 25 | - $loader->load(__DIR__.'/../config/config.yml'); | |
| 25 | + $loader->load(__DIR__ . '/../config/config.yml'); | |
| 26 | 26 | } | 
| 27 | 27 | } | 
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | $_SERVER['env'] = 'test'; | 
| 4 | 4 | use Doctrine\Common\Annotations\AnnotationRegistry; | 
| 5 | 5 | |
| 6 | -if (!is_file($loaderFile = __DIR__.'/../vendor/autoload.php')) { | |
| 6 | +if (!is_file($loaderFile = __DIR__ . '/../vendor/autoload.php')) { | |
| 7 | 7 |      throw new \LogicException('Could not find autoload.php in vendor/. Did you run "composer install --dev"?'); | 
| 8 | 8 | } | 
| 9 | 9 | $loader = require $loaderFile; | 
| @@ -22,7 +22,7 @@ | ||
| 22 | 22 | $configuration = new Configuration(); | 
| 23 | 23 | $config = $this->processConfiguration($configuration, $configs); | 
| 24 | 24 | |
| 25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); | |
| 25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); | |
| 26 | 26 |          $loader->load('services.yml'); | 
| 27 | 27 | } | 
| 28 | 28 | } |