@@ -5,7 +5,6 @@ |
||
5 | 5 | use Doctrine\Common\DataFixtures\FixtureInterface; |
6 | 6 | use Doctrine\Common\Persistence\ObjectManager; |
7 | 7 | use Doctrine\DBAL\Connection; |
8 | -use Doctrine\DBAL\Schema\Table; |
|
9 | 8 | |
10 | 9 | /** |
11 | 10 | * CSVファイルを扱うためのフィクスチャ. |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function load(ObjectManager $manager) |
29 | 29 | { |
30 | 30 | // CSV Reader に設定 |
31 | - $this->file->setFlags(\SplFileObject::READ_CSV | \SplFileObject::READ_AHEAD | \SplFileObject::SKIP_EMPTY); |
|
31 | + $this->file->setFlags(\SplFileObject::READ_CSV|\SplFileObject::READ_AHEAD|\SplFileObject::SKIP_EMPTY); |
|
32 | 32 | |
33 | 33 | // ヘッダ行を取得 |
34 | 34 | $headers = $this->file->current(); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | ->name('*.csv') |
44 | 44 | ->sort( |
45 | 45 | // 定義ファイルに記載の順にソート. |
46 | - function (\SplFileInfo $a, \SplFileInfo $b) use ($definition) { |
|
46 | + function(\SplFileInfo $a, \SplFileInfo $b) use ($definition) { |
|
47 | 47 | if (!isset($definition[$a->getFilename()])) { |
48 | 48 | throw new \Exception(sprintf('"%s" is undefined in %s', $a->getFilename())); |
49 | 49 | } |