@@ -25,8 +25,8 @@ |
||
| 25 | 25 | define('PHPUNIT_RUN', 1); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | -require_once(__DIR__.'/../../../lib/base.php'); |
|
| 29 | -require_once(__DIR__.'/../vendor/autoload.php'); |
|
| 28 | +require_once(__DIR__ . '/../../../lib/base.php'); |
|
| 29 | +require_once(__DIR__ . '/../vendor/autoload.php'); |
|
| 30 | 30 | |
| 31 | 31 | \OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests'); |
| 32 | 32 | \OC_App::loadApp('polls'); |
@@ -34,8 +34,8 @@ |
||
| 34 | 34 | * @method void setPollId(integer $value) |
| 35 | 35 | */ |
| 36 | 36 | class Comment extends Model { |
| 37 | - protected $userId; |
|
| 38 | - protected $dt; |
|
| 39 | - protected $comment; |
|
| 40 | - protected $pollId; |
|
| 37 | + protected $userId; |
|
| 38 | + protected $dt; |
|
| 39 | + protected $comment; |
|
| 40 | + protected $pollId; |
|
| 41 | 41 | } |
@@ -30,6 +30,6 @@ |
||
| 30 | 30 | * @method void setPollId(integer $value) |
| 31 | 31 | */ |
| 32 | 32 | class Date extends Model { |
| 33 | - protected $dt; |
|
| 34 | - protected $pollId; |
|
| 33 | + protected $dt; |
|
| 34 | + protected $pollId; |
|
| 35 | 35 | } |
@@ -34,6 +34,6 @@ |
||
| 34 | 34 | * @param $value |
| 35 | 35 | */ |
| 36 | 36 | public function __set($name, $value) { |
| 37 | - $this->setter($name, [$value]); |
|
| 37 | + $this->setter($name, [ $value ]); |
|
| 38 | 38 | } |
| 39 | 39 | } |
@@ -26,14 +26,14 @@ |
||
| 26 | 26 | use OCP\AppFramework\Db\Entity; |
| 27 | 27 | |
| 28 | 28 | abstract class Model extends Entity { |
| 29 | - /** |
|
| 30 | - * FactoryMuffin checks for the existence of setters with method_exists($obj, $attr) but that returns false. |
|
| 31 | - * By overwriting the __set() magic method we can trigger the changed flag on $obj->attr assignment. |
|
| 32 | - * |
|
| 33 | - * @param $name |
|
| 34 | - * @param $value |
|
| 35 | - */ |
|
| 36 | - public function __set($name, $value) { |
|
| 37 | - $this->setter($name, [$value]); |
|
| 38 | - } |
|
| 29 | + /** |
|
| 30 | + * FactoryMuffin checks for the existence of setters with method_exists($obj, $attr) but that returns false. |
|
| 31 | + * By overwriting the __set() magic method we can trigger the changed flag on $obj->attr assignment. |
|
| 32 | + * |
|
| 33 | + * @param $name |
|
| 34 | + * @param $value |
|
| 35 | + */ |
|
| 36 | + public function __set($name, $value) { |
|
| 37 | + $this->setter($name, [$value]); |
|
| 38 | + } |
|
| 39 | 39 | } |
@@ -46,14 +46,14 @@ |
||
| 46 | 46 | * @method void setFullAnonymous(integer $value) |
| 47 | 47 | */ |
| 48 | 48 | class Event extends Model { |
| 49 | - protected $type; |
|
| 50 | - protected $title; |
|
| 51 | - protected $description; |
|
| 52 | - protected $owner; |
|
| 53 | - protected $created; |
|
| 54 | - protected $access; |
|
| 55 | - protected $expire; |
|
| 56 | - protected $hash; |
|
| 57 | - protected $isAnonymous; |
|
| 58 | - protected $fullAnonymous; |
|
| 49 | + protected $type; |
|
| 50 | + protected $title; |
|
| 51 | + protected $description; |
|
| 52 | + protected $owner; |
|
| 53 | + protected $created; |
|
| 54 | + protected $access; |
|
| 55 | + protected $expire; |
|
| 56 | + protected $hash; |
|
| 57 | + protected $isAnonymous; |
|
| 58 | + protected $fullAnonymous; |
|
| 59 | 59 | } |
@@ -34,8 +34,8 @@ |
||
| 34 | 34 | * @method void setType(integer $value) |
| 35 | 35 | */ |
| 36 | 36 | class Participation extends Model { |
| 37 | - protected $dt; |
|
| 38 | - protected $userId; |
|
| 39 | - protected $pollId; |
|
| 40 | - protected $type; |
|
| 37 | + protected $dt; |
|
| 38 | + protected $userId; |
|
| 39 | + protected $pollId; |
|
| 40 | + protected $type; |
|
| 41 | 41 | } |
@@ -30,6 +30,6 @@ |
||
| 30 | 30 | * @method void setPollId(integer $value) |
| 31 | 31 | */ |
| 32 | 32 | class Text extends Model { |
| 33 | - protected $text; |
|
| 34 | - protected $pollId; |
|
| 33 | + protected $text; |
|
| 34 | + protected $pollId; |
|
| 35 | 35 | } |
@@ -34,8 +34,8 @@ |
||
| 34 | 34 | * @method void setType(integer $value) |
| 35 | 35 | */ |
| 36 | 36 | class ParticipationText extends Model { |
| 37 | - protected $text; |
|
| 38 | - protected $userId; |
|
| 39 | - protected $pollId; |
|
| 40 | - protected $type; |
|
| 37 | + protected $text; |
|
| 38 | + protected $userId; |
|
| 39 | + protected $pollId; |
|
| 40 | + protected $type; |
|
| 41 | 41 | } |
@@ -30,6 +30,6 @@ |
||
| 30 | 30 | * @method void setPollId(string $value) |
| 31 | 31 | */ |
| 32 | 32 | class Notification extends Model { |
| 33 | - protected $userId; |
|
| 34 | - protected $pollId; |
|
| 33 | + protected $userId; |
|
| 34 | + protected $pollId; |
|
| 35 | 35 | } |