@@ -21,23 +21,23 @@ |
||
21 | 21 | |
22 | 22 | protected function execute(InputInterface $input, OutputInterface $output) |
23 | 23 | { |
24 | - $finder = \Symfony\Component\Finder\Finder::create(); |
|
24 | + $finder = \Symfony\Component\Finder\Finder::create(); |
|
25 | 25 | |
26 | - $root_path = __DIR__ . "../../../.."; |
|
26 | + $root_path = __DIR__ . "../../../.."; |
|
27 | 27 | |
28 | - $iterator = $finder |
|
29 | - ->files() |
|
30 | - ->in($root_path . "/vendor/*/*/db"); |
|
28 | + $iterator = $finder |
|
29 | + ->files() |
|
30 | + ->in($root_path . "/vendor/*/*/db"); |
|
31 | 31 | |
32 | - foreach ($iterator as $file) { |
|
32 | + foreach ($iterator as $file) { |
|
33 | 33 | |
34 | - if (!copy($file->getRealpath(), $root_path . '/db/' . $file->getRelativePathname())) { |
|
35 | - $output->writeln( sprintf("error copy migration %s...", $file->getRelativePathname()) ); |
|
36 | - } |
|
37 | - else{ |
|
38 | - $output->writeln( sprintf("copy migration %s", $file->getRelativePathname()) ); |
|
39 | - } |
|
40 | - } |
|
34 | + if (!copy($file->getRealpath(), $root_path . '/db/' . $file->getRelativePathname())) { |
|
35 | + $output->writeln( sprintf("error copy migration %s...", $file->getRelativePathname()) ); |
|
36 | + } |
|
37 | + else{ |
|
38 | + $output->writeln( sprintf("copy migration %s", $file->getRelativePathname()) ); |
|
39 | + } |
|
40 | + } |
|
41 | 41 | |
42 | 42 | $output->writeln("completed!"); |
43 | 43 | } |
@@ -32,10 +32,10 @@ |
||
32 | 32 | foreach ($iterator as $file) { |
33 | 33 | |
34 | 34 | if (!copy($file->getRealpath(), $root_path . '/db/' . $file->getRelativePathname())) { |
35 | - $output->writeln( sprintf("error copy migration %s...", $file->getRelativePathname()) ); |
|
35 | + $output->writeln(sprintf("error copy migration %s...", $file->getRelativePathname())); |
|
36 | 36 | } |
37 | - else{ |
|
38 | - $output->writeln( sprintf("copy migration %s", $file->getRelativePathname()) ); |
|
37 | + else { |
|
38 | + $output->writeln(sprintf("copy migration %s", $file->getRelativePathname())); |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 |
@@ -33,8 +33,7 @@ |
||
33 | 33 | |
34 | 34 | if (!copy($file->getRealpath(), $root_path . '/db/' . $file->getRelativePathname())) { |
35 | 35 | $output->writeln( sprintf("error copy migration %s...", $file->getRelativePathname()) ); |
36 | - } |
|
37 | - else{ |
|
36 | + } else{ |
|
38 | 37 | $output->writeln( sprintf("copy migration %s", $file->getRelativePathname()) ); |
39 | 38 | } |
40 | 39 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | interface SeedInterface |
11 | 11 | { |
12 | - static public function build($id = 1); |
|
12 | + static public function build($id = 1); |
|
13 | 13 | |
14 | - static public function reset(); |
|
14 | + static public function reset(); |
|
15 | 15 | } |