RUN phpcbf
This commit is contained in:
parent
3ee24e5381
commit
ab6ef4ba48
6 changed files with 11 additions and 14 deletions
|
@ -14,8 +14,8 @@ use Neos\Flow\Cli\CommandController;
|
|||
class SequenceCommandController extends CommandController
|
||||
{
|
||||
/**
|
||||
* @var SequenceGenerator
|
||||
* @Flow\Inject
|
||||
* @var SequenceGenerator
|
||||
*/
|
||||
protected $sequenceGenerator;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -10,7 +10,6 @@ use Doctrine\DBAL\Schema\Schema;
|
|||
*/
|
||||
class Version20140505093853 extends AbstractMigration
|
||||
{
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
|
|
@ -10,7 +10,6 @@ use Doctrine\DBAL\Schema\Schema;
|
|||
*/
|
||||
class Version20160624203903 extends AbstractMigration
|
||||
{
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue