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

Commit 36c95e2

Browse files
committed
Fix CS
1 parent 9b22981 commit 36c95e2

19 files changed

+161
-9
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
{

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;

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
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;
615
use Symfony\Cmf\Bundle\SeoBundle\Loader\AnnotationLoader;
7-
use Symfony\Cmf\Bundle\SeoBundle\Tests\Resources\Document\PropertyAnnotatedContent;
816

917
/**
1018
* @author Wouter de Jong <[email protected]>

Tests/Unit/Loader/ExtractorLoaderTest.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\Tests\Unit\Loader;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Loader\ExtractorLoader;
@@ -19,7 +28,7 @@ class ExtractorLoaderTest extends \PHPUnit_Framework_TestCase
1928
protected function setUp()
2029
{
2130
$this->loader = new ExtractorLoader();
22-
$this->content = new \stdClass;
31+
$this->content = new \stdClass();
2332
}
2433

2534
public function testExtractors()

Tests/Unit/Loader/Method_AnnotationLoaderTest.php

Lines changed: 11 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\Tests\Unit\Loader;
413

514
use Symfony\Cmf\Bundle\SeoBundle\Tests\Resources\Document\MethodAnnotatedContent;
@@ -9,7 +18,8 @@
918
*/
1019
class Method_AnnotationLoaderTest extends BaseAnnotationLoaderTest
1120
{
12-
protected function getContent($title = 'Default name.', $description = 'Default description.', $keywords = ['keyword1', 'keyword2']) {
21+
protected function getContent($title = 'Default name.', $description = 'Default description.', $keywords = ['keyword1', 'keyword2'])
22+
{
1323
return new MethodAnnotatedContent($title, $description, $keywords);
1424
}
1525
}

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)