Completed
Push — master ( 66405f...98cd2e )
by Thomas
06:52
created
src/command/AbstractGenerateCommand.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   -1 removed lines patch added patch discarded remove patch
@@ -283,7 +283,6 @@
 block discarded – undo
283 283
 	/**
284 284
 	 * Generates an action.
285 285
 	 *  
286
-	 * @param string $actionName
287 286
 	 * @param ActionSchema $action the action node from composer.json
288 287
 	 */
289 288
 	private function generateAction($actionName) {
Please login to merge, or discard this patch.
src/generator/response/ToManyRelationshipJsonResponseGenerator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
 	/** @var Table */
16 16
 	private $model;
17 17
 	
18
+	/**
19
+	 * @param \keeko\tools\services\CommandService $service
20
+	 */
18 21
 	public function __construct($service, Table $model, Table $foreign) {
19 22
 		parent::__construct($service);
20 23
 		$this->model = $model;
Please login to merge, or discard this patch.
src/generator/response/ToOneRelationshipJsonResponseGenerator.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/services/CodeGeneratorService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 	 * Adds authors to the docblock of the given struct
63 63
 	 *
64 64
 	 * @param AbstractPhpStruct $struct
65
-	 * @param array $package
65
+	 * @param PackageSchema $package
66 66
 	 */
67 67
 	public function addAuthors(AbstractPhpStruct $struct, PackageSchema $package) {
68 68
 		$docblock = $struct->getDocblock();
Please login to merge, or discard this patch.
src/command/GenerateResponseCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
230 230
 		$module = $this->packageService->getModule();
231 231
 		$action = $module->getAction($actionName);
232 232
 		$prefix = substr($actionName, 0, strpos($actionName, 'relationship') + 12);
233
-		$readAction = $module->getAction($prefix.'-read');
233
+		$readAction = $module->getAction($prefix . '-read');
234 234
 		
235 235
 		// get modules names
236 236
 		$matches = [];
Please login to merge, or discard this patch.
src/generator/SerializerGenerator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 			foreach ($fields as $field) {
100 100
 				$code .= "'$field'";
101 101
 				if (isset($conversions[$field])) {
102
-					$code .= ' => function($v) {'."\n\t".'return ' . $conversions[$field] . ';'."\n".'}';
102
+					$code .= ' => function($v) {' . "\n\t" . 'return ' . $conversions[$field] . ';' . "\n" . '}';
103 103
 				}
104 104
 		
105 105
 				$code .= ', ';
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 				]);
159 159
 				
160 160
 				// set
161
-				$class->setMethod(PhpMethod::create('set'.$crudMethod)
161
+				$class->setMethod(PhpMethod::create('set' . $crudMethod)
162 162
 					->addParameter(PhpParameter::create('model'))
163 163
 					->addParameter(PhpParameter::create('data'))
164 164
 					->setBody($this->twig->render('to-one-set.twig', [
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
 				]);
192 192
 				
193 193
 				// set
194
-				$class->addUseStatement($rel['cfk']->getMiddleTable()->getNamespace() . '\\' .$rel['cfk']->getMiddleTable()->getPhpName() . 'Query');
195
-				$class->setMethod(PhpMethod::create('set'.$crudMethod)
194
+				$class->addUseStatement($rel['cfk']->getMiddleTable()->getNamespace() . '\\' . $rel['cfk']->getMiddleTable()->getPhpName() . 'Query');
195
+				$class->setMethod(PhpMethod::create('set' . $crudMethod)
196 196
 					->addParameter(PhpParameter::create('model'))
197 197
 					->addParameter(PhpParameter::create('data'))
198 198
 					->setBody($this->twig->render('to-many-set.twig', [
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 				);
204 204
 
205 205
 				// add
206
-				$class->setMethod(PhpMethod::create('add'.$crudMethod)
206
+				$class->setMethod(PhpMethod::create('add' . $crudMethod)
207 207
 					->addParameter(PhpParameter::create('model'))
208 208
 					->addParameter(PhpParameter::create('data'))
209 209
 					->setBody($this->twig->render('to-many-add.twig', [
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 				);
214 214
 				
215 215
 				// remove
216
-				$class->setMethod(PhpMethod::create('remove'.$crudMethod)
216
+				$class->setMethod(PhpMethod::create('remove' . $crudMethod)
217 217
 					->addParameter(PhpParameter::create('model'))
218 218
 					->addParameter(PhpParameter::create('data'))
219 219
 					->setBody($this->twig->render('to-many-remove.twig', [
Please login to merge, or discard this patch.