Passed
Pull Request — develop-0.9 (#315)
by René
16:01
created
tests/Unit/Factories/CommentFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
  */
29 29
 $fm->define('OCA\Polls\Db\Comment')->setDefinitions([
30 30
 	'userId' => Faker::firstNameMale(),
31
-	'dt' => function () {
31
+	'dt' => function() {
32 32
 		$date = new DateTime('today');
33 33
 		return $date->format('Y-m-d H:i:s');
34 34
 	},
Please login to merge, or discard this patch.
tests/Unit/Factories/EventFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
31 31
 	'title' => Faker::sentence(10),
32 32
 	'description' => Faker::text(255),
33 33
 	'owner' => Faker::firstNameMale(),
34
-	'created' => function () {
34
+	'created' => function() {
35 35
 		$date = new DateTime('today');
36 36
 		return $date->format('Y-m-d H:i:s');
37 37
 	},
38 38
 	'access' => 'registered',
39
-	'expire' => function () {
39
+	'expire' => function() {
40 40
 		$date = new DateTime('tomorrow');
41 41
 		return $date->format('Y-m-d H:i:s');
42 42
 	},
Please login to merge, or discard this patch.
lib/Migration/Version009000Date20171202105141.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -353,7 +353,7 @@
 block discarded – undo
353 353
 			// ->where($queryFind->expr()->eq('poll_id', $pollId))
354 354
 			// ->andWhere($queryFind->expr()->eq('poll_option', $text));
355 355
 			->where('poll_id = "' . $pollId . '"')
356
-			->andWhere('poll_option_text ="' . $text .'"');
356
+			->andWhere('poll_option_text ="' . $text . '"');
357 357
 
358 358
 		$resultFind = $queryFind->execute();
359 359
 		$row = $resultFind->fetch();
Please login to merge, or discard this patch.
lib/Controller/ApiController.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -81,12 +81,12 @@
 block discarded – undo
81 81
 	}
82 82
 
83 83
   	/**
84
-	 * @NoAdminRequired
85
-	 * @NoCSRFRequired
86
-	 * @PublicPage
87
-	 * @param string $hash
88
-	 * @return DataResponse
89
-	*/
84
+  	 * @NoAdminRequired
85
+  	 * @NoCSRFRequired
86
+  	 * @PublicPage
87
+  	 * @param string $hash
88
+  	 * @return DataResponse
89
+  	 */
90 90
 	public function getPoll($hash) {
91 91
 		if (!\OC::$server->getUserSession()->getUser() instanceof IUser) {
92 92
 			return new DataResponse(null, Http::STATUS_UNAUTHORIZED);
Please login to merge, or discard this patch.