Skip to content

Commit 11cc24d

Browse files
authored
Merge pull request #1081 from jrushlow/fix/php-cs-fixer
[ci] adhere to php-cs-fixer standards
2 parents 455c2bc + 6b3859a commit 11cc24d

7 files changed

+8
-10
lines changed

src/EventRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function __construct(EventDispatcherInterface $eventDispatcher)
7979

8080
// Loop through the new event classes
8181
foreach (self::$newEventsMap as $eventName => $newEventClass) {
82-
//Check if the new event classes exist, if so replace the old one with the new.
82+
// Check if the new event classes exist, if so replace the old one with the new.
8383
if (isset(self::$eventsMap[$eventName]) && class_exists($newEventClass)) {
8484
self::$eventsMap[$eventName] = $newEventClass;
8585
}

src/Resources/skeleton/authenticator/Security52LoginFormAuthenticator.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function onAuthenticationSuccess(Request $request, TokenInterface $token,
5151
}
5252

5353
// For example:
54-
//return new RedirectResponse($this->urlGenerator->generate('some_route'));
54+
// return new RedirectResponse($this->urlGenerator->generate('some_route'));
5555
throw new \Exception('TODO: provide a valid redirect inside '.__FILE__);
5656
}
5757

src/Resources/skeleton/test/KernelTestCase.tpl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function testSomething(): void
1111
$kernel = self::bootKernel();
1212

1313
$this->assertSame('test', $kernel->getEnvironment());
14-
//$routerService = <?= $use_legacy_container_property ? 'self::$container' : 'static::getContainer()'; ?>->get('router');
15-
//$myCustomService = <?= $use_legacy_container_property ? 'self::$container' : 'static::getContainer()'; ?>->get(CustomService::class);
14+
// $routerService = <?= $use_legacy_container_property ? 'self::$container' : 'static::getContainer()'; ?>->get('router');
15+
// $myCustomService = <?= $use_legacy_container_property ? 'self::$container' : 'static::getContainer()'; ?>->get(CustomService::class);
1616
}
1717
}

src/Util/ClassSourceManipulator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ private function addCollectionRelation(BaseCollectionRelation $relation): void
694694
$paramBuilder->setTypeHint($typeHint);
695695
$adderNodeBuilder->addParam($paramBuilder->getNode());
696696

697-
//if (!$this->avatars->contains($avatar))
697+
// if (!$this->avatars->contains($avatar))
698698
$containsMethodCallNode = new Node\Expr\MethodCall(
699699
new Node\Expr\PropertyFetch(new Node\Expr\Variable('this'), $relation->getPropertyName()),
700700
'contains',
@@ -749,7 +749,7 @@ private function addCollectionRelation(BaseCollectionRelation $relation): void
749749
// $this->avatars->removeElement($avatar);
750750
$removerNodeBuilder->addStmt(BuilderHelpers::normalizeStmt($removeElementCall));
751751
} else {
752-
//if ($this->avatars->removeElement($avatar))
752+
// if ($this->avatars->removeElement($avatar))
753753
$ifRemoveElementStmt = new Node\Stmt\If_($removeElementCall);
754754
$removerNodeBuilder->addStmt($ifRemoveElementStmt);
755755
if ($relation instanceof RelationOneToMany) {

src/Util/YamlSourceManipulator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ private function findEndPositionOfValue($value, $offset = null)
835835
return $endKeyPosition;
836836
}
837837

838-
if (is_scalar($value) || null === $value) {
838+
if (\is_scalar($value) || null === $value) {
839839
$offset = null === $offset ? $this->currentPosition : $offset;
840840

841841
if (\is_bool($value)) {

tests/Util/ClassSourceManipulatorTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,6 @@ public function getAddOneToOneRelationTests(): \Generator
648648
(new RelationOneToOne())
649649
->setPropertyName('userProfile')
650650
->setTargetClassName('App\Entity\UserProfile')
651-
//->setTargetPropertyName('user')
652651
->setIsNullable(true)
653652
->setIsOwning(true)
654653
->setMapInverseRelation(false),
@@ -660,7 +659,6 @@ public function getAddOneToOneRelationTests(): \Generator
660659
(new RelationOneToOne())
661660
->setPropertyName('userProfile')
662661
->setTargetClassName('App\Entity\UserProfile')
663-
//->setTargetPropertyName('user')
664662
->setIsNullable(false)
665663
->setIsOwning(true)
666664
->setMapInverseRelation(false),

tests/Util/YamlSourceManipulatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testSetData(string $startingSource, array $newData, string $expe
3030

3131
$logger = $this->createLogger();
3232
// uncomment to enhance debugging
33-
//$manipulator->setLogger($logger);
33+
// $manipulator->setLogger($logger);
3434

3535
$manipulator->setData($newData);
3636

0 commit comments

Comments
 (0)