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/responder/ToOneRelationshipJsonResponderGenerator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
 	/** @var Table */
15 15
 	private $foreign;
16 16
 	
17
+	/**
18
+	 * @param \keeko\tools\services\CommandService $service
19
+	 */
17 20
 	public function __construct($service, Table $model, Table $foreign) {
18 21
 		parent::__construct($service);
19 22
 		$this->model = $model;
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/command/InitCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 	}
88 88
 	
89 89
 	/**
90
-	 * @return PackageSchema
90
+	 * @return \keeko\framework\schema\PackageSchema
91 91
 	 */
92 92
 	protected function getPackage() {
93 93
 		return $this->package;
Please login to merge, or discard this patch.
src/ui/AbstractUI.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	abstract public function show();
26 26
 	
27 27
 	/**
28
-	 * @return HelperSet
28
+	 * @return \Symfony\Component\Console\Helper\HelperSet|null
29 29
 	 */
30 30
 	protected function getHelperSet() {
31 31
 		return $this->command->getHelperSet();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 use keeko\tools\command\AbstractGenerateCommand;
5 5
 use Symfony\Component\Console\Output\OutputInterface;
6 6
 use Symfony\Component\Console\Input\InputInterface;
7
-use Symfony\Component\Console\Command\Command;
8 7
 use Symfony\Component\Console\Input\ArrayInput;
9 8
 
10 9
 class MagicCommand extends AbstractGenerateCommand {
Please login to merge, or discard this patch.
src/generator/responder/PayloadGeneratorTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@
 block discarded – undo
91 91
 		;
92 92
 	}
93 93
 	
94
+	/**
95
+	 * @param string $name
96
+	 */
94 97
 	protected function runCommand($name, InputInterface $input, OutputInterface $output) {
95 98
 		// return whether command has already executed
96 99
 		$app = $this->getApplication();
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/command/AbstractKeekoCommand.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@
 block discarded – undo
91 91
 		;
92 92
 	}
93 93
 	
94
+	/**
95
+	 * @param string $name
96
+	 */
94 97
 	protected function runCommand($name, InputInterface $input, OutputInterface $output) {
95 98
 		// return whether command has already executed
96 99
 		$app = $this->getApplication();
Please login to merge, or discard this patch.
src/command/GenerateActionCommand.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -246,6 +246,9 @@
 block discarded – undo
246 246
 		return $action;
247 247
 	}
248 248
 	
249
+	/**
250
+	 * @param string $type
251
+	 */
249 252
 	private function generateRelationshipAction(Relationship $relationship, $type) {
250 253
 		$model = $relationship->getModel();
251 254
 		$module = $this->package->getKeeko()->getModule();
Please login to merge, or discard this patch.