@@ -44,8 +44,7 @@ discard block |
||
| 44 | 44 | * @class JsonExtractor |
| 45 | 45 | * @package Platine\Etl\Extractor |
| 46 | 46 | */ |
| 47 | -class JsonExtractor implements ExtractorInterface |
|
| 48 | -{ |
|
| 47 | +class JsonExtractor implements ExtractorInterface { |
|
| 49 | 48 | public const EXTRACT_AUTO = 0; |
| 50 | 49 | public const EXTRACT_FROM_STRING = 1; |
| 51 | 50 | public const EXTRACT_FROM_FILE = 2; |
@@ -61,8 +60,7 @@ discard block |
||
| 61 | 60 | * Create new instance |
| 62 | 61 | * @param int $type |
| 63 | 62 | */ |
| 64 | - public function __construct(int $type = self::EXTRACT_AUTO) |
|
| 65 | - { |
|
| 63 | + public function __construct(int $type = self::EXTRACT_AUTO) { |
|
| 66 | 64 | $this->type = $type; |
| 67 | 65 | } |
| 68 | 66 | |
@@ -44,8 +44,7 @@ |
||
| 44 | 44 | * @class CsvExtractor |
| 45 | 45 | * @package Platine\Etl\Extractor |
| 46 | 46 | */ |
| 47 | -class CsvExtractor implements ExtractorInterface |
|
| 48 | -{ |
|
| 47 | +class CsvExtractor implements ExtractorInterface { |
|
| 49 | 48 | public const EXTRACT_AUTO = 0; |
| 50 | 49 | public const EXTRACT_FROM_STRING = 1; |
| 51 | 50 | public const EXTRACT_FROM_FILE = 2; |
@@ -41,8 +41,7 @@ discard block |
||
| 41 | 41 | * @class FileLoader |
| 42 | 42 | * @package Platine\Etl\Loader |
| 43 | 43 | */ |
| 44 | -class FileLoader implements LoaderInterface |
|
| 45 | -{ |
|
| 44 | +class FileLoader implements LoaderInterface { |
|
| 46 | 45 | /** |
| 47 | 46 | * The file to be used |
| 48 | 47 | * @var SplFileObject |
@@ -60,8 +59,7 @@ discard block |
||
| 60 | 59 | * @param SplFileObject|string $file |
| 61 | 60 | * @param string $eol |
| 62 | 61 | */ |
| 63 | - public function __construct(SplFileObject|string $file, string $eol = PHP_EOL) |
|
| 64 | - { |
|
| 62 | + public function __construct(SplFileObject|string $file, string $eol = PHP_EOL) { |
|
| 65 | 63 | if (is_string($file)) { |
| 66 | 64 | $file = new SplFileObject($file, 'w'); |
| 67 | 65 | } |
@@ -61,8 +61,7 @@ |
||
| 61 | 61 | * @param string $content |
| 62 | 62 | * @param bool $skipEmptyLine |
| 63 | 63 | */ |
| 64 | - public function __construct(string $content, bool $skipEmptyLine = true) |
|
| 65 | - { |
|
| 64 | + public function __construct(string $content, bool $skipEmptyLine = true) { |
|
| 66 | 65 | $this->content = $content; |
| 67 | 66 | $this->skipEmptyLine = $skipEmptyLine; |
| 68 | 67 | } |
@@ -40,8 +40,7 @@ |
||
| 40 | 40 | * @class ItemExceptionEvent |
| 41 | 41 | * @package Platine\Etl\Event |
| 42 | 42 | */ |
| 43 | -class ItemExceptionEvent extends BaseEvent |
|
| 44 | -{ |
|
| 43 | +class ItemExceptionEvent extends BaseEvent { |
|
| 45 | 44 | /** |
| 46 | 45 | * The item |
| 47 | 46 | * @var mixed |
@@ -39,8 +39,7 @@ |
||
| 39 | 39 | * @class ItemEvent |
| 40 | 40 | * @package Platine\Etl\Event |
| 41 | 41 | */ |
| 42 | -class ItemEvent extends BaseEvent |
|
| 43 | -{ |
|
| 42 | +class ItemEvent extends BaseEvent { |
|
| 44 | 43 | /** |
| 45 | 44 | * The item |
| 46 | 45 | * @var mixed |