Passed
Push — develop ( fc36e2...f9edd1 )
by nguereza
01:43
created
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/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/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.
src/Event/ItemEvent.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@  discard block
 block discarded – undo
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
@@ -60,8 +59,7 @@  discard block
 block discarded – undo
60 59
      * @param int|string $key
61 60
      * @param Etl $etl
62 61
      */
63
-    public function __construct(string $name, $item, $key, Etl $etl)
64
-    {
62
+    public function __construct(string $name, $item, $key, Etl $etl) {
65 63
         parent::__construct($name, $etl);
66 64
         $this->item = $item;
67 65
         $this->key = $key;
@@ -71,8 +69,7 @@  discard block
 block discarded – undo
71 69
      * Return the item
72 70
      * @return mixed
73 71
      */
74
-    public function getItem()
75
-    {
72
+    public function getItem() {
76 73
         return $this->item;
77 74
     }
78 75
 
@@ -80,8 +77,7 @@  discard block
 block discarded – undo
80 77
      * Return the key
81 78
      * @return int|string
82 79
      */
83
-    public function getKey()
84
-    {
80
+    public function getKey() {
85 81
         return $this->key;
86 82
     }
87 83
 }
Please login to merge, or discard this patch.
src/Event/EndEvent.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 EndEvent
40 40
  * @package Platine\Etl\Event
41 41
  */
42
-class EndEvent extends BaseEvent
43
-{
42
+class EndEvent 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::END, $etl);
58 56
         $this->counter = $counter;
59 57
     }
Please login to merge, or discard this patch.
src/Event/BaseEvent.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 BaseEvent
41 41
  * @package Platine\Etl\Event
42 42
  */
43
-class BaseEvent extends Event
44
-{
43
+class BaseEvent extends Event {
45 44
     /**
46 45
      * Fired at the very beginning of the process.
47 46
      */
@@ -118,8 +117,7 @@  discard block
 block discarded – undo
118 117
      * @param string $name
119 118
      * @param Etl $etl
120 119
      */
121
-    public function __construct(string $name, Etl $etl)
122
-    {
120
+    public function __construct(string $name, Etl $etl) {
123 121
         parent::__construct($name);
124 122
         $this->etl = $etl;
125 123
     }
Please login to merge, or discard this patch.