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

Commit 3e8c4b1

Browse files
committed
Fix CS
1 parent 59d8cca commit 3e8c4b1

20 files changed

+167
-11
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: 10 additions & 1 deletion
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;
@@ -86,7 +95,7 @@ private function readAnnotations($content)
8695

8796
return [
8897
'properties' => $this->readProperties($classReflection->getProperties()),
89-
'methods' => $this->readMethods($classReflection->getMethods()),
98+
'methods' => $this->readMethods($classReflection->getMethods()),
9099
];
91100
}
92101

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;

0 commit comments

Comments
 (0)