@@ -15,9 +15,9 @@ |
||
| 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 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |