Completed
Push — master ( 9fef8e...159932 )
by Thomas
04:59
created
src/generator/action/ModelDeleteActionGenerator.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/command/GenerateResponseCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 	}
141 141
 	
142 142
 	protected function generateResponse($actionName) {
143
-		$this->logger->info('Generate Response: ' . $actionName);
143
+		$this->logger->info('Generate Response: '.$actionName);
144 144
 		$module = $this->packageService->getModule();
145 145
 		
146 146
 		if (!$module->hasAction($actionName)) {
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 
162 162
 		if (!$action->hasResponse($format)) {
163 163
 			$className = str_replace('action', 'responder', $action->getClass());
164
-			$className = preg_replace('/Action$/', ucwords($format) . 'Responder', $className);
164
+			$className = preg_replace('/Action$/', ucwords($format).'Responder', $className);
165 165
 			$action->setResponse($format, $className);
166 166
 		}
167 167
 
@@ -230,13 +230,13 @@  discard block
 block discarded – undo
230 230
 			$foreign->getPhpName()
231 231
 		);
232 232
 		
233
-		$many = $module->hasAction($prefix . '-read')
234
-			&& $module->hasAction($prefix . '-update')
235
-			&& $module->hasAction($prefix . '-add')
236
-			&& $module->hasAction($prefix . '-remove')
233
+		$many = $module->hasAction($prefix.'-read')
234
+			&& $module->hasAction($prefix.'-update')
235
+			&& $module->hasAction($prefix.'-add')
236
+			&& $module->hasAction($prefix.'-remove')
237 237
 		;
238
-		$single = $module->hasAction($prefix . '-read')
239
-			&& $module->hasAction($prefix . '-update')
238
+		$single = $module->hasAction($prefix.'-read')
239
+			&& $module->hasAction($prefix.'-update')
240 240
 			&& !$many
241 241
 		;
242 242
 		
Please login to merge, or discard this patch.