Passed
Branch develop (1e350e)
by nguereza
02:11
created
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.
src/Extractor/FileExtractor.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@  discard block
 block discarded – undo
39 39
  * @class FileExtractor
40 40
  * @package Platine\Etl\Extractor
41 41
  */
42
-class FileExtractor implements ExtractorInterface
43
-{
42
+class FileExtractor implements ExtractorInterface {
44 43
     /**
45 44
      * The extractor used to extract the content
46 45
      * @var ExtractorInterface
@@ -51,8 +50,7 @@  discard block
 block discarded – undo
51 50
      * Create new instance
52 51
      * @param ExtractorInterface $contentExtractor
53 52
      */
54
-    public function __construct(ExtractorInterface $contentExtractor)
55
-    {
53
+    public function __construct(ExtractorInterface $contentExtractor) {
56 54
         $this->contentExtractor = $contentExtractor;
57 55
     }
58 56
 
Please login to merge, or discard this patch.
src/Extractor/CsvExtractor.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Extractor/ExtractorInterface.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 ExtractorInterface
43 43
  * @package Platine\Etl\Extractor
44 44
  */
45
-interface ExtractorInterface
46
-{
45
+interface ExtractorInterface {
47 46
     /**
48 47
      * Extract the source data
49 48
      * @param mixed $input
Please login to merge, or discard this patch.
src/Event/ItemExceptionEvent.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
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|null
@@ -76,8 +75,7 @@  discard block
 block discarded – undo
76 75
      * @param Etl $etl
77 76
      * @param Throwable $exception
78 77
      */
79
-    public function __construct(string $name, $item, $key, Etl $etl, Throwable $exception)
80
-    {
78
+    public function __construct(string $name, $item, $key, Etl $etl, Throwable $exception) {
81 79
         parent::__construct($name, $etl);
82 80
         $this->item = $item;
83 81
         $this->key = $key;
@@ -88,8 +86,7 @@  discard block
 block discarded – undo
88 86
      * Return the item
89 87
      * @return mixed
90 88
      */
91
-    public function getItem()
92
-    {
89
+    public function getItem() {
93 90
         return $this->item;
94 91
     }
95 92
 
@@ -97,8 +94,7 @@  discard block
 block discarded – undo
97 94
      * Return the key
98 95
      * @return int|string|null
99 96
      */
100
-    public function getKey()
101
-    {
97
+    public function getKey() {
102 98
         return $this->key;
103 99
     }
104 100
 
Please login to merge, or discard this patch.
src/Event/StartEvent.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,14 +39,12 @@
 block discarded – undo
39 39
  * @class StartEvent
40 40
  * @package Platine\Etl\Event
41 41
  */
42
-class StartEvent extends BaseEvent
43
-{
42
+class StartEvent extends BaseEvent {
44 43
     /**
45 44
      * Create new instance
46 45
      * @param Etl $etl
47 46
      */
48
-    public function __construct(Etl $etl)
49
-    {
47
+    public function __construct(Etl $etl) {
50 48
         parent::__construct(self::START, $etl);
51 49
     }
52 50
 }
Please login to merge, or discard this patch.
src/Event/RollbackEvent.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@  discard block
 block discarded – undo
39 39
  * @class RollbackEvent
40 40
  * @package Platine\Etl\Event
41 41
  */
42
-class RollbackEvent extends BaseEvent
43
-{
42
+class RollbackEvent extends BaseEvent {
44 43
     /**
45 44
      * The counter
46 45
      * @var int
@@ -52,8 +51,7 @@  discard block
 block discarded – undo
52 51
      * @param Etl $etl
53 52
      * @param int $counter
54 53
      */
55
-    public function __construct(Etl $etl, int $counter)
56
-    {
54
+    public function __construct(Etl $etl, int $counter) {
57 55
         parent::__construct(self::ROLLBACK, $etl);
58 56
         $this->counter = $counter;
59 57
     }
Please login to merge, or discard this patch.