Skip to content

Commit da77ac0

Browse files
authored
Merge pull request #1133 from dunglas/cs
Fix CS, make Travis green again
2 parents d78909b + 42940e3 commit da77ac0

16 files changed

+37
-34
lines changed

src/Api/CachedIdentifiersExtractor.php

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

3-
declare(strict_types=1);
4-
53
/*
64
* This file is part of the API Platform project.
75
*
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace ApiPlatform\Core\Api;
1515

1616
use ApiPlatform\Core\Util\ClassInfoTrait;

src/Api/IdentifiersExtractor.php

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

3-
declare(strict_types=1);
4-
53
/*
64
* This file is part of the API Platform project.
75
*
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace ApiPlatform\Core\Api;
1515

1616
use ApiPlatform\Core\Exception\RuntimeException;

src/Api/IdentifiersExtractorInterface.php

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

3-
declare(strict_types=1);
4-
53
/*
64
* This file is part of the API Platform project.
75
*
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace ApiPlatform\Core\Api;
1515

1616
/**

src/Api/OperationType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
43
/*
54
* This file is part of the API Platform project.
65
*
@@ -10,6 +9,8 @@
109
* file that was distributed with this source code.
1110
*/
1211

12+
declare(strict_types=1);
13+
1314
namespace ApiPlatform\Core\Api;
1415

1516
final class OperationType

src/Api/OperationTypeDeprecationHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
43
/*
54
* This file is part of the API Platform project.
65
*
@@ -10,6 +9,8 @@
109
* file that was distributed with this source code.
1110
*/
1211

12+
declare(strict_types=1);
13+
1314
namespace ApiPlatform\Core\Api;
1415

1516
/**

src/Bridge/Doctrine/Orm/SubresourceDataProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
43
/*
54
* This file is part of the API Platform project.
65
*
@@ -10,6 +9,8 @@
109
* file that was distributed with this source code.
1110
*/
1211

12+
declare(strict_types=1);
13+
1314
namespace ApiPlatform\Core\Bridge\Doctrine\Orm;
1415

1516
use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryCollectionExtensionInterface;

src/DataProvider/ChainSubresourceDataProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
43
/*
54
* This file is part of the API Platform project.
65
*
@@ -10,6 +9,8 @@
109
* file that was distributed with this source code.
1110
*/
1211

12+
declare(strict_types=1);
13+
1314
namespace ApiPlatform\Core\DataProvider;
1415

1516
use ApiPlatform\Core\Exception\ResourceClassNotSupportedException;

src/DataProvider/SubresourceDataProviderInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
43
/*
54
* This file is part of the API Platform project.
65
*
@@ -10,6 +9,8 @@
109
* file that was distributed with this source code.
1110
*/
1211

12+
declare(strict_types=1);
13+
1314
namespace ApiPlatform\Core\DataProvider;
1415

1516
use ApiPlatform\Core\Exception\ResourceClassNotSupportedException;

tests/Api/CachedIdentifiersExtractorTest.php

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

3-
declare(strict_types=1);
4-
53
/*
64
* This file is part of the API Platform project.
75
*
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace ApiPlatform\Core\Tests\Api;
1515

1616
use ApiPlatform\Core\Api\CachedIdentifiersExtractor;

tests/Api/IdentifiersExtractorTest.php

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

3-
declare(strict_types=1);
4-
53
/*
64
* This file is part of the API Platform project.
75
*
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace ApiPlatform\Core\Tests\Api;
1515

1616
use ApiPlatform\Core\Api\IdentifiersExtractor;

tests/Bridge/Doctrine/Orm/SubresourceDataProviderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
43
/*
54
* This file is part of the API Platform project.
65
*
@@ -10,6 +9,8 @@
109
* file that was distributed with this source code.
1110
*/
1211

12+
declare(strict_types=1);
13+
1314
namespace ApiPlatform\Core\Tests\Bridge\Doctrine\Orm;
1415

1516
use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryResultCollectionExtensionInterface;

tests/DataProvider/ChainSubresourcedataProviderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
43
/*
54
* This file is part of the API Platform project.
65
*
@@ -10,6 +9,8 @@
109
* file that was distributed with this source code.
1110
*/
1211

