Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2019-12-31 03:47:51 +0300
committerScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2019-12-31 03:47:51 +0300
commite8b6719849d731c9b41487103399e15fdddd2acd (patch)
tree6e6f5658a8777d6c902865a34c8168a7951052a8 /tests
parent24034936d880267f92579db9c9e442939246854c (diff)
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/FactoryMuffin.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/Unit/FactoryMuffin.php b/tests/Unit/FactoryMuffin.php
index 50e92c7f..48ba9696 100644
--- a/tests/Unit/FactoryMuffin.php
+++ b/tests/Unit/FactoryMuffin.php
@@ -5,8 +5,7 @@ namespace OCA\Polls\Tests\Unit;
use League\FactoryMuffin\FactoryMuffin as OriginalFactoryMuffin;
use OCP\AppFramework\Db\Entity;
-class FactoryMuffin extends OriginalFactoryMuffin
-{
+class FactoryMuffin extends OriginalFactoryMuffin {
/**
* Generate and set the model attributes.
* NOTE: Patch the original method to support dynamic setter and getter
@@ -17,12 +16,11 @@ class FactoryMuffin extends OriginalFactoryMuffin
*
* @return void
*/
- protected function generate($model, array $attr = [])
- {
+ protected function generate($model, array $attr = []) {
foreach ($attr as $key => $kind) {
$value = $this->factory->generate($kind, $model, $this);
- $setter = 'set'.ucfirst(static::camelize($key));
+ $setter = 'set' . ucfirst(static::camelize($key));
// check if there is a setter and use it instead
if ($model instanceof Entity && is_callable([$model, $setter])) {
$model->$setter($value);