@@ -40,8 +40,7 @@ |
||
| 40 | 40 | * @class NullLoader |
| 41 | 41 | * @package Platine\Etl\Loader |
| 42 | 42 | */ |
| 43 | -class NullLoader implements LoaderInterface |
|
| 44 | -{ |
|
| 43 | +class NullLoader implements LoaderInterface { |
|
| 45 | 44 | /** |
| 46 | 45 | * {@inheritodc} |
| 47 | 46 | */ |
@@ -41,8 +41,7 @@ |
||
| 41 | 41 | * @class CsvFileLoader |
| 42 | 42 | * @package Platine\Etl\Loader |
| 43 | 43 | */ |
| 44 | -class CsvFileLoader implements LoaderInterface |
|
| 45 | -{ |
|
| 44 | +class CsvFileLoader implements LoaderInterface { |
|
| 46 | 45 | /** |
| 47 | 46 | * The file to be used |
| 48 | 47 | * @var SplFileObject |
@@ -40,8 +40,7 @@ discard block |
||
| 40 | 40 | * @class ArrayLoader |
| 41 | 41 | * @package Platine\Etl\Loader |
| 42 | 42 | */ |
| 43 | -class ArrayLoader implements LoaderInterface |
|
| 44 | -{ |
|
| 43 | +class ArrayLoader implements LoaderInterface { |
|
| 45 | 44 | /** |
| 46 | 45 | * The data |
| 47 | 46 | * @var array<mixed> |
@@ -59,8 +58,7 @@ discard block |
||
| 59 | 58 | * @param bool $preserveKeys |
| 60 | 59 | * @param array<mixed> $data |
| 61 | 60 | */ |
| 62 | - public function __construct(bool $preserveKeys = true, array &$data = []) |
|
| 63 | - { |
|
| 61 | + public function __construct(bool $preserveKeys = true, array &$data = []) { |
|
| 64 | 62 | $this->data = &$data; |
| 65 | 63 | $this->preserveKeys = $preserveKeys; |
| 66 | 64 | } |
@@ -42,8 +42,7 @@ |
||
| 42 | 42 | * @class JsonFileLoader |
| 43 | 43 | * @package Platine\Etl\Loader |
| 44 | 44 | */ |
| 45 | -class JsonFileLoader implements LoaderInterface |
|
| 46 | -{ |
|
| 45 | +class JsonFileLoader implements LoaderInterface { |
|
| 47 | 46 | /** |
| 48 | 47 | * The file to be used |
| 49 | 48 | * @var SplFileObject |
@@ -42,8 +42,7 @@ discard block |
||
| 42 | 42 | * @package Platine\Etl\Iterator |
| 43 | 43 | * @implements IteratorAggregate<int|string, mixed> |
| 44 | 44 | */ |
| 45 | -class FileLineIterator implements IteratorAggregate |
|
| 46 | -{ |
|
| 45 | +class FileLineIterator implements IteratorAggregate { |
|
| 47 | 46 | /** |
| 48 | 47 | * The file to be used |
| 49 | 48 | * @var SplFileObject |
@@ -54,8 +53,7 @@ discard block |
||
| 54 | 53 | * Create new instance |
| 55 | 54 | * @param SplFileObject $file |
| 56 | 55 | */ |
| 57 | - public function __construct(SplFileObject $file) |
|
| 58 | - { |
|
| 56 | + public function __construct(SplFileObject $file) { |
|
| 59 | 57 | $this->file = $file; |
| 60 | 58 | } |
| 61 | 59 | |
@@ -42,6 +42,5 @@ |
||
| 42 | 42 | * @package Platine\Etl\Iterator |
| 43 | 43 | * @extends Traversable<int|string, mixed> |
| 44 | 44 | */ |
| 45 | -interface CsvIteratorInterface extends Traversable |
|
| 46 | -{ |
|
| 45 | +interface CsvIteratorInterface extends Traversable { |
|
| 47 | 46 | } |
@@ -43,6 +43,5 @@ |
||
| 43 | 43 | * @package Platine\Etl\Iterator |
| 44 | 44 | * @extends Traversable<int|string, mixed> |
| 45 | 45 | */ |
| 46 | -interface StringIteratorInterface extends Traversable |
|
| 47 | -{ |
|
| 46 | +interface StringIteratorInterface extends Traversable { |
|
| 48 | 47 | } |
@@ -39,6 +39,5 @@ |
||
| 39 | 39 | * @class EtlException |
| 40 | 40 | * @package Platine\Etl\Exception |
| 41 | 41 | */ |
| 42 | -class EtlException extends RuntimeException |
|
| 43 | -{ |
|
| 42 | +class EtlException extends RuntimeException { |
|
| 44 | 43 | } |
@@ -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 | |