Completed
Pull Request — master (#3)
by
unknown
04:59
created
src/Bridge/Plum/ArffWriter.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Cocur\Arff\Bridge\Plum;
4 4
 
5
-use Cocur\Arff\Document;
6 5
 use Cocur\Arff\Column\ColumnInterface;
7
-use Plum\Plum\Writer\WriterInterface;
6
+use Cocur\Arff\Document;
8 7
 use Cocur\Arff\Writer as Writer;
8
+use Plum\Plum\Writer\WriterInterface;
9 9
 
10 10
 /**
11 11
  * ArffWriter
Please login to merge, or discard this patch.
src/Reader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 } else if (strcasecmp($type, 'numeric') === 0) {
55 55
                     $column = new NumericColumn($matches[1]);
56 56
                 } else if (preg_match('/^\{(.*)\}$/', $matches[2], $classMatches)) {
57
-                    $column = new NominalColumn($matches[1], array_map(function ($value) {
57
+                    $column = new NominalColumn($matches[1], array_map(function($value) {
58 58
                         return trim($value, "'");
59 59
                     }, preg_split(
60 60
                             "/,(?=(?:[^\']*\'[^\']*\')*(?![^\']*\'))/",
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         }
85 85
         $columns     = $document->getColumns();
86 86
         $columnNames = array_keys($columns);
87
-        for ($i = $index+1; $i < count($lines); $i += 1) {
87
+        for ($i = $index + 1; $i < count($lines); $i += 1) {
88 88
             $row    = [];
89 89
             $splits = preg_split(
90 90
                 "/,(?=(?:[^\']*\'[^\']*\')*(?![^\']*\'))/",
Please login to merge, or discard this patch.