diff --git a/Command/Traits/CommandOutputFormatterTrait.php b/Command/Traits/CommandOutputFormatterTrait.php index 9db1b4b..689f9e1 100644 --- a/Command/Traits/CommandOutputFormatterTrait.php +++ b/Command/Traits/CommandOutputFormatterTrait.php @@ -6,7 +6,7 @@ trait CommandOutputFormatterTrait { public function getMessage(string $level, string $message): string { - return sprintf("%s %s %s", date('Y-m-d H:i:s'), strtoupper($level), $message); + return sprintf('%s %s %s', date('Y-m-d H:i:s'), strtoupper($level), $message); } public function getInfoMessage(string $message): string @@ -18,4 +18,4 @@ trait CommandOutputFormatterTrait { return $this->getMessage('ERROR', $message); } -} \ No newline at end of file +} diff --git a/Command/UpdateModuleCommand.php b/Command/UpdateModuleCommand.php index e36be72..f2ce0fd 100644 --- a/Command/UpdateModuleCommand.php +++ b/Command/UpdateModuleCommand.php @@ -65,8 +65,7 @@ class UpdateModuleCommand extends Command } $accountId = $input->getArgument('accountId') - ? $input->getArgument('accountId') - : null; + ?: null; $accountQueryBuilder = $this->accountManager->getActiveQueryBuilder() ->andWhere('account.id > :lastId') diff --git a/Model/Request/RequestCalculate.php b/Model/Request/RequestCalculate.php index 46214f4..41d563d 100644 --- a/Model/Request/RequestCalculate.php +++ b/Model/Request/RequestCalculate.php @@ -80,7 +80,7 @@ class RequestCalculate /** * Дата доставки. * - * @var DateTime + * @var \DateTime * * @Serializer\Groups({"request", "calculate"}) * @Serializer\SerializedName("deliveryDate") diff --git a/Model/Request/RequestSave.php b/Model/Request/RequestSave.php index 6f698a0..b8fbd4f 100644 --- a/Model/Request/RequestSave.php +++ b/Model/Request/RequestSave.php @@ -2,8 +2,8 @@ namespace RetailCrm\DeliveryModuleBundle\Model\Request; -use RetailCrm\DeliveryModuleBundle\Model\Customer; use JMS\Serializer\Annotation as Serializer; +use RetailCrm\DeliveryModuleBundle\Model\Customer; use RetailCrm\DeliveryModuleBundle\Model\Manager; class RequestSave diff --git a/Model/RequestCalculate.php b/Model/RequestCalculate.php index 1f663ca..f0f715a 100644 --- a/Model/RequestCalculate.php +++ b/Model/RequestCalculate.php @@ -78,7 +78,7 @@ class RequestCalculate /** * Дата отгрузки. * - * @var DateTime + * @var \DateTime * * @Serializer\Groups({"request", "calculate"}) * @Serializer\SerializedName("shipmentDate") @@ -89,7 +89,7 @@ class RequestCalculate /** * Дата доставки. * - * @var DateTime + * @var \DateTime * * @Serializer\Groups({"request", "calculate"}) * @Serializer\SerializedName("deliveryDate") @@ -130,7 +130,6 @@ class RequestCalculate */ public $extraData; - /** * Склад отгрузки. * diff --git a/Model/Response/ResponseLoadDeliveryData.php b/Model/Response/ResponseLoadDeliveryData.php index 7c3b1c8..da14fae 100644 --- a/Model/Response/ResponseLoadDeliveryData.php +++ b/Model/Response/ResponseLoadDeliveryData.php @@ -2,9 +2,9 @@ namespace RetailCrm\DeliveryModuleBundle\Model\Response; +use JMS\Serializer\Annotation as Serializer; use RetailCrm\DeliveryModuleBundle\Model\DeliveryAddress; use RetailCrm\DeliveryModuleBundle\Model\StatusInfo; -use JMS\Serializer\Annotation as Serializer; class ResponseLoadDeliveryData { diff --git a/Model/StoreWorkTime.php b/Model/StoreWorkTime.php index b262967..b0cee11 100644 --- a/Model/StoreWorkTime.php +++ b/Model/StoreWorkTime.php @@ -68,4 +68,4 @@ class StoreWorkTime * @Serializer\Type("array") */ public $sunday; -} \ No newline at end of file +} diff --git a/Model/StoreWorkTimeItem.php b/Model/StoreWorkTimeItem.php index 80ebac8..0950266 100644 --- a/Model/StoreWorkTimeItem.php +++ b/Model/StoreWorkTimeItem.php @@ -41,4 +41,4 @@ class StoreWorkTimeItem * @Serializer\Type("string") */ public $lunchEndTime; -} \ No newline at end of file +}