Passed
Branch develop (1e350e)
by nguereza
02:11
created
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.
src/Event/FlushEvent.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 FlushEvent
40 40
  * @package Platine\Etl\Event
41 41
  */
42
-class FlushEvent extends BaseEvent
43
-{
42
+class FlushEvent extends BaseEvent {
44 43
     /**
45 44
      * The counter
46 45
      * @var int
@@ -59,8 +58,7 @@  discard block
 block discarded – undo
59 58
      * @param int $counter
60 59
      * @param bool $partial
61 60
      */
62
-    public function __construct(Etl $etl, int $counter, bool $partial)
63
-    {
61
+    public function __construct(Etl $etl, int $counter, bool $partial) {
64 62
         parent::__construct(self::FLUSH, $etl);
65 63
         $this->counter = $counter;
66 64
         $this->partial = $partial;
Please login to merge, or discard this patch.
src/Transformer/CallableTransformer.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
  * @class CallableTransformer
43 43
  * @package Platine\Etl\Transformer
44 44
  */
45
-class CallableTransformer implements TransformerInterface
46
-{
45
+class CallableTransformer implements TransformerInterface {
47 46
     /**
48 47
      * The callable to be used
49 48
      * @var callable
@@ -54,8 +53,7 @@  discard block
 block discarded – undo
54 53
      * Create new instance
55 54
      * @param callable $callable
56 55
      */
57
-    public function __construct(callable $callable)
58
-    {
56
+    public function __construct(callable $callable) {
59 57
         $this->callable = $callable;
60 58
     }
61 59
 
Please login to merge, or discard this patch.
src/Transformer/TransformerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@
 block discarded – undo
43 43
  * @class TransformerInterface
44 44
  * @package Platine\Etl\Transformer
45 45
  */
46
-interface TransformerInterface
47
-{
46
+interface TransformerInterface {
48 47
     /**
49 48
      * Transform the given value
50 49
      * @param mixed $value
Please login to merge, or discard this patch.
src/Etl.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -338,7 +338,7 @@
 block discarded – undo
338 338
             }
339 339
             $this->dispatcher->dispatch(new ItemEvent(BaseEvent::TRANSFORM, $item, $key, $this));
340 340
         } catch (Exception $e) {
341
-           /** @var ItemExceptionEvent $event */
341
+            /** @var ItemExceptionEvent $event */
342 342
             $event = $this->dispatcher->dispatch(
343 343
                 new ItemExceptionEvent(BaseEvent::TRANSFORM_EXCEPTION, $item ?? null, $key ?? null, $this, $e)
344 344
             );
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
             }
349 349
         }
350 350
 
351
-        return static function () use ($output) {
351
+        return static function() use ($output) {
352 352
             foreach ($output as [$key, $value]) {
353 353
                 yield $key => $value;
354 354
             }
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
      */
468 468
     protected function defaultTransformer(): callable
469 469
     {
470
-        return function ($item, $key): Generator {
470
+        return function($item, $key): Generator {
471 471
             yield $key => $item;
472 472
         };
473 473
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class Etl
54 54
  * @package Platine\Etl
55 55
  */
56
-class Etl
57
-{
56
+class Etl {
58 57
     /**
59 58
      * @var callable|null
60 59
      */
Please login to merge, or discard this patch.
src/EtlTool.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.