@@ -47,8 +47,7 @@ |
||
| 47 | 47 | * @class EtlTool |
| 48 | 48 | * @package Platine\Etl |
| 49 | 49 | */ |
| 50 | -class EtlTool |
|
| 51 | -{ |
|
| 50 | +class EtlTool { |
|
| 52 | 51 | /** |
| 53 | 52 | * @var callable|null |
| 54 | 53 | */ |
@@ -42,8 +42,7 @@ |
||
| 42 | 42 | * @class LoaderInterface |
| 43 | 43 | * @package Platine\Etl\Loader |
| 44 | 44 | */ |
| 45 | -interface LoaderInterface |
|
| 46 | -{ |
|
| 45 | +interface LoaderInterface { |
|
| 47 | 46 | /** |
| 48 | 47 | * Init loader (start a transaction, if supported) and reset loader state. |
| 49 | 48 | * @param array<string, mixed> $options additional options |
@@ -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 |