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\Exchange\Models\InterfaceManagerMapper;
use Modules\Media\Models\UploadFile;
use phpOMS\Message\NotificationLevel; use phpOMS\Message\NotificationLevel;
use phpOMS\Message\RequestAbstract; use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract; use phpOMS\Message\ResponseAbstract;
use Modules\Media\Models\UploadFile;
use phpOMS\System\File\Local\Directory; use phpOMS\System\File\Local\Directory;
/** /**

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -29,7 +29,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
/** /**
* Columns. * Columns.
* *
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
@ -49,7 +49,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'Kunden'; protected static string $table = 'Kunden';
@ -57,7 +57,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
/** /**
* Created at. * Created at.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $createdAt = 'row_create_time'; protected static string $createdAt = 'row_create_time';
@ -65,7 +65,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'row_id'; 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\CostCenterMapper;
use Modules\Accounting\Models\CostObject; use Modules\Accounting\Models\CostObject;
use Modules\Accounting\Models\CostObjectMapper; 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\ClientManagement\Models\ClientMapper;
use Modules\Exchange\Interfaces\OMS\Model\ExchangeType;
use Modules\Exchange\Models\ImporterAbstract;
use phpOMS\Message\RequestAbstract;
/** /**
* OMS import class * OMS import class
@ -134,7 +134,7 @@ final class Importer extends ImporterAbstract
public function importAddress(\DateTime $start, \DateTime $end): void public function importAddress(\DateTime $start, \DateTime $end): void
{ {
while (($line = \fgetcsv($this->remote)) !== false) { 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; use Modules\Exchange\Models\ExchangeType;
?> ?>
<div class="tabview tab-2"> <div class="tabview tab-2">
<div class="box wf-100 col-xs-12"> <div class="box wf-100 col-xs-12">

View File

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

View File

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

View File

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