Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Backend/Controllers/DescriptionAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

class DescriptionAdmin extends IndexAdmin
{
private const SETTING_PREFIX = 'sviat__invoice_payment__';
private const string SETTING_PREFIX = 'sviat__invoice_payment__';

private const INVOICE_SETTING_KEYS = [
private const array INVOICE_SETTING_KEYS = [
'supplier_type',
'supplier_name',
'supplier_bank_account',
Expand Down
2 changes: 1 addition & 1 deletion Controllers/CompanyByEdrpouController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class CompanyByEdrpouController extends AbstractController
{
private const API_URL = 'https://adm.tools/action/gov/api/?egrpou=%s';
private const string API_URL = 'https://adm.tools/action/gov/api/?egrpou=%s';

public function getCompany()
{
Expand Down
2 changes: 1 addition & 1 deletion Controllers/InvoicePrintController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class InvoicePrintController extends AbstractController
{
private const MODULE_NAME = 'Sviat/InvoicePayment';
private const string MODULE_NAME = 'Sviat/InvoicePayment';

public function render(
OrdersEntity $ordersEntity,
Expand Down
2 changes: 1 addition & 1 deletion Extenders/BackendExtender.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class BackendExtender implements ExtensionInterface
{
private const MODULE_NAME = 'Sviat/InvoicePayment';
private const string MODULE_NAME = 'Sviat/InvoicePayment';

private EntityFactory $entityFactory;
private Design $design;
Expand Down
2 changes: 1 addition & 1 deletion Extenders/FrontExtender.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class FrontExtender implements ExtensionInterface
{
private const MODULE_NAME = 'Sviat/InvoicePayment';
private const string MODULE_NAME = 'Sviat/InvoicePayment';

private EntityFactory $entityFactory;
private Request $request;
Expand Down
10 changes: 5 additions & 5 deletions Init/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public function install()
$this->setBackendMainController('DescriptionAdmin');

$this->migrateEntityTable(InvoicePaymentDataEntity::class, [
(new EntityField('id'))->setIndexPrimaryKey()->setTypeInt(11, false)->setAutoIncrement(),
(new EntityField('order_id'))->setTypeInt(11)->setIndexUnique(),
(new EntityField('edrpou'))->setTypeVarchar(20),
(new EntityField('company_name'))->setTypeVarchar(500),
(new EntityField('paid'))->setTypeTinyInt(1, true),
new EntityField('id')->setIndexPrimaryKey()->setTypeInt(11, false)->setAutoIncrement(),
new EntityField('order_id')->setTypeInt(11)->setIndexUnique(),
new EntityField('edrpou')->setTypeVarchar(20),
new EntityField('company_name')->setTypeVarchar(500),
new EntityField('paid')->setTypeTinyInt(1, true),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion Init/module.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Okay": "4.5.3",
"version": "1.0.2",
"version": "1.0.3",
"moduleName": "Invoice Payment",
"vendor": {
"email": "devsviat@proton.me",
Expand Down
2 changes: 1 addition & 1 deletion PaymentForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class PaymentForm extends AbstractModule implements PaymentFormInterface
{
private const MODULE_NAME = 'Sviat/InvoicePayment';
private const string MODULE_NAME = 'Sviat/InvoicePayment';

private EntityFactory $entityFactory;

Expand Down
Loading