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.
DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
                     ->isRequired()
37 37
                     ->validate()
38 38
                         ->always()
39
-                        ->then(function ($value) {
39
+                        ->then(function($value) {
40 40
                             if (!$value) {
41 41
                                 return null;
42 42
                             }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                     ->isRequired()
55 55
                     ->validate()
56 56
                         ->always()
57
-                        ->then(function ($value) {
57
+                        ->then(function($value) {
58 58
                             if (!$value) {
59 59
                                 return null;
60 60
                             }
Please login to merge, or discard this patch.
EventListener/LayoutsListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             if ($layoutConfig['host'] && $host === $layoutConfig['host']) {
64 64
                 $match = true;
65 65
             }
66
-            if ($layoutConfig['pattern'] && preg_match('~' . $layoutConfig['pattern'] . '~', $path)) {
66
+            if ($layoutConfig['pattern'] && preg_match('~'.$layoutConfig['pattern'].'~', $path)) {
67 67
                 $match = true;
68 68
             }
69 69
             if ($match) {
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.