More reformatting
This commit is contained in:
parent
33993fba2c
commit
7b58fcadfe
@ -1,12 +1,12 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
return [
|
||||
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
|
||||
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
|
||||
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
|
||||
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
|
||||
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
|
||||
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
||||
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
|
||||
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
|
||||
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => TRUE],
|
||||
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => TRUE],
|
||||
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => TRUE],
|
||||
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => TRUE],
|
||||
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => TRUE, 'test' => TRUE],
|
||||
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => TRUE],
|
||||
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => TRUE],
|
||||
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => TRUE],
|
||||
];
|
||||
|
@ -17,11 +17,11 @@ if ($_SERVER['APP_DEBUG']) {
|
||||
Debug::enable();
|
||||
}
|
||||
|
||||
if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {
|
||||
if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? FALSE) {
|
||||
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
|
||||
}
|
||||
|
||||
if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {
|
||||
if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? FALSE) {
|
||||
Request::setTrustedHosts([$trustedHosts]);
|
||||
}
|
||||
|
||||
|
@ -9,9 +9,7 @@ use Doctrine\Persistence\ManagerRegistry;
|
||||
use LogicException;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\Form\FormInterface;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response};
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
/**
|
||||
@ -37,7 +35,7 @@ class CameraController extends AbstractController
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
$receivedItems = $em->getRepository(self::ENTITY)->findBy([
|
||||
'received' => true,
|
||||
'received' => TRUE,
|
||||
], [
|
||||
'isWorking' => 'ASC',
|
||||
'brand' => 'ASC',
|
||||
@ -45,7 +43,7 @@ class CameraController extends AbstractController
|
||||
'model' => 'ASC',
|
||||
]);
|
||||
$newItems = $em->getRepository(self::ENTITY)->findBy([
|
||||
'received' => false,
|
||||
'received' => FALSE,
|
||||
], [
|
||||
'brand' => 'ASC',
|
||||
'mount' => 'ASC',
|
||||
|
@ -7,9 +7,7 @@ use App\Form\CameraTypeType;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\Form\FormInterface;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response};
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
#[Route(path: 'camera-type')]
|
||||
|
@ -3,8 +3,7 @@
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\{Request, Response};
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class DefaultController extends AbstractController
|
||||
|
@ -9,9 +9,7 @@ use Doctrine\Persistence\ManagerRegistry;
|
||||
use LogicException;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\Form\FormInterface;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response};
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
/**
|
||||
|
@ -7,9 +7,7 @@ use App\Form\FlashType;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\Form\FormInterface;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response};
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
/**
|
||||
|
@ -4,9 +4,7 @@ namespace App\Controller;
|
||||
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
use Symfony\Component\Form\FormInterface;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response};
|
||||
|
||||
trait FormControllerTrait
|
||||
{
|
||||
|
@ -7,9 +7,7 @@ use App\Form\LensesType;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\Form\FormInterface;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response};
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
/**
|
||||
@ -35,7 +33,7 @@ class LensesController extends AbstractController
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
$receivedItems = $em->getRepository(self::ENTITY)->findBy([
|
||||
'received' => true,
|
||||
'received' => TRUE,
|
||||
], [
|
||||
'brand' => 'ASC',
|
||||
'productLine' => 'ASC',
|
||||
@ -44,7 +42,7 @@ class LensesController extends AbstractController
|
||||
'maxFStop' => 'ASC',
|
||||
]);
|
||||
$newItems = $em->getRepository(self::ENTITY)->findBy([
|
||||
'received' => false,
|
||||
'received' => FALSE,
|
||||
], [
|
||||
'brand' => 'ASC',
|
||||
'productLine' => 'ASC',
|
||||
|
@ -9,9 +9,7 @@ use Doctrine\Persistence\ManagerRegistry;
|
||||
use LogicException;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\Form\FormInterface;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response};
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use UnexpectedValueException;
|
||||
|
||||
|
@ -6,9 +6,7 @@ use App\Entity\PreviouslyOwnedFlash;
|
||||
use App\Form\PreviouslyOwnedFlashType;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response};
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
/**
|
||||
|
@ -6,9 +6,7 @@ use App\Entity\PreviouslyOwnedLenses;
|
||||
use App\Form\PreviouslyOwnedLensesType;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response};
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
#[Route(path: 'previously-owned-lens')]
|
||||
|
@ -11,7 +11,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
#[ORM\Entity]
|
||||
class BatteryType
|
||||
{
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
|
||||
private int $id;
|
||||
|
@ -15,7 +15,7 @@ class Camera
|
||||
{
|
||||
use CameraTrait;
|
||||
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
|
||||
#[ORM\SequenceGenerator(sequenceName: 'camera__id_seq', allocationSize: 1, initialValue: 1)]
|
||||
|
@ -14,51 +14,51 @@ trait CameraTrait
|
||||
use PurchasePriceTrait;
|
||||
|
||||
#[ORM\ManyToOne(targetEntity: 'CameraType')]
|
||||
#[ORM\JoinColumn(name: 'type_id', referencedColumnName: 'id', nullable: false)]
|
||||
#[ORM\JoinColumn(name: 'type_id', referencedColumnName: 'id', nullable: FALSE)]
|
||||
private readonly CameraType $type;
|
||||
|
||||
#[ORM\Column(name: 'brand', type: 'string', length: 64, nullable: false)]
|
||||
#[ORM\Column(name: 'brand', type: 'string', length: 64, nullable: FALSE)]
|
||||
private readonly string $brand;
|
||||
|
||||
#[ORM\Column(name: 'mount', type: 'string', length: 32, nullable: false)]
|
||||
#[ORM\Column(name: 'mount', type: 'string', length: 32, nullable: FALSE)]
|
||||
private readonly string $mount;
|
||||
|
||||
#[ORM\Column(name: 'model', type: 'string', length: 255, nullable: false)]
|
||||
#[ORM\Column(name: 'model', type: 'string', length: 255, nullable: FALSE)]
|
||||
private readonly string $model;
|
||||
|
||||
#[ORM\Column(name: 'is_digital', type: 'boolean', nullable: false)]
|
||||
#[ORM\Column(name: 'is_digital', type: 'boolean', nullable: FALSE)]
|
||||
private readonly bool $isDigital;
|
||||
|
||||
#[ORM\Column(name: 'crop_factor', type: 'decimal', precision: 10, scale: 0, nullable: false)]
|
||||
#[ORM\Column(name: 'crop_factor', type: 'decimal', precision: 10, scale: 0, nullable: FALSE)]
|
||||
private string $cropFactor = '1.0';
|
||||
|
||||
#[ORM\Column(name: 'is_working', type: 'boolean', nullable: false)]
|
||||
#[ORM\Column(name: 'is_working', type: 'boolean', nullable: FALSE)]
|
||||
private readonly bool $isWorking;
|
||||
|
||||
#[ORM\Column(name: 'notes', type: 'text', nullable: true)]
|
||||
#[ORM\Column(name: 'notes', type: 'text', nullable: TRUE)]
|
||||
private readonly ?string $notes;
|
||||
|
||||
#[ORM\Column(name: 'serial', type: 'string', length: 20, nullable: false)]
|
||||
#[ORM\Column(name: 'serial', type: 'string', length: 20, nullable: FALSE)]
|
||||
private readonly string $serial;
|
||||
|
||||
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: false)]
|
||||
private bool $formerlyOwned = false;
|
||||
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: FALSE)]
|
||||
private bool $formerlyOwned = FALSE;
|
||||
|
||||
#[ORM\Column(name: 'battery_type', type: 'string', nullable: true)]
|
||||
#[ORM\Column(name: 'battery_type', type: 'string', nullable: TRUE)]
|
||||
private readonly ?string $batteryType;
|
||||
|
||||
#[ORM\Column(name: 'film_format', type: 'string', nullable: true)]
|
||||
#[ORM\Column(name: 'film_format', type: 'string', nullable: TRUE)]
|
||||
private ?string $filmFormat = '135';
|
||||
|
||||
#[ORM\Column(name: 'received', type: 'boolean', nullable: true)]
|
||||
private ?bool $received = false;
|
||||
#[ORM\Column(name: 'received', type: 'boolean', nullable: TRUE)]
|
||||
private ?bool $received = FALSE;
|
||||
|
||||
public function getId(): int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function setType(?CameraType $type = null): self
|
||||
public function setType(?CameraType $type = NULL): self
|
||||
{
|
||||
$this->type = $type;
|
||||
|
||||
|
@ -12,17 +12,17 @@ use Stringable;
|
||||
#[ORM\Entity]
|
||||
class CameraType implements Stringable
|
||||
{
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
|
||||
#[ORM\SequenceGenerator(sequenceName: 'camera.camera_type_id_seq', allocationSize: 1, initialValue: 1)]
|
||||
private int $id;
|
||||
|
||||
#[ORM\Column(name: 'type', type: 'string', length: 255, nullable: false)]
|
||||
#[ORM\Column(name: 'type', type: 'string', length: 255, nullable: FALSE)]
|
||||
private string $type;
|
||||
|
||||
#[ORM\Column(name: 'description', type: 'text', nullable: true)]
|
||||
private ?string $description = null;
|
||||
#[ORM\Column(name: 'description', type: 'text', nullable: TRUE)]
|
||||
private ?string $description = NULL;
|
||||
|
||||
/**
|
||||
* Value for serialization
|
||||
|
@ -12,48 +12,48 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
class Film
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
|
||||
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
|
||||
private int $id;
|
||||
|
||||
#[ORM\Column(name: 'brand', type: 'string', nullable: false)]
|
||||
#[ORM\Column(name: 'brand', type: 'string', nullable: FALSE)]
|
||||
private string $brand;
|
||||
|
||||
#[ORM\Column(name: 'product_line', type: 'string', nullable: true)]
|
||||
private ?string $productLine = null;
|
||||
#[ORM\Column(name: 'product_line', type: 'string', nullable: TRUE)]
|
||||
private ?string $productLine = NULL;
|
||||
|
||||
#[ORM\Column(name: 'film_name', type: 'string', nullable: false)]
|
||||
#[ORM\Column(name: 'film_name', type: 'string', nullable: FALSE)]
|
||||
private string $filmName;
|
||||
|
||||
#[ORM\Column(name: 'film_alias', type: 'string', nullable: true)]
|
||||
private ?string $filmAlias = null;
|
||||
#[ORM\Column(name: 'film_alias', type: 'string', nullable: TRUE)]
|
||||
private ?string $filmAlias = NULL;
|
||||
|
||||
#[ORM\Column(name: 'film_speed_asa', type: 'integer', nullable: false)]
|
||||
#[ORM\Column(name: 'film_speed_asa', type: 'integer', nullable: FALSE)]
|
||||
private int $filmSpeedAsa;
|
||||
|
||||
#[ORM\Column(name: 'film_speed_din', type: 'integer', nullable: false)]
|
||||
#[ORM\Column(name: 'film_speed_din', type: 'integer', nullable: FALSE)]
|
||||
private int $filmSpeedDin;
|
||||
|
||||
#[ORM\Column(name: 'film_format', type: 'string', nullable: false)]
|
||||
#[ORM\Column(name: 'film_format', type: 'string', nullable: FALSE)]
|
||||
private string $filmFormat;
|
||||
|
||||
#[ORM\Column(name: 'film_base', type: 'string', nullable: false, options: ['default' => 'Cellulose Triacetate'])]
|
||||
#[ORM\Column(name: 'film_base', type: 'string', nullable: FALSE, options: ['default' => 'Cellulose Triacetate'])]
|
||||
private string $filmBase = 'Cellulose Triacetate';
|
||||
|
||||
#[ORM\Column(name: 'unused_rolls', type: 'integer', nullable: false, options: ['default' => 0])]
|
||||
#[ORM\Column(name: 'unused_rolls', type: 'integer', nullable: FALSE, options: ['default' => 0])]
|
||||
private int $unusedRolls = 0;
|
||||
|
||||
#[ORM\Column(name: 'rolls_in_camera', type: 'integer', nullable: false, options: ['default' => 0])]
|
||||
#[ORM\Column(name: 'rolls_in_camera', type: 'integer', nullable: FALSE, options: ['default' => 0])]
|
||||
private int $rollsInCamera = 0;
|
||||
|
||||
#[ORM\Column(name: 'developed_rolls', type: 'integer', nullable: false, options: ['default' => 0])]
|
||||
#[ORM\Column(name: 'developed_rolls', type: 'integer', nullable: FALSE, options: ['default' => 0])]
|
||||
private int $developedRolls = 0;
|
||||
|
||||
#[ORM\Column(name: 'chemistry', type: 'string', nullable: false, options: ['default' => 'C-41'])]
|
||||
#[ORM\Column(name: 'chemistry', type: 'string', nullable: FALSE, options: ['default' => 'C-41'])]
|
||||
private string $chemistry = 'C-41';
|
||||
|
||||
#[ORM\Column(name: 'notes', type: 'text', nullable: true)]
|
||||
private ?string $notes = null;
|
||||
#[ORM\Column(name: 'notes', type: 'text', nullable: TRUE)]
|
||||
private ?string $notes = NULL;
|
||||
|
||||
public function getId(): int
|
||||
{
|
||||
|
@ -13,15 +13,15 @@ class Flash
|
||||
{
|
||||
use FlashTrait;
|
||||
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
|
||||
#[ORM\SequenceGenerator(sequenceName: 'camera.flash_id_seq', allocationSize: 1, initialValue: 1)]
|
||||
private int $id;
|
||||
|
||||
#[ORM\Column(name: 'received', type: 'boolean', nullable: false, options: ['default' => false])]
|
||||
private bool $received = false;
|
||||
#[ORM\Column(name: 'received', type: 'boolean', nullable: FALSE, options: ['default' => FALSE])]
|
||||
private bool $received = FALSE;
|
||||
|
||||
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: false, options: ['default' => false])]
|
||||
private bool $formerlyOwned = false;
|
||||
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: FALSE, options: ['default' => FALSE])]
|
||||
private bool $formerlyOwned = FALSE;
|
||||
}
|
||||
|
@ -8,37 +8,37 @@ trait FlashTrait
|
||||
{
|
||||
use PurchasePriceTrait;
|
||||
|
||||
#[ORM\Column(name: 'brand', type: 'string', nullable: false)]
|
||||
#[ORM\Column(name: 'brand', type: 'string', nullable: FALSE)]
|
||||
private readonly string $brand;
|
||||
|
||||
#[ORM\Column(name: 'model', type: 'string', nullable: false)]
|
||||
#[ORM\Column(name: 'model', type: 'string', nullable: FALSE)]
|
||||
private readonly string $model;
|
||||
|
||||
#[ORM\Column(name: 'is_auto_flash', type: 'boolean', nullable: false)]
|
||||
private bool $isAutoFlash = false;
|
||||
#[ORM\Column(name: 'is_auto_flash', type: 'boolean', nullable: FALSE)]
|
||||
private bool $isAutoFlash = FALSE;
|
||||
|
||||
#[ORM\Column(name: 'is_ttl', type: 'boolean', nullable: false)]
|
||||
private bool $isTtl = false;
|
||||
#[ORM\Column(name: 'is_ttl', type: 'boolean', nullable: FALSE)]
|
||||
private bool $isTtl = FALSE;
|
||||
|
||||
#[ORM\Column(name: 'ttl_type', type: 'string', nullable: false)]
|
||||
#[ORM\Column(name: 'ttl_type', type: 'string', nullable: FALSE)]
|
||||
private string $ttlType = 'N / A';
|
||||
|
||||
#[ORM\Column(name: 'is_p_ttl', type: 'boolean', nullable: false)]
|
||||
private bool $isPTtl = false;
|
||||
#[ORM\Column(name: 'is_p_ttl', type: 'boolean', nullable: FALSE)]
|
||||
private bool $isPTtl = FALSE;
|
||||
|
||||
#[ORM\Column(name: 'p_ttl_type', type: 'string', nullable: false)]
|
||||
#[ORM\Column(name: 'p_ttl_type', type: 'string', nullable: FALSE)]
|
||||
private string $pTtlType = 'N / A';
|
||||
|
||||
#[ORM\Column(name: 'guide_number', type: 'string', nullable: true)]
|
||||
#[ORM\Column(name: 'guide_number', type: 'string', nullable: TRUE)]
|
||||
private ?string $guideNumber = '';
|
||||
|
||||
#[ORM\Column(name: 'batteries', type: 'string', nullable: false)]
|
||||
#[ORM\Column(name: 'batteries', type: 'string', nullable: FALSE)]
|
||||
private string $batteries = '4x AA';
|
||||
|
||||
#[ORM\Column(name: 'notes', type: 'text', nullable: true)]
|
||||
#[ORM\Column(name: 'notes', type: 'text', nullable: TRUE)]
|
||||
private readonly ?string $notes;
|
||||
|
||||
#[ORM\Column(name: 'serial', type: 'string', nullable: true)]
|
||||
#[ORM\Column(name: 'serial', type: 'string', nullable: TRUE)]
|
||||
private readonly ?string $serial;
|
||||
|
||||
public function getId(): int
|
||||
|
@ -8,58 +8,58 @@ trait LensTrait
|
||||
{
|
||||
use PurchasePriceTrait;
|
||||
|
||||
#[ORM\Column(name: 'brand', type: 'string', length: 64, nullable: true)]
|
||||
#[ORM\Column(name: 'brand', type: 'string', length: 64, nullable: TRUE)]
|
||||
private readonly ?string $brand;
|
||||
|
||||
#[ORM\Column(name: 'coatings', type: 'string', length: 64, nullable: true)]
|
||||
#[ORM\Column(name: 'coatings', type: 'string', length: 64, nullable: TRUE)]
|
||||
private readonly ?string $coatings;
|
||||
|
||||
#[ORM\Column(name: 'product_line', type: 'string', length: 64, nullable: true)]
|
||||
#[ORM\Column(name: 'product_line', type: 'string', length: 64, nullable: TRUE)]
|
||||
private readonly ?string $productLine;
|
||||
|
||||
#[ORM\Column(name: 'model', type: 'string', length: 64, nullable: true)]
|
||||
#[ORM\Column(name: 'model', type: 'string', length: 64, nullable: TRUE)]
|
||||
private readonly ?string $model;
|
||||
|
||||
#[ORM\Column(name: 'min_f_stop', type: 'string', length: 10, nullable: true)]
|
||||
#[ORM\Column(name: 'min_f_stop', type: 'string', length: 10, nullable: TRUE)]
|
||||
private readonly ?string $minFStop;
|
||||
|
||||
#[ORM\Column(name: 'max_f_stop', type: 'float', precision: 10, scale: 0, nullable: true)]
|
||||
#[ORM\Column(name: 'max_f_stop', type: 'float', precision: 10, scale: 0, nullable: TRUE)]
|
||||
private readonly ?float $maxFStop;
|
||||
|
||||
#[ORM\Column(name: 'min_focal_length', type: 'integer', nullable: true)]
|
||||
#[ORM\Column(name: 'min_focal_length', type: 'integer', nullable: TRUE)]
|
||||
private readonly ?int $minFocalLength;
|
||||
|
||||
#[ORM\Column(name: 'max_focal_length', type: 'integer', nullable: true)]
|
||||
#[ORM\Column(name: 'max_focal_length', type: 'integer', nullable: TRUE)]
|
||||
private readonly ?int $maxFocalLength;
|
||||
|
||||
#[ORM\Column(name: 'serial', type: 'string', length: 10, nullable: true)]
|
||||
#[ORM\Column(name: 'serial', type: 'string', length: 10, nullable: TRUE)]
|
||||
private readonly ?string $serial;
|
||||
|
||||
#[ORM\Column(name: 'notes', type: 'text', nullable: true)]
|
||||
#[ORM\Column(name: 'notes', type: 'text', nullable: TRUE)]
|
||||
private readonly ?string $notes;
|
||||
|
||||
#[ORM\Column(name: 'image_size', type: 'string', nullable: false, options: ['default' => '35mm'])]
|
||||
#[ORM\Column(name: 'image_size', type: 'string', nullable: FALSE, options: ['default' => '35mm'])]
|
||||
private string $imageSize = '35mm';
|
||||
|
||||
#[ORM\Column(name: 'mount', type: 'string', length: 40, nullable: true)]
|
||||
#[ORM\Column(name: 'mount', type: 'string', length: 40, nullable: TRUE)]
|
||||
private readonly ?string $mount;
|
||||
|
||||
#[ORM\Column(name: 'front_filter_size', type: 'decimal', precision: 10, scale: 0, nullable: true)]
|
||||
#[ORM\Column(name: 'front_filter_size', type: 'decimal', precision: 10, scale: 0, nullable: TRUE)]
|
||||
private readonly ?string $frontFilterSize;
|
||||
|
||||
#[ORM\Column(name: 'rear_filter_size', type: 'decimal', precision: 10, scale: 0, nullable: true)]
|
||||
#[ORM\Column(name: 'rear_filter_size', type: 'decimal', precision: 10, scale: 0, nullable: TRUE)]
|
||||
private readonly ?string $rearFilterSize;
|
||||
|
||||
#[ORM\Column(name: 'is_teleconverter', type: 'boolean', nullable: false)]
|
||||
private bool $isTeleconverter = false;
|
||||
#[ORM\Column(name: 'is_teleconverter', type: 'boolean', nullable: FALSE)]
|
||||
private bool $isTeleconverter = FALSE;
|
||||
|
||||
#[ORM\Column(name: 'design_elements', type: 'smallint', nullable: true)]
|
||||
#[ORM\Column(name: 'design_elements', type: 'smallint', nullable: TRUE)]
|
||||
private readonly ?int $designElements;
|
||||
|
||||
#[ORM\Column(name: 'design_groups', type: 'smallint', nullable: true)]
|
||||
#[ORM\Column(name: 'design_groups', type: 'smallint', nullable: TRUE)]
|
||||
private readonly ?int $designGroups;
|
||||
|
||||
#[ORM\Column(name: 'aperture_blades', type: 'smallint', nullable: true)]
|
||||
#[ORM\Column(name: 'aperture_blades', type: 'smallint', nullable: TRUE)]
|
||||
private readonly ?int $apertureBlades;
|
||||
|
||||
/**
|
||||
|
@ -14,15 +14,15 @@ class Lenses
|
||||
{
|
||||
use LensTrait;
|
||||
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
|
||||
#[ORM\SequenceGenerator(sequenceName: 'camera.lenses_id_seq', allocationSize: 1, initialValue: 1)]
|
||||
private int $id;
|
||||
|
||||
#[ORM\Column(name: 'received', type: 'boolean', nullable: false)]
|
||||
private bool $received = false;
|
||||
#[ORM\Column(name: 'received', type: 'boolean', nullable: FALSE)]
|
||||
private bool $received = FALSE;
|
||||
|
||||
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: false)]
|
||||
private bool $formerlyOwned = false;
|
||||
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: FALSE)]
|
||||
private bool $formerlyOwned = FALSE;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ class PreviouslyOwnedCamera
|
||||
{
|
||||
use CameraTrait;
|
||||
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
|
||||
#[ORM\SequenceGenerator(sequenceName: 'prevously_owned_camera_id_seq', allocationSize: 1, initialValue: 1)]
|
||||
|
@ -13,14 +13,14 @@ class PreviouslyOwnedFlash
|
||||
{
|
||||
use FlashTrait;
|
||||
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
|
||||
private int $id;
|
||||
|
||||
#[ORM\Column(name: 'received', type: 'boolean', nullable: false, options: ['default' => true])]
|
||||
private bool $received = true;
|
||||
#[ORM\Column(name: 'received', type: 'boolean', nullable: FALSE, options: ['default' => TRUE])]
|
||||
private bool $received = TRUE;
|
||||
|
||||
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: false, options: ['default' => true])]
|
||||
private bool $formerlyOwned = true;
|
||||
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: FALSE, options: ['default' => TRUE])]
|
||||
private bool $formerlyOwned = TRUE;
|
||||
}
|
||||
|
@ -14,14 +14,14 @@ class PreviouslyOwnedLenses
|
||||
{
|
||||
use LensTrait;
|
||||
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
|
||||
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
|
||||
private int $id;
|
||||
|
||||
#[ORM\Column(name: 'received', type: 'boolean', nullable: false)]
|
||||
private bool $received = true;
|
||||
#[ORM\Column(name: 'received', type: 'boolean', nullable: FALSE)]
|
||||
private bool $received = TRUE;
|
||||
|
||||
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: false)]
|
||||
private bool $formerlyOwned = true;
|
||||
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: FALSE)]
|
||||
private bool $formerlyOwned = TRUE;
|
||||
}
|
||||
|
@ -6,8 +6,8 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
trait PurchasePriceTrait
|
||||
{
|
||||
#[ORM\Column(name: 'purchase_price', type: 'money', nullable: true)]
|
||||
private ?string $purchasePrice = null;
|
||||
#[ORM\Column(name: 'purchase_price', type: 'money', nullable: TRUE)]
|
||||
private ?string $purchasePrice = NULL;
|
||||
|
||||
public function setPurchasePrice(?string $purchasePrice): self
|
||||
{
|
||||
|
@ -3,10 +3,8 @@
|
||||
namespace App\Form;
|
||||
|
||||
use App\Entity\Camera;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\MoneyType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Form\Extension\Core\Type\{ChoiceType, MoneyType};
|
||||
use Symfony\Component\Form\{AbstractType, FormBuilderInterface};
|
||||
use Symfony\Component\OptionsResolver\Exception\AccessException;
|
||||
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
@ -3,8 +3,7 @@
|
||||
namespace App\Form;
|
||||
|
||||
use App\Entity\CameraType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Form\{AbstractType, FormBuilderInterface};
|
||||
use Symfony\Component\OptionsResolver\Exception\AccessException;
|
||||
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
@ -3,9 +3,8 @@
|
||||
namespace App\Form;
|
||||
|
||||
use App\Entity\Film;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Form\{AbstractType, FormBuilderInterface};
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
class FilmType extends AbstractType
|
||||
|
@ -3,8 +3,7 @@
|
||||
namespace App\Form;
|
||||
|
||||
use App\Entity\Flash;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Form\{AbstractType, FormBuilderInterface};
|
||||
use Symfony\Component\OptionsResolver\Exception\AccessException;
|
||||
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
@ -3,9 +3,8 @@
|
||||
namespace App\Form;
|
||||
|
||||
use App\Entity\Lenses;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Form\{AbstractType, FormBuilderInterface};
|
||||
use Symfony\Component\OptionsResolver\Exception\AccessException;
|
||||
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
@ -3,8 +3,7 @@
|
||||
namespace App\Form;
|
||||
|
||||
use App\Entity\PreviouslyOwnedCamera;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Form\{AbstractType, FormBuilderInterface};
|
||||
use Symfony\Component\OptionsResolver\Exception\AccessException;
|
||||
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
@ -3,8 +3,7 @@
|
||||
namespace App\Form;
|
||||
|
||||
use App\Entity\PreviouslyOwnedFlash;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Form\{AbstractType, FormBuilderInterface};
|
||||
use Symfony\Component\OptionsResolver\Exception\AccessException;
|
||||
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
@ -3,8 +3,7 @@
|
||||
namespace App\Form;
|
||||
|
||||
use App\Entity\PreviouslyOwnedLenses;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Form\{AbstractType, FormBuilderInterface};
|
||||
use Symfony\Component\OptionsResolver\Exception\AccessException;
|
||||
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
@ -25,8 +25,8 @@ trait AcquireTrait
|
||||
$propertyName = $property->getName();
|
||||
if ($new->hasProperty($propertyName)) {
|
||||
$newProperty = $new->getProperty($propertyName);
|
||||
$newProperty->setAccessible(true);
|
||||
$property->setAccessible(true);
|
||||
$newProperty->setAccessible(TRUE);
|
||||
$property->setAccessible(TRUE);
|
||||
$newProperty->setValue($newRecord, $property->getValue($currentRecord));
|
||||
}
|
||||
}
|
||||
|
@ -2,10 +2,8 @@
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\Camera;
|
||||
use App\Entity\PreviouslyOwnedCamera;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
use Doctrine\ORM\ORMInvalidArgumentException;
|
||||
use App\Entity\{Camera, PreviouslyOwnedCamera};
|
||||
use Doctrine\ORM\{EntityRepository, ORMInvalidArgumentException};
|
||||
|
||||
class CameraRepository extends EntityRepository
|
||||
{
|
||||
@ -16,8 +14,8 @@ class CameraRepository extends EntityRepository
|
||||
*/
|
||||
public function deacquire(Camera $currentRecord): void
|
||||
{
|
||||
$currentRecord->setFormerlyOwned(true)
|
||||
->setReceived(true);
|
||||
$currentRecord->setFormerlyOwned(TRUE)
|
||||
->setReceived(TRUE);
|
||||
|
||||
$this->moveRecord($currentRecord, new PreviouslyOwnedCamera());
|
||||
}
|
||||
@ -27,7 +25,7 @@ class CameraRepository extends EntityRepository
|
||||
*/
|
||||
public function reacquire(PreviouslyOwnedCamera $currentRecord): void
|
||||
{
|
||||
$currentRecord->setFormerlyOwned(false);
|
||||
$currentRecord->setFormerlyOwned(FALSE);
|
||||
|
||||
$this->moveRecord($currentRecord, new Camera());
|
||||
}
|
||||
|
@ -2,10 +2,8 @@
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\Flash;
|
||||
use App\Entity\PreviouslyOwnedFlash;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
use Doctrine\ORM\ORMInvalidArgumentException;
|
||||
use App\Entity\{Flash, PreviouslyOwnedFlash};
|
||||
use Doctrine\ORM\{EntityRepository, ORMInvalidArgumentException};
|
||||
|
||||
class FlashRepository extends EntityRepository
|
||||
{
|
||||
@ -16,8 +14,8 @@ class FlashRepository extends EntityRepository
|
||||
*/
|
||||
public function deacquire(Flash $currentRecord): void
|
||||
{
|
||||
$currentRecord->setFormerlyOwned(true)
|
||||
->setReceived(true);
|
||||
$currentRecord->setFormerlyOwned(TRUE)
|
||||
->setReceived(TRUE);
|
||||
|
||||
$this->moveRecord($currentRecord, new PreviouslyOwnedFlash());
|
||||
}
|
||||
@ -27,7 +25,7 @@ class FlashRepository extends EntityRepository
|
||||
*/
|
||||
public function reacquire(PreviouslyOwnedFlash $currentRecord): void
|
||||
{
|
||||
$currentRecord->setFormerlyOwned(false);
|
||||
$currentRecord->setFormerlyOwned(FALSE);
|
||||
|
||||
$this->moveRecord($currentRecord, new Flash());
|
||||
}
|
||||
|
@ -2,8 +2,7 @@
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\Lenses;
|
||||
use App\Entity\PreviouslyOwnedLenses;
|
||||
use App\Entity\{Lenses, PreviouslyOwnedLenses};
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
|
||||
class LensesRepository extends EntityRepository
|
||||
@ -12,15 +11,15 @@ class LensesRepository extends EntityRepository
|
||||
|
||||
public function deacquire(Lenses $currentRecord): void
|
||||
{
|
||||
$currentRecord->setFormerlyOwned(true)
|
||||
->setReceived(true);
|
||||
$currentRecord->setFormerlyOwned(TRUE)
|
||||
->setReceived(TRUE);
|
||||
|
||||
$this->moveRecord($currentRecord, new PreviouslyOwnedLenses());
|
||||
}
|
||||
|
||||
public function reacquire(PreviouslyOwnedLenses $currentRecord): void
|
||||
{
|
||||
$currentRecord->setFormerlyOwned(false);
|
||||
$currentRecord->setFormerlyOwned(FALSE);
|
||||
|
||||
$this->moveRecord($currentRecord, new Lenses());
|
||||
}
|
||||
|
@ -26,6 +26,6 @@ class MoneyType extends Type
|
||||
|
||||
public function requiresSQLCommentHint(AbstractPlatform $platform): bool
|
||||
{
|
||||
return true;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,6 @@ return static function (ContainerConfigurator $config): void {
|
||||
DeclareStrictTypesFixer::class,
|
||||
]);
|
||||
|
||||
$parameters->set(Option::PARALLEL, true);
|
||||
$parameters->set(Option::PARALLEL, TRUE);
|
||||
$parameters->set(Option::PATHS, [__DIR__ . '/../src', __DIR__]);
|
||||
};
|
||||
|
@ -2,42 +2,28 @@
|
||||
|
||||
use Rector\CodeQuality\Rector\BooleanNot\SimplifyDeMorganBinaryRector;
|
||||
use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector;
|
||||
use Rector\CodeQuality\Rector\For_\ForRepeatedCountToOwnVariableRector;
|
||||
use Rector\CodeQuality\Rector\For_\ForToForeachRector;
|
||||
use Rector\CodeQuality\Rector\If_\ConsecutiveNullCompareReturnsToNullCoalesceQueueRector;
|
||||
use Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector;
|
||||
use Rector\CodeQuality\Rector\If_\SimplifyIfReturnBoolRector;
|
||||
use Rector\CodeQuality\Rector\Ternary\SimplifyDuplicatedTernaryRector;
|
||||
use Rector\CodeQuality\Rector\Ternary\SimplifyTautologyTernaryRector;
|
||||
use Rector\CodeQuality\Rector\Ternary\SwitchNegatedTernaryRector;
|
||||
use Rector\CodeQuality\Rector\For_\{ForRepeatedCountToOwnVariableRector, ForToForeachRector};
|
||||
use Rector\CodeQuality\Rector\If_\{ConsecutiveNullCompareReturnsToNullCoalesceQueueRector, SimplifyIfElseToTernaryRector, SimplifyIfReturnBoolRector};
|
||||
use Rector\CodeQuality\Rector\Ternary\{SimplifyDuplicatedTernaryRector, SimplifyTautologyTernaryRector, SwitchNegatedTernaryRector};
|
||||
use Rector\CodingStyle\Rector\Class_\AddArrayDefaultToArrayPropertyRector;
|
||||
use Rector\CodingStyle\Rector\ClassConst\RemoveFinalFromConstRector;
|
||||
use Rector\CodingStyle\Rector\ClassMethod\NewlineBeforeNewAssignSetRector;
|
||||
use Rector\CodingStyle\Rector\Encapsed\WrapEncapsedVariableInCurlyBracesRector;
|
||||
use Rector\CodingStyle\Rector\FuncCall\CallUserFuncArrayToVariadicRector;
|
||||
use Rector\CodingStyle\Rector\FuncCall\CallUserFuncToMethodCallRector;
|
||||
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
|
||||
use Rector\CodingStyle\Rector\FuncCall\{CallUserFuncArrayToVariadicRector, CallUserFuncToMethodCallRector, CountArrayToEmptyArrayComparisonRector};
|
||||
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector;
|
||||
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
|
||||
use Rector\DeadCode\Rector\ClassMethod\{RemoveUselessParamTagRector, RemoveUselessReturnTagRector};
|
||||
use Rector\DeadCode\Rector\Foreach_\RemoveUnusedForeachKeyRector;
|
||||
use Rector\DeadCode\Rector\Property\RemoveUselessVarTagRector;
|
||||
use Rector\DeadCode\Rector\Switch_\RemoveDuplicatedCaseInSwitchRector;
|
||||
use Rector\Doctrine\Set\DoctrineSetList;
|
||||
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
|
||||
use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector;
|
||||
use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector;
|
||||
use Rector\EarlyReturn\Rector\If_\{ChangeIfElseValueAssignToEarlyReturnRector, RemoveAlwaysElseRector};
|
||||
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
|
||||
use Rector\Restoration\Rector\Property\MakeTypedPropertyNullableIfCheckedRector;
|
||||
use Rector\Set\ValueObject\LevelSetList;
|
||||
use Rector\Symfony\Set\SymfonyLevelSetList;
|
||||
use Rector\Symfony\Set\SymfonySetList;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayParamDocTypeRector;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\ParamTypeByMethodCallTypeRector;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\ParamTypeByParentCallTypeRector;
|
||||
use Rector\Symfony\Set\{SymfonyLevelSetList, SymfonySetList};
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\{AddArrayParamDocTypeRector, AddArrayReturnDocTypeRector, AddMethodCallBasedStrictParamTypeRector, ParamTypeByMethodCallTypeRector, ParamTypeByParentCallTypeRector};
|
||||
use Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector;
|
||||
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
@ -46,8 +32,8 @@ require_once __DIR__ . '/common.inc.php';
|
||||
|
||||
return static function (ContainerConfigurator $config): void {
|
||||
$parameters = $config->parameters();
|
||||
$parameters->set(Option::AUTO_IMPORT_NAMES, true);
|
||||
$parameters->set(Option::IMPORT_SHORT_CLASSES, true);
|
||||
$parameters->set(Option::AUTO_IMPORT_NAMES, TRUE);
|
||||
$parameters->set(Option::IMPORT_SHORT_CLASSES, TRUE);
|
||||
$parameters->set(Option::SKIP, [
|
||||
ReadOnlyPropertyRector::class,
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user