Completed
Pull Request — master (#291)
by Robert
02:00
created
templates/main.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 Util::addScript('deck', 'vendor/markdown-it-link-target/dist/markdown-it-link-target.min');
39 39
 Util::addScript('deck', 'vendor/jquery-timepicker/jquery.ui.timepicker');
40 40
 
41
-if(!\OC::$server->getConfig()->getSystemValue('debug', false)) {
41
+if (!\OC::$server->getConfig()->getSystemValue('debug', false)) {
42 42
 	Util::addScript('deck', 'public/app');
43 43
 } else {
44 44
 	// Load seperate JS files when debug mode is enabled
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
 		'filters' => ['boardFilterAcl', 'cardFilter', 'cardSearchFilter', 'iconWhiteFilter', 'lightenColorFilter', 'orderObjectBy', 'dateFilters', 'textColorFilter'],
50 50
 		'service' => ['ApiService', 'BoardService', 'CardService', 'LabelService', 'StackService', 'StatusService'],
51 51
 	];
52
-	foreach($js as $folder=>$files) {
52
+	foreach ($js as $folder=>$files) {
53 53
 		foreach ($files as $file) {
54
-			Util::addScript('deck', $folder.'/'.$file);
54
+			Util::addScript('deck', $folder . '/' . $file);
55 55
 		}
56 56
 	}
57 57
 }
Please login to merge, or discard this patch.
lib/Db/Card.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	}
60 60
 
61 61
 	public function getDuedate() {
62
-		if($this->duedate === null)
62
+		if ($this->duedate === null)
63 63
 			return null;
64 64
 		$dt = new DateTime($this->duedate);
65 65
 		return $dt->format('c');
@@ -71,16 +71,16 @@  discard block
 block discarded – undo
71 71
 		$due = strtotime($this->duedate);
72 72
 
73 73
 		$today = new DateTime();
74
-		$today->setTime( 0, 0, 0 );
74
+		$today->setTime(0, 0, 0);
75 75
 
76 76
 		$match_date = new DateTime($this->duedate);
77 77
 
78
-		$match_date->setTime( 0, 0, 0 );
78
+		$match_date->setTime(0, 0, 0);
79 79
 
80
-		$diff = $today->diff( $match_date );
81
-		$diffDays = (integer)$diff->format( "%R%a" ); // Extract days count in interval
80
+		$diff = $today->diff($match_date);
81
+		$diffDays = (integer) $diff->format("%R%a"); // Extract days count in interval
82 82
 
83
-		if($due !== false) {
83
+		if ($due !== false) {
84 84
 			if ($diffDays === 1) {
85 85
 				$json['overdue'] = self::DUEDATE_NEXT;
86 86
 			}
Please login to merge, or discard this patch.