From 52e3add4bdadb04b44a6c44e29a76da5b0c316a9 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 26 Jan 2020 12:27:56 +0100 Subject: [PATCH] phpcs fix --- Controller/ApiController.php | 2 +- Controller/Controller.php | 12 ++++++------ Interfaces/GSD/Importer.php | 2 +- Interfaces/GSD/Model/GSDAddressMapper.php | 8 ++++---- Interfaces/GSD/Model/GSDArticleMapper.php | 8 ++++---- Interfaces/GSD/Model/GSDCostCenter.php | 10 +++++----- Interfaces/GSD/Model/GSDCostCenterMapper.php | 8 ++++---- Interfaces/GSD/Model/GSDCostObject.php | 10 +++++----- Interfaces/GSD/Model/GSDCostObjectMapper.php | 8 ++++---- Interfaces/GSD/Model/GSDCustomerMapper.php | 8 ++++---- Interfaces/OMS/Importer.php | 10 +++++----- Interfaces/OMS/import.tpl.php | 3 ++- Models/ImporterAbstract.php | 2 +- Models/InterfaceManager.php | 6 +++--- Models/InterfaceManagerMapper.php | 6 +++--- 15 files changed, 52 insertions(+), 51 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 7ee1c06..9fe9ad9 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -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; /** diff --git a/Controller/Controller.php b/Controller/Controller.php index 9c63204..e8984cc 100644 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -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 = []; diff --git a/Interfaces/GSD/Importer.php b/Interfaces/GSD/Importer.php index 07dc289..7f334a6 100644 --- a/Interfaces/GSD/Importer.php +++ b/Interfaces/GSD/Importer.php @@ -41,7 +41,7 @@ final class Importer extends ImporterAbstract /** * Database connection. * - * @var ConnectionInterface + * @var ConnectionInterface * @since 1.0.0 */ private $remote = null; diff --git a/Interfaces/GSD/Model/GSDAddressMapper.php b/Interfaces/GSD/Model/GSDAddressMapper.php index a5269e4..f8dbc38 100644 --- a/Interfaces/GSD/Model/GSDAddressMapper.php +++ b/Interfaces/GSD/Model/GSDAddressMapper.php @@ -29,7 +29,7 @@ final class GSDAddressMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @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'; diff --git a/Interfaces/GSD/Model/GSDArticleMapper.php b/Interfaces/GSD/Model/GSDArticleMapper.php index 3c786e9..b916208 100644 --- a/Interfaces/GSD/Model/GSDArticleMapper.php +++ b/Interfaces/GSD/Model/GSDArticleMapper.php @@ -29,7 +29,7 @@ final class GSDArticleMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @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'; diff --git a/Interfaces/GSD/Model/GSDCostCenter.php b/Interfaces/GSD/Model/GSDCostCenter.php index 745cff2..e8cbdba 100644 --- a/Interfaces/GSD/Model/GSDCostCenter.php +++ b/Interfaces/GSD/Model/GSDCostCenter.php @@ -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 = ''; diff --git a/Interfaces/GSD/Model/GSDCostCenterMapper.php b/Interfaces/GSD/Model/GSDCostCenterMapper.php index 65602f9..fde6d50 100644 --- a/Interfaces/GSD/Model/GSDCostCenterMapper.php +++ b/Interfaces/GSD/Model/GSDCostCenterMapper.php @@ -29,7 +29,7 @@ final class GSDCostCenterMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @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'; diff --git a/Interfaces/GSD/Model/GSDCostObject.php b/Interfaces/GSD/Model/GSDCostObject.php index 9e7bb6e..e52ae4e 100644 --- a/Interfaces/GSD/Model/GSDCostObject.php +++ b/Interfaces/GSD/Model/GSDCostObject.php @@ -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 = ''; diff --git a/Interfaces/GSD/Model/GSDCostObjectMapper.php b/Interfaces/GSD/Model/GSDCostObjectMapper.php index b27a22f..241e9b1 100644 --- a/Interfaces/GSD/Model/GSDCostObjectMapper.php +++ b/Interfaces/GSD/Model/GSDCostObjectMapper.php @@ -29,7 +29,7 @@ final class GSDCostObjectMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @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'; diff --git a/Interfaces/GSD/Model/GSDCustomerMapper.php b/Interfaces/GSD/Model/GSDCustomerMapper.php index c47e062..430b733 100644 --- a/Interfaces/GSD/Model/GSDCustomerMapper.php +++ b/Interfaces/GSD/Model/GSDCustomerMapper.php @@ -29,7 +29,7 @@ final class GSDCustomerMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @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'; diff --git a/Interfaces/OMS/Importer.php b/Interfaces/OMS/Importer.php index 50cb79c..3a1ead5 100644 --- a/Interfaces/OMS/Importer.php +++ b/Interfaces/OMS/Importer.php @@ -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); } } diff --git a/Interfaces/OMS/import.tpl.php b/Interfaces/OMS/import.tpl.php index 95793fb..e0a8429 100644 --- a/Interfaces/OMS/import.tpl.php +++ b/Interfaces/OMS/import.tpl.php @@ -1,6 +1,7 @@ -
diff --git a/Models/ImporterAbstract.php b/Models/ImporterAbstract.php index ce96559..2163fd3 100644 --- a/Models/ImporterAbstract.php +++ b/Models/ImporterAbstract.php @@ -30,7 +30,7 @@ abstract class ImporterAbstract /** * Database connection. * - * @var ConnectionInterface + * @var ConnectionInterface * @since 1.0.0 */ private $local = null; diff --git a/Models/InterfaceManager.php b/Models/InterfaceManager.php index 6a9cdf3..a37cd22 100644 --- a/Models/InterfaceManager.php +++ b/Models/InterfaceManager.php @@ -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 + * @var array * @since 1.0.0 */ private $info = []; diff --git a/Models/InterfaceManagerMapper.php b/Models/InterfaceManagerMapper.php index 4b6b091..acad895 100644 --- a/Models/InterfaceManagerMapper.php +++ b/Models/InterfaceManagerMapper.php @@ -29,7 +29,7 @@ final class InterfaceManagerMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @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';