Completed
Push — master ( 7aeea3...5d27f2 )
by Thomas
09:03
created
src/helpers/QuestionHelperTrait.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
 	 */
25 25
 	protected function getQuestion($question, $default = null, $sep = ':') {
26 26
 		return !empty($default) ?
27
-			sprintf('<info>%s</info> [<comment>%s</comment>]%s ', $question, $default, $sep) :
28
-			sprintf('<info>%s</info>%s ', $question, $sep);
27
+			sprintf('<info>%s</info> [<comment>%s</comment>]%s ', $question, $default, $sep) : sprintf('<info>%s</info>%s ', $question, $sep);
29 28
 	}
30 29
 	
31 30
 	/**
Please login to merge, or discard this patch.
src/generator/action/AbstractActionGenerator.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
 	protected function generateClass(ActionSchema $action) {
23 23
 		$class = PhpClass::create($action->getClass());
24 24
 		$class->setDescription($action->getTitle());
25
-		$class->setLongDescription($action->getDescription() . "\n\n".
25
+		$class->setLongDescription($action->getDescription() . "\n\n" .
26 26
 			'This code is automatically created. Modifications will probably be overwritten.');
27 27
 		$this->codegenService->addAuthors($class);
28 28
 		$this->ensureBasicSetup($class);
Please login to merge, or discard this patch.
src/generator/domain/base/ModelDomainTraitGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,13 +107,13 @@
 block discarded – undo
107 107
 		// constructor
108 108
 		$class->setMethod(PhpMethod::create('__construct')
109 109
 			->addParameter(PhpParameter::create($modelVariableName)->setType($model->getPhpName()))
110
-			->setBody('$this->' . $modelVariableName . ' = $' . $modelVariableName .';')
110
+			->setBody('$this->' . $modelVariableName . ' = $' . $modelVariableName . ';')
111 111
 		);
112 112
 		
113 113
 		// getModel()
114 114
 		$class->setMethod(PhpMethod::create('get' . $model->getPhpName())
115 115
 			->setType($model->getPhpName())
116
-			->setBody('return $this->' . $modelVariableName .';')
116
+			->setBody('return $this->' . $modelVariableName . ';')
117 117
 		);
118 118
 		
119 119
 		$this->codegenService->dumpStruct($class, true);
Please login to merge, or discard this patch.
src/generator/serializer/base/ModelSerializerTraitGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 			]))
Please login to merge, or discard this patch.