Completed
Push — master ( 88c0f4...cde43d )
by Thomas
04:21
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
@@ -105,13 +105,13 @@
 block discarded – undo
105 105
 		// constructor
106 106
 		$class->setMethod(PhpMethod::create('__construct')
107 107
 			->addParameter(PhpParameter::create($modelVariableName)->setType($model->getPhpName()))
108
-			->setBody('$this->' . $modelVariableName . ' = ' . $modelVariableName .';')
108
+			->setBody('$this->' . $modelVariableName . ' = ' . $modelVariableName . ';')
109 109
 		);
110 110
 		
111 111
 		// getModel()
112 112
 		$class->setMethod(PhpMethod::create('get' . $model->getPhpName())
113 113
 			->setType($model->getPhpName())
114
-			->setBody('return $this->' . $modelVariableName .';')
114
+			->setBody('return $this->' . $modelVariableName . ';')
115 115
 		);
116 116
 		
117 117
 		$this->codegenService->dumpStruct($class, true);
Please login to merge, or discard this patch.