@@ -25,20 +25,20 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public static function createModelActionGenerator($type, CommandService $service) { |
| 27 | 27 | switch ($type) { |
| 28 | - case 'list': |
|
| 29 | - return new ModelListActionGenerator($service); |
|
| 28 | + case 'list': |
|
| 29 | + return new ModelListActionGenerator($service); |
|
| 30 | 30 | |
| 31 | - case 'create': |
|
| 32 | - return new ModelCreateActionGenerator($service); |
|
| 31 | + case 'create': |
|
| 32 | + return new ModelCreateActionGenerator($service); |
|
| 33 | 33 | |
| 34 | - case 'update': |
|
| 35 | - return new ModelUpdateActionGenerator($service); |
|
| 34 | + case 'update': |
|
| 35 | + return new ModelUpdateActionGenerator($service); |
|
| 36 | 36 | |
| 37 | - case 'read': |
|
| 38 | - return new ModelReadActionGenerator($service); |
|
| 37 | + case 'read': |
|
| 38 | + return new ModelReadActionGenerator($service); |
|
| 39 | 39 | |
| 40 | - case 'delete': |
|
| 41 | - return new ModelDeleteActionGenerator($service); |
|
| 40 | + case 'delete': |
|
| 41 | + return new ModelDeleteActionGenerator($service); |
|
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | |
@@ -51,20 +51,20 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public static function createModelJsonResponderGenerator($type, CommandService $service) { |
| 53 | 53 | switch ($type) { |
| 54 | - case 'list': |
|
| 55 | - return new ModelListJsonResponderGenerator($service); |
|
| 54 | + case 'list': |
|
| 55 | + return new ModelListJsonResponderGenerator($service); |
|
| 56 | 56 | |
| 57 | - case 'create': |
|
| 58 | - return new ModelCreateJsonResponderGenerator($service); |
|
| 57 | + case 'create': |
|
| 58 | + return new ModelCreateJsonResponderGenerator($service); |
|
| 59 | 59 | |
| 60 | - case 'update': |
|
| 61 | - return new ModelUpdateJsonResponderGenerator($service); |
|
| 60 | + case 'update': |
|
| 61 | + return new ModelUpdateJsonResponderGenerator($service); |
|
| 62 | 62 | |
| 63 | - case 'read': |
|
| 64 | - return new ModelReadJsonResponderGenerator($service); |
|
| 63 | + case 'read': |
|
| 64 | + return new ModelReadJsonResponderGenerator($service); |
|
| 65 | 65 | |
| 66 | - case 'delete': |
|
| 67 | - return new ModelDeleteJsonResponderGenerator($service); |
|
| 66 | + case 'delete': |
|
| 67 | + return new ModelDeleteJsonResponderGenerator($service); |
|
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |