@@ -64,7 +64,6 @@ discard block |
||
64 | 64 | * Creates a new package generator |
65 | 65 | * |
66 | 66 | * @param string $type |
67 | - * @param CommandService $this->serivce |
|
68 | 67 | * @return AbstractPackageGenerator |
69 | 68 | */ |
70 | 69 | public function createPackageGenerator($type) { |
@@ -139,7 +138,6 @@ discard block |
||
139 | 138 | * Creates a generator for the given json respose |
140 | 139 | * |
141 | 140 | * @param string $type |
142 | - * @param CommandService $this->service |
|
143 | 141 | * @return AbstractModelJsonResponderGenerator |
144 | 142 | */ |
145 | 143 | public function createModelJsonResponderGenerator($type) { |
@@ -139,7 +139,7 @@ |
||
139 | 139 | // find reflexive many-to-many relationships |
140 | 140 | if ($relationship->getType() == Relationship::MANY_TO_MANY && $relationship->isReflexive()) { |
141 | 141 | $prop = NameUtils::toCamelCase($relationship->getRelatedPluralName()); |
142 | - $inverses[$prop] = '\''.NameUtils::toCamelCase($relationship->getReverseRelatedPluralName()) . '\''; |
|
142 | + $inverses[$prop] = '\'' . NameUtils::toCamelCase($relationship->getReverseRelatedPluralName()) . '\''; |
|
143 | 143 | } |
144 | 144 | } |
145 | 145 |
@@ -126,7 +126,7 @@ |
||
126 | 126 | $types = ['module', 'app']; |
127 | 127 | $question = new Question('Package type (module|app)', $type); |
128 | 128 | $question->setAutocompleterValues($types); |
129 | - $question->setValidator(function($answer) use ($types) { |
|
129 | + $question->setValidator(function ($answer) use ($types) { |
|
130 | 130 | if (!in_array($answer, $types)) { |
131 | 131 | throw new \RuntimeException('The name of the type should be one of: ' . |
132 | 132 | implode(',', $types)); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $this->setDispatcher($dispatcher); |
35 | 35 | $this->keekoDispatcher = $dispatcher; |
36 | 36 | |
37 | - $dispatcher->addListener(ConsoleEvents::TERMINATE, function(ConsoleTerminateEvent $event) { |
|
37 | + $dispatcher->addListener(ConsoleEvents::TERMINATE, function (ConsoleTerminateEvent $event) { |
|
38 | 38 | $command = $event->getCommand(); |
39 | 39 | $this->finishedCommands[] = $command->getName(); |
40 | 40 | }); |
@@ -36,10 +36,10 @@ |
||
36 | 36 | $name = $split; |
37 | 37 | } else { |
38 | 38 | $name .= '_' . $split; |
39 | - $idColumns []= $split . '_id'; |
|
39 | + $idColumns [] = $split . '_id'; |
|
40 | 40 | } |
41 | 41 | |
42 | - $idColumns []= $name . '_id'; |
|
42 | + $idColumns [] = $name . '_id'; |
|
43 | 43 | } |
44 | 44 | } |
45 | 45 |