@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | public function getCodegenFile() { |
| 19 | 19 | $basepath = dirname($this->project->getComposerFileName()); |
| 20 | - return $basepath . '/codegen.json'; |
|
| 20 | + return $basepath.'/codegen.json'; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | $jsonFile = $this->project->getComposerFileName(); |
| 230 | 230 | $path = new Path(dirname($jsonFile)); |
| 231 | 231 | $path = $path->append($relativeSourcePath); |
| 232 | - $path = $path->append($struct->getName() . '.php'); |
|
| 232 | + $path = $path->append($struct->getName().'.php'); |
|
| 233 | 233 | return $path->toString(); |
| 234 | 234 | } |
| 235 | 235 | |
@@ -17,9 +17,9 @@ |
||
| 17 | 17 | $this->addConfigureParamsMethod($class, $this->twig->render('read-configureParams.twig')); |
| 18 | 18 | |
| 19 | 19 | // method: run(Request $request) |
| 20 | - $class->addUseStatement(str_replace('model', 'domain', $model->getNamespace()) . '\\' . $model->getPhpName() . 'Domain'); |
|
| 20 | + $class->addUseStatement(str_replace('model', 'domain', $model->getNamespace()).'\\'.$model->getPhpName().'Domain'); |
|
| 21 | 21 | $class->setMethod($this->generateRunMethod($this->twig->render('read-run.twig', [ |
| 22 | - 'domain' => $model->getPhpName() . 'Domain' |
|
| 22 | + 'domain' => $model->getPhpName().'Domain' |
|
| 23 | 23 | ]))); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -15,9 +15,9 @@ |
||
| 15 | 15 | |
| 16 | 16 | // method: run(Request $request) |
| 17 | 17 | $class->addUseStatement('Tobscure\\JsonApi\\Parameters'); |
| 18 | - $class->addUseStatement(str_replace('model', 'domain', $model->getNamespace()) . '\\' . $model->getPhpName() . 'Domain'); |
|
| 18 | + $class->addUseStatement(str_replace('model', 'domain', $model->getNamespace()).'\\'.$model->getPhpName().'Domain'); |
|
| 19 | 19 | $class->setMethod($this->generateRunMethod($this->twig->render('list-run.twig', [ |
| 20 | - 'domain' => $model->getPhpName() . 'Domain' |
|
| 20 | + 'domain' => $model->getPhpName().'Domain' |
|
| 21 | 21 | ]))); |
| 22 | 22 | |
| 23 | 23 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | $this->addConfigureParamsMethod($class, $this->twig->render('relationship-configureParams.twig')); |
| 21 | 21 | |
| 22 | 22 | // method: run(Request $request) : Response |
| 23 | - $class->addUseStatement($model->getNamespace() . '\\' . $model->getPhpName() . 'Query'); |
|
| 23 | + $class->addUseStatement($model->getNamespace().'\\'.$model->getPhpName().'Query'); |
|
| 24 | 24 | $class->setMethod($this->generateRunMethod($this->twig->render('to-one-read-run.twig', [ |
| 25 | 25 | 'model' => $model->getCamelCaseName(), |
| 26 | 26 | 'class' => $model->getPhpName() |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $class->addUseStatement('keeko\\framework\\exceptions\\ValidationException'); |
| 24 | 24 | $class->addUseStatement('Tobscure\\JsonApi\\Exception\\InvalidParameterException'); |
| 25 | 25 | $class->addUseStatement('phootwork\\json\\Json'); |
| 26 | - $class->addUseStatement($model->getNamespace() . '\\' . $model->getPhpName() . 'Query'); |
|
| 26 | + $class->addUseStatement($model->getNamespace().'\\'.$model->getPhpName().'Query'); |
|
| 27 | 27 | $class->setMethod($this->generateRunMethod($this->twig->render('to-one-update-run.twig', [ |
| 28 | 28 | 'model' => $model->getCamelCaseName(), |
| 29 | 29 | 'class' => $model->getPhpName(), |
@@ -21,8 +21,8 @@ |
||
| 21 | 21 | // method: run(Request $request) : Response |
| 22 | 22 | $class->addUseStatement('Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException'); |
| 23 | 23 | $class->addUseStatement('Tobscure\\JsonApi\\Exception\\InvalidParameterException'); |
| 24 | - $class->addUseStatement($model->getNamespace() . '\\' . $model->getPhpName() . 'Query'); |
|
| 25 | - $class->addUseStatement($model->getNamespace() . '\\' . $foreignModel->getPhpName() . 'Query'); |
|
| 24 | + $class->addUseStatement($model->getNamespace().'\\'.$model->getPhpName().'Query'); |
|
| 25 | + $class->addUseStatement($model->getNamespace().'\\'.$foreignModel->getPhpName().'Query'); |
|
| 26 | 26 | $class->setMethod($this->generateRunMethod($this->twig->render('to-many-delete-run.twig', [ |
| 27 | 27 | 'model' => $model->getCamelCaseName(), |
| 28 | 28 | 'class' => $model->getPhpName(), |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | // method: run(Request $request) : Response |
| 22 | 22 | $class->addUseStatement('Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException'); |
| 23 | - $class->addUseStatement($model->getNamespace() . '\\' . $model->getPhpName() . 'Query'); |
|
| 23 | + $class->addUseStatement($model->getNamespace().'\\'.$model->getPhpName().'Query'); |
|
| 24 | 24 | $class->setMethod($this->generateRunMethod($this->twig->render('to-many-read-run.twig', [ |
| 25 | 25 | 'model' => $model->getCamelCaseName(), |
| 26 | 26 | 'class' => $model->getPhpName() |
@@ -21,9 +21,9 @@ |
||
| 21 | 21 | // method: run(Request $request) : Response |
| 22 | 22 | $class->addUseStatement('Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException'); |
| 23 | 23 | $class->addUseStatement('Tobscure\\JsonApi\\Exception\\InvalidParameterException'); |
| 24 | - $class->addUseStatement($middle->getNamespace() . '\\' . $middle->getPhpName() . 'Query'); |
|
| 25 | - $class->addUseStatement($model->getNamespace() . '\\' . $model->getPhpName() . 'Query'); |
|
| 26 | - $class->addUseStatement($model->getNamespace() . '\\' . $foreignModel->getPhpName() . 'Query'); |
|
| 24 | + $class->addUseStatement($middle->getNamespace().'\\'.$middle->getPhpName().'Query'); |
|
| 25 | + $class->addUseStatement($model->getNamespace().'\\'.$model->getPhpName().'Query'); |
|
| 26 | + $class->addUseStatement($model->getNamespace().'\\'.$foreignModel->getPhpName().'Query'); |
|
| 27 | 27 | $class->setMethod($this->generateRunMethod($this->twig->render('to-many-update-run.twig', [ |
| 28 | 28 | 'model' => $model->getCamelCaseName(), |
| 29 | 29 | 'class' => $model->getPhpName(), |
@@ -17,9 +17,9 @@ |
||
| 17 | 17 | $this->addConfigureParamsMethod($class, $this->twig->render('delete-configureParams.twig')); |
| 18 | 18 | |
| 19 | 19 | // method: run(Request $request) |
| 20 | - $class->addUseStatement(str_replace('model', 'domain', $model->getNamespace()) . '\\' . $model->getPhpName() . 'Domain'); |
|
| 20 | + $class->addUseStatement(str_replace('model', 'domain', $model->getNamespace()).'\\'.$model->getPhpName().'Domain'); |
|
| 21 | 21 | $class->setMethod($this->generateRunMethod($this->twig->render('delete-run.twig', [ |
| 22 | - 'domain' => $model->getPhpName() . 'Domain' |
|
| 22 | + 'domain' => $model->getPhpName().'Domain' |
|
| 23 | 23 | ]))); |
| 24 | 24 | } |
| 25 | 25 | |