| @@ -90,6 +90,9 @@ | ||
| 90 | 90 | ); | 
| 91 | 91 | } | 
| 92 | 92 | |
| 93 | + /** | |
| 94 | + * @param string $fileName | |
| 95 | + */ | |
| 93 | 96 | protected function getClassNameFromFile($fileName) | 
| 94 | 97 |      { | 
| 95 | 98 |          $parts = explode('_', pathinfo($fileName, PATHINFO_FILENAME), 2); | 
| @@ -179,7 +179,7 @@ | ||
| 179 | 179 | * @throws \InvalidArgumentException When trying to set | 
| 180 | 180 | * | 
| 181 | 181 | * @param \eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType | 
| 182 | - * @return boolean | |
| 182 | + * @return false|null | |
| 183 | 183 | */ | 
| 184 | 184 | protected function setReferences($contentType) | 
| 185 | 185 |      { | 
| @@ -1,7 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | 3 | use Kaliop\eZMigrationBundle\API\MigrationInterface; | 
| 4 | - | |
| 5 | 4 | use Symfony\Component\DependencyInjection\ContainerInterface; | 
| 6 | 5 | use Kaliop\eZMigrationBundle\API\Value\Migration; | 
| 7 | 6 | use Kaliop\eZMigrationBundle\API\Value\MigrationDefinition; | 
| @@ -94,7 +94,6 @@ | ||
| 94 | 94 | } | 
| 95 | 95 | |
| 96 | 96 | /** | 
| 97 | - * @param Migration $migration | |
| 98 | 97 | */ | 
| 99 | 98 | public function addMigration(MigrationDefinition $migrationDefinition) | 
| 100 | 99 |      { | 
| @@ -98,7 +98,7 @@ | ||
| 98 | 98 | /** | 
| 99 | 99 | * Creates and stores a new migration (leaving it in TODO status) | 
| 100 | 100 | * @param MigrationDefinition $migrationDefinition | 
| 101 | - * @return mixed | |
| 101 | + * @return Migration | |
| 102 | 102 | * @throws \Exception If the migration exists already (we rely on the PK for that) | 
| 103 | 103 | */ | 
| 104 | 104 | public function addMigration(MigrationDefinition $migrationDefinition) | 
| @@ -48,6 +48,9 @@ discard block | ||
| 48 | 48 | $this->checkGeneratedFile($this->saveGeneratedFile($output)); | 
| 49 | 49 | } | 
| 50 | 50 | |
| 51 | + /** | |
| 52 | + * @param null|string $output | |
| 53 | + */ | |
| 51 | 54 | protected function saveGeneratedFile($output) | 
| 52 | 55 |      { | 
| 53 | 56 | var_dump($output); | 
| @@ -59,6 +62,9 @@ discard block | ||
| 59 | 62 | return null; | 
| 60 | 63 | } | 
| 61 | 64 | |
| 65 | + /** | |
| 66 | + * @param string|null $filePath | |
| 67 | + */ | |
| 62 | 68 | protected function checkGeneratedFile($filePath) | 
| 63 | 69 |      { | 
| 64 | 70 |          $input = new ArrayInput(array('command' => 'kaliop:migration:status')); |