Skip to content

Commit 8aa4a02

Browse files
committed
Apply "header_comment" CS rule
1 parent 41b7eb6 commit 8aa4a02

File tree

720 files changed

+5072
-810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

720 files changed

+5072
-810
lines changed

.php-cs-fixer.dist.php

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
10+
$header = <<<'HEADER'
11+
This file is part of the Doctrine Behavioral Extensions package.
12+
(c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
13+
For the full copyright and license information, please view the LICENSE
14+
file that was distributed with this source code.
15+
HEADER;
16+
317
$finder = PhpCsFixer\Finder::create()
418
->in([
519
__DIR__.'/example',
@@ -20,6 +34,7 @@
2034
'combine_consecutive_issets' => true,
2135
'combine_consecutive_unsets' => true,
2236
'error_suppression' => true,
37+
'header_comment' => ['header' => $header],
2338
'is_null' => false,
2439
'list_syntax' => ['syntax' => 'short'],
2540
'modernize_types_casting' => true,

example/app/Entity/Category.php

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Entity;
411

512
use Doctrine\Common\Collections\ArrayCollection;

example/app/Entity/CategoryTranslation.php

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Entity;
411

512
use Doctrine\ORM\Mapping as ORM;

example/app/Entity/Repository/CategoryRepository.php

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Entity\Repository;
411

512
use Gedmo\Tree\Entity\Repository\NestedTreeRepository;

example/bin/console.php

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
$em = include __DIR__.'/../em.php';
411

512
$cli = new Symfony\Component\Console\Application('My CLI interface', '1.0.0');

example/em.php

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
<?php
2-
/**
3-
* This entity manager configuration works with doctrine 2.1.x and 2.2.x
4-
* versions. Regarding AnnotationDriver setup it most probably will be changed into
5-
* xml. Because annotation driver fails to read other classes in same namespace
2+
3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
68
*/
9+
10+
// This entity manager configuration works with doctrine 2.1.x and 2.2.x
11+
// versions. Regarding AnnotationDriver setup it most probably will be changed into
12+
// xml. Because annotation driver fails to read other classes in same namespace.
13+
714
// connection args, modify at will
815
$connection = [
916
'host' => '127.0.0.1',

example/run.php

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
use Doctrine\ORM\Query;
411
use Gedmo\Translatable\TranslatableListener;
512

src/AbstractTrackingListener.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo;
411

512
use Doctrine\Common\EventArgs;
@@ -15,7 +22,6 @@
1522
* The AbstractTrackingListener provides generic functions for all listeners.
1623
*
1724
* @author Gediminas Morkevicius <[email protected]>
18-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1925
*/
2026
abstract class AbstractTrackingListener extends MappedEventSubscriber
2127
{

src/Blameable/Blameable.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo\Blameable;
411

512
/**
@@ -8,7 +15,6 @@
815
* Blameable
916
*
1017
* @author Gediminas Morkevicius <[email protected]>
11-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1218
*/
1319
interface Blameable
1420
{

src/Blameable/BlameableListener.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo\Blameable;
411

512
use Gedmo\AbstractTrackingListener;
@@ -10,7 +17,6 @@
1017
* dates on creation and update.
1118
*
1219
* @author Gediminas Morkevicius <[email protected]>
13-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1420
*/
1521
class BlameableListener extends AbstractTrackingListener
1622
{

src/Blameable/Mapping/Driver/Annotation.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo\Blameable\Mapping\Driver;
411

512
use Gedmo\Exception\InvalidMappingException;
@@ -13,7 +20,6 @@
1320
* extension.
1421
*
1522
* @author David Buchmann <[email protected]>
16-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1723
*/
1824
class Annotation extends AbstractAnnotationDriver
1925
{

src/Blameable/Mapping/Driver/Xml.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo\Blameable\Mapping\Driver;
411

512
use Gedmo\Exception\InvalidMappingException;
@@ -12,7 +19,6 @@
1219
* extension.
1320
*
1421
* @author David Buchmann <[email protected]>
15-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1622
*/
1723
class Xml extends BaseXml
1824
{

src/Blameable/Mapping/Driver/Yaml.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo\Blameable\Mapping\Driver;
411

512
use Gedmo\Exception\InvalidMappingException;
@@ -13,7 +20,6 @@
1320
* extension.
1421
*
1522
* @author David Buchmann <[email protected]>
16-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1723
*/
1824
class Yaml extends File implements Driver
1925
{

src/Blameable/Mapping/Event/Adapter/ODM.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo\Blameable\Mapping\Event\Adapter;
411

512
use Gedmo\Blameable\Mapping\Event\BlameableAdapter;
@@ -10,7 +17,6 @@
1017
* for Blameable behavior.
1118
*
1219
* @author David Buchmann <[email protected]>
13-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1420
*/
1521
final class ODM extends BaseAdapterODM implements BlameableAdapter
1622
{

src/Blameable/Mapping/Event/Adapter/ORM.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo\Blameable\Mapping\Event\Adapter;
411

512
use Gedmo\Blameable\Mapping\Event\BlameableAdapter;
@@ -10,7 +17,6 @@
1017
* for Blameable behavior.
1118
*
1219
* @author David Buchmann <[email protected]>
13-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1420
*/
1521
final class ORM extends BaseAdapterORM implements BlameableAdapter
1622
{

src/Blameable/Mapping/Event/BlameableAdapter.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo\Blameable\Mapping\Event;
411

512
use Gedmo\Mapping\Event\AdapterInterface;
@@ -8,7 +15,6 @@
815
* Doctrine event adapter for the Blameable extension.
916
*
1017
* @author David Buchmann <[email protected]>
11-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1218
*/
1319
interface BlameableAdapter extends AdapterInterface
1420
{

src/Blameable/Traits/Blameable.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo\Blameable\Traits;
411

512
/**
613
* Blameable Trait, usable with PHP >= 5.4
714
*
815
* @author David Buchmann <[email protected]>
9-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1016
*/
1117
trait Blameable
1218
{

src/Blameable/Traits/BlameableDocument.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo\Blameable\Traits;
411

512
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
@@ -9,7 +16,6 @@
916
* Blameable Trait, usable with PHP >= 5.4
1017
*
1118
* @author David Buchmann <[email protected]>
12-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1319
*/
1420
trait BlameableDocument
1521
{

src/Blameable/Traits/BlameableEntity.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo\Blameable\Traits;
411

512
use Doctrine\ORM\Mapping as ORM;
@@ -9,7 +16,6 @@
916
* Blameable Trait, usable with PHP >= 5.4
1017
*
1118
* @author David Buchmann <[email protected]>
12-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
1319
*/
1420
trait BlameableEntity
1521
{

src/DoctrineExtensions.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the Doctrine Behavioral Extensions package.
5+
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Gedmo;
411

512
use function class_exists;
@@ -19,7 +26,6 @@
1926
* and the current version of the Doctrine Extensions library.
2027
*
2128
* @author Gediminas Morkevicius <[email protected]>
22-
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
2329
*/
2430
final class DoctrineExtensions
2531
{

0 commit comments

Comments
 (0)