Passed
Push — develop ( ab61e9...2bce29 )
by nguereza
01:46
created
src/Extractor/JsonExtractor.php 1 patch
Braces   +3 added lines, -6 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
 
@@ -166,8 +164,7 @@  discard block
 block discarded – undo
166 164
      * @param array<string, mixed> $options
167 165
      * @return $this
168 166
      */
169
-    protected function setOptions(array $options)
170
-    {
167
+    protected function setOptions(array $options) {
171 168
         if (isset($options['type']) && is_int($options['type'])) {
172 169
             $this->type = $options['type'];
173 170
         }
Please login to merge, or discard this patch.
src/Extractor/CsvExtractor.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 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;
@@ -192,8 +191,7 @@  discard block
 block discarded – undo
192 191
      * @param array<string, mixed> $options
193 192
      * @return $this
194 193
      */
195
-    protected function setOptions(array $options)
196
-    {
194
+    protected function setOptions(array $options) {
197 195
         if (isset($options['delimiter'])) {
198 196
             $this->delimiter = $options['delimiter'];
199 197
         }
Please login to merge, or discard this patch.
src/Loader/FileLoader.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@
 block discarded – undo
70 70
     }
71 71
 
72 72
         /**
73
-     * {@inheritodc}
74
-     */
73
+         * {@inheritodc}
74
+         */
75 75
     public function init(array $options = []): void
76 76
     {
77 77
         if (isset($options['eol'])) {
Please login to merge, or discard this patch.
src/Loader/LoaderInterface.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 LoaderInterface
43 43
  * @package Platine\Etl\Loader
44 44
  */
45
-interface LoaderInterface
46
-{
45
+interface LoaderInterface {
47 46
     /**
48 47
      * Init loader (start a transaction, if supported) and reset loader state.
49 48
      * @param array<string, mixed> $options additional options
Please login to merge, or discard this patch.