RUN phpcbf

This commit is contained in:
Ferdinand Kuhl 2022-04-30 21:38:36 +02:00
parent 3ee24e5381
commit ab6ef4ba48
6 changed files with 11 additions and 14 deletions

View file

@ -14,8 +14,8 @@ use Neos\Flow\Cli\CommandController;
class SequenceCommandController extends CommandController
{
/**
* @var SequenceGenerator
* @Flow\Inject
* @var SequenceGenerator
*/
protected $sequenceGenerator;

View file

@ -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;
}

View file

@ -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) {

View file

@ -10,7 +10,6 @@ use Doctrine\DBAL\Schema\Schema;
*/
class Version20140505093853 extends AbstractMigration
{
/**
* @return string
*/

View file

@ -10,7 +10,6 @@ use Doctrine\DBAL\Schema\Schema;
*/
class Version20160624203903 extends AbstractMigration
{
/**
* @return string
*/

View file

@ -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));