@@ -91,6 +91,9 @@ |
||
| 91 | 91 | ; |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | + /** |
|
| 95 | + * @param string $name |
|
| 96 | + */ |
|
| 94 | 97 | protected function runCommand($name, InputInterface $input, OutputInterface $output) { |
| 95 | 98 | // return whether command has already executed |
| 96 | 99 | $app = $this->getApplication(); |
@@ -246,6 +246,9 @@ |
||
| 246 | 246 | return $action; |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | + /** |
|
| 250 | + * @param string $type |
|
| 251 | + */ |
|
| 249 | 252 | private function generateRelationshipAction(Relationship $relationship, $type) { |
| 250 | 253 | $model = $relationship->getModel(); |
| 251 | 254 | $module = $this->package->getKeeko()->getModule(); |
@@ -76,6 +76,9 @@ |
||
| 76 | 76 | return $models; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | + /** |
|
| 80 | + * @return Project |
|
| 81 | + */ |
|
| 79 | 82 | private function getProject($packageName = null) { |
| 80 | 83 | if ($this->prj === null) { |
| 81 | 84 | if ($packageName === null) { |
@@ -98,7 +98,6 @@ discard block |
||
| 98 | 98 | * Creates a generator for the given json respose |
| 99 | 99 | * |
| 100 | 100 | * @param string $type |
| 101 | - * @param CommandService $this->service |
|
| 102 | 101 | * @return AbstractModelJsonResponderGenerator |
| 103 | 102 | */ |
| 104 | 103 | public function createModelJsonResponderGenerator($type) { |
@@ -124,7 +123,6 @@ discard block |
||
| 124 | 123 | * Creates a new package generator |
| 125 | 124 | * |
| 126 | 125 | * @param string $type |
| 127 | - * @param CommandService $this->serivce |
|
| 128 | 126 | * @return AbstractPackageGenerator |
| 129 | 127 | */ |
| 130 | 128 | public function createPackageGenerator($type) { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | $class->setMethod(PhpMethod::create('getSortFields') |
| 77 | 77 | ->setBody($this->twig->render('getFields.twig', [ |
| 78 | - 'fields' => $this->codegenService->arrayToCode(array_map(function ($field) { |
|
| 78 | + 'fields' => $this->codegenService->arrayToCode(array_map(function($field) { |
|
| 79 | 79 | return NameUtils::dasherize($field); |
| 80 | 80 | }, $readFields)) |
| 81 | 81 | ])) |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $readFields = $this->codegenService->getReadFields($model->getOriginCommonName()); |
| 85 | 85 | $class->setMethod(PhpMethod::create('getFields') |
| 86 | 86 | ->setBody($this->twig->render('getFields.twig', [ |
| 87 | - 'fields' => $this->codegenService->arrayToCode(array_map(function ($field) { |
|
| 87 | + 'fields' => $this->codegenService->arrayToCode(array_map(function($field) { |
|
| 88 | 88 | return NameUtils::dasherize($field); |
| 89 | 89 | }, $readFields)) |
| 90 | 90 | ])) |