Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit d9f6cfb

Browse files
committed
Fix CS
1 parent 59d8cca commit d9f6cfb

20 files changed

+163
-7
lines changed

Cache/CachedCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class CachedCollection implements \IteratorAggregate, \Serializable
3535

3636
/**
3737
* @param array $data
38-
* @param null|string $resource The path to the file of the content object, this is
39-
* used to determine if the cache needs to be updated
38+
* @param null|string $resource The path to the file of the content object, this is
39+
* used to determine if the cache needs to be updated
4040
*/
4141
public function __construct(array $data, $resource = null)
4242
{

DependencyInjection/Configuration.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public function getConfigTreeBuilder()
7171
->end()
7272
// validation needs to be on top, when no values are set a validation inside the content_listener array node will not be triggered
7373
->validate()
74-
->ifTrue(function ($v) { return $v['content_listener']['enabled'] && empty($v['content_listener']['content_key']); })
74+
->ifTrue(function ($v) {
75+
return $v['content_listener']['enabled'] && empty($v['content_listener']['content_key']);
76+
})
7577
->thenInvalid('Configure the content_listener.content_key or disable the content_listener when not using the CmfRoutingBundle DynamicRouter.')
7678
->end()
7779
->children()
@@ -136,7 +138,9 @@ private function addSonataAdminSection(NodeBuilder $treeBuilder)
136138
->arrayNode('sonata_admin_extension')
137139
->addDefaultsIfNotSet()
138140
->beforeNormalization()
139-
->ifTrue(function ($v) { return is_scalar($v); })
141+
->ifTrue(function ($v) {
142+
return is_scalar($v);
143+
})
140144
->then(function ($v) {
141145
return array('enabled' => $v);
142146
})

Loader/Annotation/Extras.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Loader\Annotation;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Exception\InvalidArgumentException;

Loader/Annotation/MetaDescription.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Loader\Annotation;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Model\SeoMetadataInterface;

Loader/Annotation/MetaKeywords.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Loader\Annotation;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Model\SeoMetadataInterface;

Loader/Annotation/OriginalUrl.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Loader\Annotation;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Model\SeoMetadataInterface;

Loader/Annotation/SeoMetadataAnnotation.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Loader\Annotation;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Model\SeoMetadataInterface;

Loader/Annotation/Title.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Loader\Annotation;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Model\SeoMetadataInterface;

Loader/AnnotationLoader.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Loader;
413

514
use Doctrine\Common\Annotations\Reader;

Loader/ExtractorLoader.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Loader;
413

514
use Psr\Cache\CacheItemPoolInterface;

Loader/SeoMetadataFactory.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Loader;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Exception\InvalidArgumentException;

Tests/Functional/Loader/LoaderTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Tests\Functional\Loader;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Tests\Resources\Document\ContentWithExtractors;

Tests/Resources/Document/MethodAnnotatedContent.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Tests\Resources\Document;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Loader\Annotation as SEO;

Tests/Resources/Document/PropertyAnnotatedContent.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Tests\Resources\Document;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Loader\Annotation as SEO;

Tests/Unit/Loader/BaseAnnotationLoaderTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Tests\Unit\Loader;
413

514
use Doctrine\Common\Annotations\AnnotationReader;

Tests/Unit/Loader/ExtractorLoaderTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Tests\Unit\Loader;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Loader\ExtractorLoader;

Tests/Unit/Loader/Method_AnnotationLoaderTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Tests\Unit\Loader;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Tests\Resources\Document\MethodAnnotatedContent;

Tests/Unit/Loader/Property_AnnotationLoaderTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Tests\Unit\Loader;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Tests\Resources\Document\PropertyAnnotatedContent;

Tests/Unit/Loader/SeoMetadataFactoryTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2016 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Cmf\Bundle\SeoBundle\Tests\Unit\Loader;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Loader\SeoMetadataFactory;

Tests/Unit/SeoPresentationTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Cmf\Bundle\SeoBundle\Tests\Unit;
1313

1414
use Symfony\Cmf\Bundle\SeoBundle\DependencyInjection\ConfigValues;
15-
use Symfony\Cmf\Bundle\SeoBundle\Model\SeoMetadataInterface;
1615
use Symfony\Cmf\Bundle\SeoBundle\SeoPresentation;
1716
use Symfony\Component\Config\Loader\LoaderInterface;
1817

@@ -36,7 +35,7 @@ public function setUp()
3635
$this->pageService = $this->getMock('Sonata\SeoBundle\Seo\SeoPage');
3736
$this->translator = $this->getMock('Symfony\Component\Translation\TranslatorInterface');
3837
$this->seoMetadata = $this->getMock('Symfony\Cmf\Bundle\SeoBundle\Model\SeoMetadata');
39-
$this->content = new \stdClass;
38+
$this->content = new \stdClass();
4039

4140
$this->loader = $this->getMock(LoaderInterface::class);
4241
$this->loader
@@ -80,7 +79,7 @@ public function testDefaultTitle()
8079
;
8180

8281
// test
83-
$this->seoPresentation->updateSeoPage(new \stdClass);
82+
$this->seoPresentation->updateSeoPage(new \stdClass());
8483
}
8584

8685
public function testContentTitle()

0 commit comments

Comments
 (0)