| @@ -53,7 +53,7 @@ discard block | ||
| 53 | 53 | $table->setDescription($options['comment']); | 
| 54 | 54 | } | 
| 55 | 55 |          $this->actions[] =  function () use ($table) { | 
| 56 | - return $this->manipulation->create($table); | |
| 56 | + return $this->manipulation->create($table); | |
| 57 | 57 | }; | 
| 58 | 58 | |
| 59 | 59 | return $table; | 
| @@ -74,8 +74,8 @@ discard block | ||
| 74 | 74 | |
| 75 | 75 | $cascade = isset($options['cascade']) ? $options['cascade'] : true; | 
| 76 | 76 |          $this->actions[] =  function () use ($table, $cascade) { | 
| 77 | - return $this->manipulation->drop($table, $cascade); | |
| 78 | - }; | |
| 77 | + return $this->manipulation->drop($table, $cascade); | |
| 78 | + }; | |
| 79 | 79 | } | 
| 80 | 80 | |
| 81 | 81 | /** | 
| @@ -104,8 +104,8 @@ discard block | ||
| 104 | 104 |      { | 
| 105 | 105 | $schema = new Schema($name); | 
| 106 | 106 |          $this->actions[] =  function () use ($schema) { | 
| 107 | - return $this->manipulation->create($schema); | |
| 108 | - }; | |
| 107 | + return $this->manipulation->create($schema); | |
| 108 | + }; | |
| 109 | 109 | } | 
| 110 | 110 | |
| 111 | 111 | /** | 
| @@ -119,8 +119,8 @@ discard block | ||
| 119 | 119 |      { | 
| 120 | 120 | $schema = new Schema($name); | 
| 121 | 121 |          $this->actions[] =  function () use ($schema) { | 
| 122 | - return $this->manipulation->drop($schema); | |
| 123 | - }; | |
| 122 | + return $this->manipulation->drop($schema); | |
| 123 | + }; | |
| 124 | 124 | } | 
| 125 | 125 | |
| 126 | 126 | /** | 
| @@ -61,7 +61,7 @@ discard block | ||
| 61 | 61 | $column->setTable($this); | 
| 62 | 62 | |
| 63 | 63 |          $this->actions[] =  function () use ($column) { | 
| 64 | - return $this->manipulation->drop($column); | |
| 64 | + return $this->manipulation->drop($column); | |
| 65 | 65 | }; | 
| 66 | 66 | |
| 67 | 67 | return $this; | 
| @@ -95,7 +95,7 @@ discard block | ||
| 95 | 95 | $foreignKey->setDeleteAction($options['delete']); | 
| 96 | 96 | } | 
| 97 | 97 |          $this->actions[] =  function () use ($foreignKey) { | 
| 98 | - return $this->manipulation->create($foreignKey); | |
| 98 | + return $this->manipulation->create($foreignKey); | |
| 99 | 99 | }; | 
| 100 | 100 | |
| 101 | 101 | return $this; | 
| @@ -119,7 +119,7 @@ discard block | ||
| 119 | 119 | $foreignKey->setReferencedColumns($referenceColumns); | 
| 120 | 120 | |
| 121 | 121 |          $this->actions[] =  function () use ($foreignKey) { | 
| 122 | - return $this->manipulation->drop($foreignKey); | |
| 122 | + return $this->manipulation->drop($foreignKey); | |
| 123 | 123 | }; | 
| 124 | 124 | |
| 125 | 125 | return $this; | 
| @@ -137,7 +137,7 @@ discard block | ||
| 137 | 137 | $unique = new Unique($columns, $this); | 
| 138 | 138 | |
| 139 | 139 |          $this->actions[] =  function () use ($unique) { | 
| 140 | - return $this->manipulation->create($unique); | |
| 140 | + return $this->manipulation->create($unique); | |
| 141 | 141 | }; | 
| 142 | 142 | |
| 143 | 143 | return $this; | 
| @@ -155,7 +155,7 @@ discard block | ||
| 155 | 155 | $unique = new Unique($columns, $this); | 
| 156 | 156 | |
| 157 | 157 |          $this->actions[] =  function () use ($unique) { | 
| 158 | - return $this->manipulation->drop($unique); | |
| 158 | + return $this->manipulation->drop($unique); | |
| 159 | 159 | }; | 
| 160 | 160 | |
| 161 | 161 | return $this; | 
| @@ -173,7 +173,7 @@ discard block | ||
| 173 | 173 | $index = new Index($columns, $this); | 
| 174 | 174 | |
| 175 | 175 |          $this->actions[] =  function () use ($index) { | 
| 176 | - return $this->manipulation->create($index); | |
| 176 | + return $this->manipulation->create($index); | |
| 177 | 177 | }; | 
| 178 | 178 | |
| 179 | 179 | return $this; | 
| @@ -191,7 +191,7 @@ discard block | ||
| 191 | 191 | $index = new Index($columns, $this); | 
| 192 | 192 | |
| 193 | 193 |          $this->actions[] =  function () use ($index) { | 
| 194 | - return $this->manipulation->drop($index); | |
| 194 | + return $this->manipulation->drop($index); | |
| 195 | 195 | }; | 
| 196 | 196 | |
| 197 | 197 | return $this; | 
| @@ -21,11 +21,11 @@ | ||
| 21 | 21 | $this->container = $container; | 
| 22 | 22 | } | 
| 23 | 23 | |
| 24 | - /** | |
| 25 | - * Gets container instance. | |
| 26 | - * | |
| 27 | - * @return ContainerInterface | |
| 28 | - */ | |
| 24 | + /** | |
| 25 | + * Gets container instance. | |
| 26 | + * | |
| 27 | + * @return ContainerInterface | |
| 28 | + */ | |
| 29 | 29 | protected function getContainer() | 
| 30 | 30 |      { | 
| 31 | 31 | return $this->container; | 
| @@ -40,7 +40,7 @@ | ||
| 40 | 40 |          } else { | 
| 41 | 41 |              $output->writeln(sprintf('<comment>No migrations detected.</comment>')); | 
| 42 | 42 | } | 
| 43 | -      } catch(\PDOException $e) { | |
| 43 | +        } catch(\PDOException $e) { | |
| 44 | 44 |              $output->writeln("\n<error>There was something wrong during migration. Database schema has not been changed.</error>"); | 
| 45 | 45 |              if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) { | 
| 46 | 46 |                      $output->writeln(sprintf("\n<error>%s</error>", $e->getMessage())); | 
| @@ -30,7 +30,7 @@ discard block | ||
| 30 | 30 | } | 
| 31 | 31 | } | 
| 32 | 32 | $this->defineParameters($container); | 
| 33 | -         if(!$container->hasParameter('dami.migrations_directory')) { | |
| 33 | +            if(!$container->hasParameter('dami.migrations_directory')) { | |
| 34 | 34 |              $container->setParameter('dami.migrations_directory', getcwd() . '/migrations'); | 
| 35 | 35 | } | 
| 36 | 36 | |
| @@ -63,7 +63,7 @@ discard block | ||
| 63 | 63 |          $container->setDefinition('dami.verbosity', $definition); | 
| 64 | 64 | |
| 65 | 65 |          $definition = new Definition('Dami\EventListener\SqlSubscriber', | 
| 66 | -          [new Reference('dami.verbosity')]); | |
| 66 | +            [new Reference('dami.verbosity')]); | |
| 67 | 67 |          $definition->addTag('kernel.event_subscriber'); | 
| 68 | 68 |          $container->setDefinition('dami.sql.subscriber', $definition); | 
| 69 | 69 | } | 
| @@ -47,8 +47,8 @@ discard block | ||
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | 49 | /** | 
| 50 | - * @Given I run :command | |
| 51 | - */ | |
| 50 | + * @Given I run :command | |
| 51 | + */ | |
| 52 | 52 | public function iRun($command) | 
| 53 | 53 |      { | 
| 54 | 54 | exec($command); | 
| @@ -82,11 +82,11 @@ discard block | ||
| 82 | 82 | } | 
| 83 | 83 | |
| 84 | 84 | /** | 
| 85 | - * @AfterScenario | |
| 86 | - */ | |
| 87 | - public function deleteMigrations(AfterScenarioScope $scope) | |
| 88 | -     { | |
| 89 | - $pattern = getcwd() . '/' . $this->dir . '/*.php'; | |
| 90 | -         array_map('unlink', glob($pattern)); | |
| 91 | - } | |
| 85 | + * @AfterScenario | |
| 86 | + */ | |
| 87 | + public function deleteMigrations(AfterScenarioScope $scope) | |
| 88 | +        { | |
| 89 | + $pattern = getcwd() . '/' . $this->dir . '/*.php'; | |
| 90 | +            array_map('unlink', glob($pattern)); | |
| 91 | + } | |
| 92 | 92 | } |