Completed
Push — master ( 2fb143...d99a08 )
by Thomas
09:36
created
src/generator/responder/ModelCreateJsonResponderGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/generator/responder/ToManyRelationshipJsonResponderGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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())
Please login to merge, or discard this patch.
src/generator/responder/ModelUpdateJsonResponderGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'));
Please login to merge, or discard this patch.
src/generator/responder/ModelReadJsonResponderGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/generator/responder/ToOneRelationshipJsonResponderGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.