12+
declare(strict_types=1);
13+
1314
namespace ApiPlatform\Core\Tests\DataProvider;
1415

1516
use ApiPlatform\Core\DataProvider\ChainSubresourceDataProvider;

tests/Fixtures/TestBundle/Entity/Answer.php

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

3-
declare(strict_types=1);
43
/*
54
* This file is part of the API Platform project.
65
*
@@ -10,6 +9,8 @@
109
* file that was distributed with this source code.
1110
*/
1211

12+
declare(strict_types=1);
13+
1314
namespace ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity;
1415

1516
use ApiPlatform\Core\Annotation\ApiResource;
@@ -19,7 +20,6 @@
1920
/**
2021
* Answer.
2122
*
22-
* @ORM\Table(name="answer")
2323
* @ORM\Entity
2424
* @ApiResource(collectionOperations={
2525
* "get_subresource_answer"={"method"="GET", "normalization_context"={"groups"={"foobar"}}}
@@ -28,15 +28,15 @@
2828
class Answer
2929
{
3030
/**
31-
* @ORM\Column(name="id", type="integer")
31+
* @ORM\Column(type="integer")
3232
* @ORM\Id
3333
* @ORM\GeneratedValue(strategy="AUTO")
3434
* @Serializer\Groups({"foobar"})
3535
*/
3636
private $id;
3737

3838
/**
39-
* @ORM\Column(name="content", type="string", nullable=false)
39+
* @ORM\Column(nullable=false)
4040
* @Serializer\Groups({"foobar"})
4141
*/
4242
private $content;

tests/Fixtures/TestBundle/Entity/Container.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
43
/*
54
* This file is part of the API Platform project.
65
*
@@ -10,6 +9,8 @@
109
* file that was distributed with this source code.
1110
*/
1211

12+
declare(strict_types=1);
13+
1314
namespace ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity;
1415

1516
use ApiPlatform\Core\Annotation\ApiProperty;
@@ -25,7 +26,7 @@ class Container
2526
{
2627
/**
2728
* @ORM\Id
28-
* @ORM\Column(name="id", type="guid")
29+
* @ORM\Column(type="guid")
2930
*
3031
* @var string UUID
3132
*/
@@ -47,17 +48,11 @@ class Container
4748
*/
4849
private $nodes;
4950

50-
/**
51-
* @return string
52-
*/
5351
public function getId(): string
5452
{
5553
return $this->id;
5654
}
5755

58-
/**
59-
* @param string id
60-
*/
6156
public function setId(string $id)
6257
{
6358
$this->id = $id;

tests/Fixtures/TestBundle/Entity/Node.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
43
/*
54
* This file is part of the API Platform project.
65
*
@@ -10,6 +9,8 @@
109
* file that was distributed with this source code.
1110
*/
1211

12+
declare(strict_types=1);
13+
1314
namespace ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity;
1415

1516
use ApiPlatform\Core\Annotation\ApiResource;

tests/Fixtures/TestBundle/Entity/Question.php

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

3-
declare(strict_types=1);
43
/*
54
* This file is part of the API Platform project.
65
*
@@ -10,28 +9,29 @@
109
* file that was distributed with this source code.
1110
*/
1211

12+
declare(strict_types=1);
13+
1314
namespace ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity;
1415

1516
use ApiPlatform\Core\Annotation\ApiProperty;
1617
use ApiPlatform\Core\Annotation\ApiResource;
1718
use Doctrine\ORM\Mapping as ORM;
1819

1920
/**
20-
* @ORM\Table(name="question")
2121
* @ORM\Entity
2222
* @ApiResource
2323
*/
2424
class Question
2525
{
2626
/**
27-
* @ORM\Column(name="id", type="integer")
27+
* @ORM\Column(type="integer")
2828
* @ORM\Id
2929
* @ORM\GeneratedValue(strategy="AUTO")
3030
*/
3131
private $id;
3232

3333
/**
34-
* @ORM\Column(name="content", type="string", nullable=true)
34+
* @ORM\Column(nullable=true)
3535
*/
3636
private $content;
3737

0 commit comments

Comments
 (0)