Passed
Push — develop ( d8faa2...4cb62a )
by nguereza
12:47
created
src/Loader/NullLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Loader/CsvFileLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Loader/ArrayLoader.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Loader/JsonFileLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Iterator/FileLineIterator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Iterator/CsvIteratorInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,6 +42,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Iterator/StringIteratorInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,6 +43,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Exception/EtlException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,6 +39,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Extractor/JsonExtractor.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.