@@ -2,10 +2,10 @@ |
||
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 |
@@ -54,7 +54,7 @@ discard block |
||
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 |
||
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 | "/,(?=(?:[^\']*\'[^\']*\')*(?![^\']*\'))/", |