Completed
Push — master ( 2fb143...d99a08 )
by Thomas
09:36
created
src/services/CodeGeneratorService.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
 	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
 block discarded – undo
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
 	
Please login to merge, or discard this patch.
src/generator/action/ModelReadActionGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
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
 	
Please login to merge, or discard this patch.
src/generator/action/ModelListActionGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
src/generator/action/ToOneRelationshipReadActionGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/generator/action/ToOneRelationshipUpdateActionGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
src/generator/action/ToManyRelationshipRemoveActionGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
src/generator/action/ToManyRelationshipReadActionGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/generator/action/ToManyRelationshipUpdateActionGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
src/generator/action/ModelDeleteActionGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.