Completed
Push — master ( 9420d2...f7d146 )
by Alex
03:34
created
Tests/Fixtures/App/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
                 ));
Please login to merge, or discard this patch.
Tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Repository/PageRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
Tests/Entity/CategoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $homepage = $em->getRepository(get_class($homepage))->find($homepage->getId());
51 51
 
52 52
         static::assertEquals($homepage->getCategory(), $category);
53
-        static::assertEquals($category->getName(), (string)$category);
53
+        static::assertEquals($category->getName(), (string) $category);
54 54
         static::assertFalse($category->isEnabled()); // Base value
55 55
     }
56 56
 
Please login to merge, or discard this patch.
Tests/Entity/PageTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         /** @var Page $homepage */
45 45
         $homepage = $em->getRepository(get_class($homepage))->find($homepage->getId());
46 46
 
47
-        static::assertEquals($homepage->getTitle(), (string)$homepage);
47
+        static::assertEquals($homepage->getTitle(), (string) $homepage);
48 48
 
49 49
         static::assertFalse($homepage->isEnabled()); // Base value in entity
50 50
         static::assertTrue($homepage->isHomepage());
Please login to merge, or discard this patch.
Tests/DependencyInjection/OrbitaleCmsExtensionTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $ext->load($config, $builder);
69 69
 
70 70
         foreach ($expected['orbitale_cms'] as $key => $expectedValue) {
71
-            static::assertEquals($expectedValue, $builder->getParameter('orbitale_cms.' . $key));
71
+            static::assertEquals($expectedValue, $builder->getParameter('orbitale_cms.'.$key));
72 72
         }
73 73
     }
74 74
 
@@ -87,16 +87,16 @@  discard block
 block discarded – undo
87 87
         $ext->load($config, $builder);
88 88
 
89 89
         foreach ($expected['orbitale_cms'] as $key => $expectedValue) {
90
-            static::assertSame($expectedValue, $builder->getParameter('orbitale_cms.' . $key));
90
+            static::assertSame($expectedValue, $builder->getParameter('orbitale_cms.'.$key));
91 91
         }
92 92
     }
93 93
 
94 94
     public function provideYamlConfiguration()
95 95
     {
96
-        $dir = __DIR__ . '/../Fixtures/App/extension_test/';
96
+        $dir = __DIR__.'/../Fixtures/App/extension_test/';
97 97
 
98
-        $configFiles = glob($dir . 'config_*.yml');
99
-        $resultFiles = glob($dir . 'result_*.yml');
98
+        $configFiles = glob($dir.'config_*.yml');
99
+        $resultFiles = glob($dir.'result_*.yml');
100 100
 
101 101
         sort($configFiles);
102 102
         sort($resultFiles);
Please login to merge, or discard this patch.
Controller/AbstractCmsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             if ($element) {
53 53
                 // Only for the first iteration
54 54
                 $match = $previousElement
55
-                    ? $element->getParent() && $previousElement->getSlug()=== $element->getParent()->getSlug()
55
+                    ? $element->getParent() && $previousElement->getSlug() === $element->getParent()->getSlug()
56 56
                     : true;
57 57
 
58 58
                 $previousElement = $element;
Please login to merge, or discard this patch.
DependencyInjection/OrbitaleCmsExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@
 block discarded – undo
44 44
         }
45 45
 
46 46
         foreach ($config as $key => $value) {
47
-            $container->setParameter('orbitale_cms.' . $key, $value);
47
+            $container->setParameter('orbitale_cms.'.$key, $value);
48 48
         }
49 49
 
50
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
50
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
51 51
         $loader->load('services.yml');
52 52
         if ($this->isSymfony3()) {
53 53
             $loader->load('services_v3.yml');
Please login to merge, or discard this patch.