@@ -5,8 +5,7 @@ discard block |
||
| 5 | 5 | use League\FactoryMuffin\FactoryMuffin as OriginalFactoryMuffin; |
| 6 | 6 | use OCP\AppFramework\Db\Entity; |
| 7 | 7 | |
| 8 | -class FactoryMuffin extends OriginalFactoryMuffin |
|
| 9 | -{ |
|
| 8 | +class FactoryMuffin extends OriginalFactoryMuffin { |
|
| 10 | 9 | /** |
| 11 | 10 | * Generate and set the model attributes. |
| 12 | 11 | * NOTE: Patch the original method to support dynamic setter and getter |
@@ -17,8 +16,7 @@ discard block |
||
| 17 | 16 | * |
| 18 | 17 | * @return void |
| 19 | 18 | */ |
| 20 | - protected function generate($model, array $attr = []) |
|
| 21 | - { |
|
| 19 | + protected function generate($model, array $attr = []) { |
|
| 22 | 20 | foreach ($attr as $key => $kind) { |
| 23 | 21 | $value = $this->factory->generate($kind, $model, $this); |
| 24 | 22 | |