phpcs fix

This commit is contained in:
Dennis Eichhorn 2020-01-26 12:27:56 +01:00
parent 0ed30bbcc3
commit 52e3add4bd
15 changed files with 52 additions and 51 deletions

View File

@ -16,10 +16,10 @@ namespace Modules\Exchange\Controller;
use Modules\Exchange\Models\InterfaceManagerMapper;
use Modules\Media\Models\UploadFile;
use phpOMS\Message\NotificationLevel;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
use Modules\Media\Models\UploadFile;
use phpOMS\System\File\Local\Directory;
/**

View File

@ -30,7 +30,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Module path.
*
* @var string
* @var string
* @since 1.0.0
*/
public const MODULE_PATH = __DIR__ . '/../';
@ -38,7 +38,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Module version.
*
* @var string
* @var string
* @since 1.0.0
*/
public const MODULE_VERSION = '1.0.0';
@ -46,7 +46,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Module name.
*
* @var string
* @var string
* @since 1.0.0
*/
public const MODULE_NAME = 'Exchange';
@ -54,7 +54,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Module id.
*
* @var int
* @var int
* @since 1.0.0
*/
public const MODULE_ID = 1007000000;
@ -62,7 +62,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Providing.
*
* @var string[]
* @var string[]
* @since 1.0.0
*/
protected static array $providing = [];
@ -70,7 +70,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Dependencies.
*
* @var string[]
* @var string[]
* @since 1.0.0
*/
protected static array $dependencies = [];

View File

@ -41,7 +41,7 @@ final class Importer extends ImporterAbstract
/**
* Database connection.
*
* @var ConnectionInterface
* @var ConnectionInterface
* @since 1.0.0
*/
private $remote = null;

View File

@ -29,7 +29,7 @@ final class GSDAddressMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static array $columns = [
@ -49,7 +49,7 @@ final class GSDAddressMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'KUNDENADRESSE';
@ -57,7 +57,7 @@ final class GSDAddressMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'row_create_time';
@ -65,7 +65,7 @@ final class GSDAddressMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'AdressRowId';

View File

@ -29,7 +29,7 @@ final class GSDArticleMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static array $columns = [
@ -45,7 +45,7 @@ final class GSDArticleMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'Artikel';
@ -53,7 +53,7 @@ final class GSDArticleMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'row_create_time';
@ -61,7 +61,7 @@ final class GSDArticleMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'row_id';

View File

@ -27,7 +27,7 @@ final class GSDCostCenter implements \JsonSerializable
/**
* ID.
*
* @var int
* @var int
* @since 1.0.0
*/
protected int $id = 0;
@ -35,7 +35,7 @@ final class GSDCostCenter implements \JsonSerializable
/**
* Creator.
*
* @var int
* @var int
* @since 1.0.0
*/
protected $createdBy = 0;
@ -43,7 +43,7 @@ final class GSDCostCenter implements \JsonSerializable
/**
* Created.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected ?\DateTime $createdAt = null;
@ -51,7 +51,7 @@ final class GSDCostCenter implements \JsonSerializable
/**
* Description.
*
* @var string
* @var string
* @since 1.0.0
*/
protected string $description = '';
@ -59,7 +59,7 @@ final class GSDCostCenter implements \JsonSerializable
/**
* Cost center.
*
* @var string
* @var string
* @since 1.0.0
*/
protected string $costCenter = '';

View File

@ -29,7 +29,7 @@ final class GSDCostCenterMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static array $columns = [
@ -43,7 +43,7 @@ final class GSDCostCenterMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'FiKostenstellen';
@ -51,7 +51,7 @@ final class GSDCostCenterMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'row_create_time';
@ -59,7 +59,7 @@ final class GSDCostCenterMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'ROW_ID';

View File

@ -27,7 +27,7 @@ final class GSDCostObject implements \JsonSerializable
/**
* ID.
*
* @var int
* @var int
* @since 1.0.0
*/
protected int $id = 0;
@ -35,7 +35,7 @@ final class GSDCostObject implements \JsonSerializable
/**
* Creator.
*
* @var int
* @var int
* @since 1.0.0
*/
protected $createdBy = 0;
@ -43,7 +43,7 @@ final class GSDCostObject implements \JsonSerializable
/**
* Created.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected ?\DateTime $createdAt = null;
@ -51,7 +51,7 @@ final class GSDCostObject implements \JsonSerializable
/**
* Description.
*
* @var string
* @var string
* @since 1.0.0
*/
protected string $description = '';
@ -59,7 +59,7 @@ final class GSDCostObject implements \JsonSerializable
/**
* Cost object.
*
* @var string
* @var string
* @since 1.0.0
*/
protected string $costObject = '';

View File

@ -29,7 +29,7 @@ final class GSDCostObjectMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static array $columns = [
@ -43,7 +43,7 @@ final class GSDCostObjectMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'FiKostentraeger';
@ -51,7 +51,7 @@ final class GSDCostObjectMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'row_create_time';
@ -59,7 +59,7 @@ final class GSDCostObjectMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'ROW_ID';

View File

@ -29,7 +29,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static array $columns = [
@ -49,7 +49,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'Kunden';
@ -57,7 +57,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'row_create_time';
@ -65,7 +65,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'row_id';

View File

@ -19,11 +19,11 @@ use Modules\Accounting\Models\CostCenter;
use Modules\Accounting\Models\CostCenterMapper;
use Modules\Accounting\Models\CostObject;
use Modules\Accounting\Models\CostObjectMapper;
use Modules\Exchange\Interfaces\OMS\Model\ExchangeType;
use Modules\Exchange\Models\ImporterAbstract;
use phpOMS\Message\RequestAbstract;
use Modules\ClientManagement\Models\ClientMapper;
use Modules\Exchange\Interfaces\OMS\Model\ExchangeType;
use Modules\Exchange\Models\ImporterAbstract;
use phpOMS\Message\RequestAbstract;
/**
* OMS import class
@ -134,7 +134,7 @@ final class Importer extends ImporterAbstract
public function importAddress(\DateTime $start, \DateTime $end): void
{
while (($line = \fgetcsv($this->remote)) !== false) {
var_dump($line);
\var_dump($line);
}
}

View File

@ -1,6 +1,7 @@
<?php
<?php declare(strict_types=1);
use Modules\Exchange\Models\ExchangeType;
?>
<div class="tabview tab-2">
<div class="box wf-100 col-xs-12">

View File

@ -30,7 +30,7 @@ abstract class ImporterAbstract
/**
* Database connection.
*
* @var ConnectionInterface
* @var ConnectionInterface
* @since 1.0.0
*/
private $local = null;

View File

@ -32,7 +32,7 @@ class InterfaceManager
/**
* Interface ID.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $id = 0;
@ -40,7 +40,7 @@ class InterfaceManager
/**
* File path.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $path = '';
@ -48,7 +48,7 @@ class InterfaceManager
/**
* Info data.
*
* @var array<string, mixed>
* @var array<string, mixed>
* @since 1.0.0
*/
private $info = [];

View File

@ -29,7 +29,7 @@ final class InterfaceManagerMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static array $columns = [
@ -45,7 +45,7 @@ final class InterfaceManagerMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'exchange';
@ -53,7 +53,7 @@ final class InterfaceManagerMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'exchange_id';