From ab6ef4ba48dd47110d4803d6260658eb53139ceb Mon Sep 17 00:00:00 2001 From: Ferdinand Kuhl Date: Sat, 30 Apr 2022 21:38:36 +0200 Subject: [PATCH] RUN phpcbf --- Classes/Command/SequenceCommandController.php | 2 +- Classes/Domain/Model/Insert.php | 8 ++++---- Classes/Service/SequenceGenerator.php | 9 ++++----- Migrations/Mysql/Version20140505093853.php | 1 - Migrations/Mysql/Version20160624203903.php | 1 - Tests/Functional/SequenceTest.php | 4 ++-- 6 files changed, 11 insertions(+), 14 deletions(-) diff --git a/Classes/Command/SequenceCommandController.php b/Classes/Command/SequenceCommandController.php index 076cd53..479120f 100644 --- a/Classes/Command/SequenceCommandController.php +++ b/Classes/Command/SequenceCommandController.php @@ -14,8 +14,8 @@ use Neos\Flow\Cli\CommandController; class SequenceCommandController extends CommandController { /** - * @var SequenceGenerator * @Flow\Inject + * @var SequenceGenerator */ protected $sequenceGenerator; diff --git a/Classes/Domain/Model/Insert.php b/Classes/Domain/Model/Insert.php index 6e95e41..c82e0af 100644 --- a/Classes/Domain/Model/Insert.php +++ b/Classes/Domain/Model/Insert.php @@ -16,16 +16,16 @@ use Neos\Flow\Annotations as Flow; class Insert { /** - * @var int * @Flow\Identity * @ORM\Id + * @var int */ protected $number; /** - * @var string * @Flow\Identity * @ORM\Id + * @var string */ protected $type; @@ -68,8 +68,8 @@ class Insert */ public function setType($type) { - if (is_object($type)) { - $type = get_class($type); + if (\is_object($type)) { + $type = \get_class($type); } $this->type = $type; } diff --git a/Classes/Service/SequenceGenerator.php b/Classes/Service/SequenceGenerator.php index ba8a0ea..9787f51 100644 --- a/Classes/Service/SequenceGenerator.php +++ b/Classes/Service/SequenceGenerator.php @@ -5,7 +5,6 @@ namespace DigiComp\Sequence\Service; use DigiComp\Sequence\Domain\Model\Insert; use Doctrine\Common\Persistence\ObjectManager; use Doctrine\DBAL\DBALException; -use Doctrine\ORM\EntityManager; use Neos\Flow\Annotations as Flow; use Neos\Flow\Log\SystemLoggerInterface; use Neos\Flow\Reflection\ReflectionService; @@ -22,21 +21,21 @@ use Neos\Utility\TypeHandling; class SequenceGenerator { /** - * @var ObjectManager * @Flow\Inject + * @var ObjectManager */ protected $entityManager; /** - * @var ReflectionService * @Flow\Inject * @deprecated + * @var ReflectionService */ protected $reflectionService; /** - * @var SystemLoggerInterface * @Flow\Inject + * @var SystemLoggerInterface */ protected $systemLogger; @@ -120,7 +119,7 @@ class SequenceGenerator */ protected function inferTypeFromSource($stringOrObject) { - if (is_object($stringOrObject)) { + if (\is_object($stringOrObject)) { $stringOrObject = TypeHandling::getTypeForValue($stringOrObject); } if (! $stringOrObject) { diff --git a/Migrations/Mysql/Version20140505093853.php b/Migrations/Mysql/Version20140505093853.php index 05b424e..5f54564 100644 --- a/Migrations/Mysql/Version20140505093853.php +++ b/Migrations/Mysql/Version20140505093853.php @@ -10,7 +10,6 @@ use Doctrine\DBAL\Schema\Schema; */ class Version20140505093853 extends AbstractMigration { - /** * @return string */ diff --git a/Migrations/Mysql/Version20160624203903.php b/Migrations/Mysql/Version20160624203903.php index 0d9ad16..cd2990f 100644 --- a/Migrations/Mysql/Version20160624203903.php +++ b/Migrations/Mysql/Version20160624203903.php @@ -10,7 +10,6 @@ use Doctrine\DBAL\Schema\Schema; */ class Version20160624203903 extends AbstractMigration { - /** * @return string */ diff --git a/Tests/Functional/SequenceTest.php b/Tests/Functional/SequenceTest.php index a4ec07a..7913837 100644 --- a/Tests/Functional/SequenceTest.php +++ b/Tests/Functional/SequenceTest.php @@ -25,7 +25,7 @@ class SequenceTest extends FunctionalTestCase $pIds = []; for ($i = 0; $i < 10; $i++) { - $pId = pcntl_fork(); + $pId = \pcntl_fork(); if ($pId) { $pIds[] = $pId; } else { @@ -39,7 +39,7 @@ class SequenceTest extends FunctionalTestCase foreach ($pIds as $pId) { $status = 0; - pcntl_waitpid($pId, $status); + \pcntl_waitpid($pId, $status); } $this->assertEquals(101, $sequenceGenerator->getLastNumberFor($sequenceGenerator));