@@ -20,6 +20,6 @@ |
||
| 20 | 20 | $class->setMethod($created); |
| 21 | 21 | $class->addUseStatement('Tobscure\\JsonApi\\Document'); |
| 22 | 22 | $class->addUseStatement('Tobscure\\JsonApi\\Resource'); |
| 23 | - $class->addUseStatement($model->getNamespace() . '\\' . $model->getPhpName()); |
|
| 23 | + $class->addUseStatement($model->getNamespace().'\\'.$model->getPhpName()); |
|
| 24 | 24 | } |
| 25 | 25 | } |
| 26 | 26 | \ No newline at end of file |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | protected function addMethods(PhpClass $class, ActionSchema $action) { |
| 24 | 24 | // method: run(Request $request, $data = null) |
| 25 | - $class->addUseStatement($this->model->getNamespace() . '\\' . $this->model->getPhpName()); |
|
| 25 | + $class->addUseStatement($this->model->getNamespace().'\\'.$this->model->getPhpName()); |
|
| 26 | 26 | $class->setMethod($this->generateRunMethod($this->twig->render('dump-to-many-relationship.twig', [ |
| 27 | 27 | 'class' => $this->model->getPhpName(), |
| 28 | 28 | 'related' => NameUtils::pluralize($this->foreign->getCamelCaseName()) |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | $fields = $this->getModelFields($model); |
| 19 | 19 | foreach ($fields as $field) { |
| 20 | - $class->addUseStatement($field->getNamespace() . '\\' . $field->getPhpName()); |
|
| 20 | + $class->addUseStatement($field->getNamespace().'\\'.$field->getPhpName()); |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | $updated = $this->generatePayloadMethod('updated', $this->twig->render('model-read.twig', [ |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $class->addUseStatement('Tobscure\\JsonApi\\Document'); |
| 31 | 31 | $class->addUseStatement('Tobscure\\JsonApi\\Resource'); |
| 32 | 32 | $class->addUseStatement('Tobscure\\JsonApi\\Parameters'); |
| 33 | - $class->addUseStatement($model->getNamespace() . '\\' . $model->getPhpName()); |
|
| 33 | + $class->addUseStatement($model->getNamespace().'\\'.$model->getPhpName()); |
|
| 34 | 34 | |
| 35 | 35 | // method: notUpdated(Request $request, PayloadInterface $payload) |
| 36 | 36 | $notUpdated = $this->generatePayloadMethod('notUpdated', $this->twig->render('model-notUpdated.twig')); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | $fields = $this->getModelFields($model); |
| 18 | 18 | foreach ($fields as $field) { |
| 19 | - $class->addUseStatement($field->getNamespace() . '\\' . $field->getPhpName()); |
|
| 19 | + $class->addUseStatement($field->getNamespace().'\\'.$field->getPhpName()); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | $found = $this->generatePayloadMethod('found', $this->twig->render('model-read.twig', [ |
@@ -29,6 +29,6 @@ discard block |
||
| 29 | 29 | $class->addUseStatement('Tobscure\\JsonApi\\Document'); |
| 30 | 30 | $class->addUseStatement('Tobscure\\JsonApi\\Resource'); |
| 31 | 31 | $class->addUseStatement('Tobscure\\JsonApi\\Parameters'); |
| 32 | - $class->addUseStatement($model->getNamespace() . '\\' . $model->getPhpName()); |
|
| 32 | + $class->addUseStatement($model->getNamespace().'\\'.$model->getPhpName()); |
|
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | \ No newline at end of file |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | protected function addMethods(PhpClass $class, ActionSchema $action) { |
| 23 | 23 | // method: run(Request $request, $data = null) |
| 24 | - $class->addUseStatement($this->model->getNamespace() . '\\' . $this->model->getPhpName()); |
|
| 24 | + $class->addUseStatement($this->model->getNamespace().'\\'.$this->model->getPhpName()); |
|
| 25 | 25 | $class->setMethod($this->generateRunMethod($this->twig->render('dump-to-one-relationship.twig', [ |
| 26 | 26 | 'class' => $this->model->getPhpName(), |
| 27 | 27 | 'related' => $this->foreign->getCamelCaseName() |