Passed
Pull Request — master (#224)
by Kai
02:28
created
tests/Unit/Db/ParticipationMapperTest.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,17 +29,17 @@
 block discarded – undo
29 29
 
30 30
 class ParticipationMapperTest extends PHPUnit_Framework_TestCase {
31 31
 
32
-	/** @var IDBConnection */
33
-	private $con;
34
-	/** @var ParticipationMapper */
35
-	private $participationMapper;
32
+    /** @var IDBConnection */
33
+    private $con;
34
+    /** @var ParticipationMapper */
35
+    private $participationMapper;
36 36
 
37
-	/**
38
-	 * {@inheritDoc}
39
-	 */
40
-	public function setUp() {
41
-		parent::setUp();
42
-		$this->con = \OC::$server->getDatabaseConnection();
43
-		$this->participationMapper = new ParticipationMapper($this->con);
44
-	}
37
+    /**
38
+     * {@inheritDoc}
39
+     */
40
+    public function setUp() {
41
+        parent::setUp();
42
+        $this->con = \OC::$server->getDatabaseConnection();
43
+        $this->participationMapper = new ParticipationMapper($this->con);
44
+    }
45 45
 }
Please login to merge, or discard this patch.
tests/Unit/Db/EventMapperTest.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,17 +29,17 @@
 block discarded – undo
29 29
 
30 30
 class EventMapperTest extends PHPUnit_Framework_TestCase {
31 31
 
32
-	/** @var IDBConnection */
33
-	private $con;
34
-	/** @var EventMapper */
35
-	private $eventMapper;
32
+    /** @var IDBConnection */
33
+    private $con;
34
+    /** @var EventMapper */
35
+    private $eventMapper;
36 36
 
37
-	/**
38
-	 * {@inheritDoc}
39
-	 */
40
-	public function setUp() {
41
-		parent::setUp();
42
-		$this->con = \OC::$server->getDatabaseConnection();
43
-		$this->eventMapper = new EventMapper($this->con);
44
-	}
37
+    /**
38
+     * {@inheritDoc}
39
+     */
40
+    public function setUp() {
41
+        parent::setUp();
42
+        $this->con = \OC::$server->getDatabaseConnection();
43
+        $this->eventMapper = new EventMapper($this->con);
44
+    }
45 45
 }
Please login to merge, or discard this patch.
tests/Unit/Db/TextMapperTest.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,17 +29,17 @@
 block discarded – undo
29 29
 
30 30
 class TextMapperTest extends PHPUnit_Framework_TestCase {
31 31
 
32
-	/** @var IDBConnection */
33
-	private $con;
34
-	/** @var TextMapper */
35
-	private $textMapper;
32
+    /** @var IDBConnection */
33
+    private $con;
34
+    /** @var TextMapper */
35
+    private $textMapper;
36 36
 
37
-	/**
38
-	 * {@inheritDoc}
39
-	 */
40
-	public function setUp() {
41
-		parent::setUp();
42
-		$this->con = \OC::$server->getDatabaseConnection();
43
-		$this->textMapper = new TextMapper($this->con);
44
-	}
37
+    /**
38
+     * {@inheritDoc}
39
+     */
40
+    public function setUp() {
41
+        parent::setUp();
42
+        $this->con = \OC::$server->getDatabaseConnection();
43
+        $this->textMapper = new TextMapper($this->con);
44
+    }
45 45
 }
Please login to merge, or discard this patch.
tests/Unit/Db/DateMapperTest.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,17 +29,17 @@
 block discarded – undo
29 29
 
30 30
 class DateMapperTest extends PHPUnit_Framework_TestCase {
31 31
 
32
-	/** @var IDBConnection */
33
-	private $con;
34
-	/** @var DateMapper */
35
-	private $dateMapper;
32
+    /** @var IDBConnection */
33
+    private $con;
34
+    /** @var DateMapper */
35
+    private $dateMapper;
36 36
 
37
-	/**
38
-	 * {@inheritDoc}
39
-	 */
40
-	public function setUp() {
41
-		parent::setUp();
42
-		$this->con = \OC::$server->getDatabaseConnection();
43
-		$this->dateMapper = new DateMapper($this->con);
44
-	}
37
+    /**
38
+     * {@inheritDoc}
39
+     */
40
+    public function setUp() {
41
+        parent::setUp();
42
+        $this->con = \OC::$server->getDatabaseConnection();
43
+        $this->dateMapper = new DateMapper($this->con);
44
+    }
45 45
 }
Please login to merge, or discard this patch.
tests/Unit/Db/NotificationMapperTest.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,17 +29,17 @@
 block discarded – undo
29 29
 
30 30
 class NotificationMapperTest extends PHPUnit_Framework_TestCase {
31 31
 
32
-	/** @var IDBConnection */
33
-	private $con;
34
-	/** @var NotificationMapper */
35
-	private $notificationMapper;
32
+    /** @var IDBConnection */
33
+    private $con;
34
+    /** @var NotificationMapper */
35
+    private $notificationMapper;
36 36
 
37
-	/**
38
-	 * {@inheritDoc}
39
-	 */
40
-	public function setUp() {
41
-		parent::setUp();
42
-		$this->con = \OC::$server->getDatabaseConnection();
43
-		$this->notificationMapper = new NotificationMapper($this->con);
44
-	}
37
+    /**
38
+     * {@inheritDoc}
39
+     */
40
+    public function setUp() {
41
+        parent::setUp();
42
+        $this->con = \OC::$server->getDatabaseConnection();
43
+        $this->notificationMapper = new NotificationMapper($this->con);
44
+    }
45 45
 }
Please login to merge, or discard this patch.
lib/Db/Comment.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Db/Date.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Db/Model.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -26,14 +26,14 @@
 block discarded – undo
26 26
 use OCP\AppFramework\Db\Entity;
27 27
 
28 28
 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
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Db/Event.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.