Completed
Push — master ( 67df75...25777a )
by Jacob
09:40 queued 05:17
created
utility/CronController.class.inc.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 		{
27 27
 			//if(!$this->time_to_run($frequency))
28 28
 			//	continue;
29
-            if ($cron != 'TwitterCron') continue;
29
+			if ($cron != 'TwitterCron') continue;
30 30
 			
31 31
 			Loader::load('utility', "cron/{$cron}");
32 32
 			$reflection = new ReflectionClass($cron);
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
 	public function activate()
24 24
 	{
25
-		foreach(self::$CRON_ARRAY as $cron => $frequency)
25
+		foreach (self::$CRON_ARRAY as $cron => $frequency)
26 26
 		{
27 27
 			//if(!$this->time_to_run($frequency))
28 28
 			//	continue;
@@ -49,19 +49,19 @@  discard block
 block discarded – undo
49 49
 		$operator = explode(' ', $frequency);
50 50
 		list($time['minute'], $time['hour'], $time['day'], $time['month'], $time['weekday']) = $operator;
51 51
 		
52
-		foreach($time as $key => $value)
52
+		foreach ($time as $key => $value)
53 53
 		{
54
-			if($value == '*')
54
+			if ($value == '*')
55 55
 				continue;
56
-			if(stristr($value, '/'))
56
+			if (stristr($value, '/'))
57 57
 			{
58 58
 				$value = substr($value, 2);
59
-				if($cur[$key] % $value == 0)
59
+				if ($cur[$key] % $value == 0)
60 60
 					continue;
61 61
 				else
62 62
 					return;
63 63
 			}
64
-			if($cur[$key] == $value)
64
+			if ($cur[$key] == $value)
65 65
 				continue;
66 66
 			return;
67 67
 		}
Please login to merge, or discard this patch.
Braces   +14 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@  discard block
 block discarded – undo
26 26
 		{
27 27
 			//if(!$this->time_to_run($frequency))
28 28
 			//	continue;
29
-            if ($cron != 'TwitterCron') continue;
29
+            if ($cron != 'TwitterCron') {
30
+            	continue;
31
+            }
30 32
 			
31 33
 			Loader::load('utility', "cron/{$cron}");
32 34
 			$reflection = new ReflectionClass($cron);
@@ -51,18 +53,21 @@  discard block
 block discarded – undo
51 53
 		
52 54
 		foreach($time as $key => $value)
53 55
 		{
54
-			if($value == '*')
55
-				continue;
56
+			if($value == '*') {
57
+							continue;
58
+			}
56 59
 			if(stristr($value, '/'))
57 60
 			{
58 61
 				$value = substr($value, 2);
59
-				if($cur[$key] % $value == 0)
60
-					continue;
61
-				else
62
-					return;
62
+				if($cur[$key] % $value == 0) {
63
+									continue;
64
+				} else {
65
+									return;
66
+				}
63 67
 			}
64
-			if($cur[$key] == $value)
65
-				continue;
68
+			if($cur[$key] == $value) {
69
+							continue;
70
+			}
66 71
 			return;
67 72
 		}
68 73
 		return true;
Please login to merge, or discard this patch.
utility/Mail.class.inc.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 	public function __construct()
14 14
 	{
15
-        global $config;
15
+		global $config;
16 16
 		$this->headers['From'] = self::$FROM;
17 17
 		$this->headers['Reply-To'] = "Jacob <{$config->admin_email}>";
18 18
 		$this->headers['Bcc'] = "Jacob <{$config->admin_email}>";
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
 	public function setToAddress($email, $person = null)
22 22
 	{
23
-		if($person)
23
+		if ($person)
24 24
 			$this->to[] = "{$person} <{$email}>";
25 25
 		else
26 26
 			$this->to[] = "{$email}";
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
 	public function send()
43 43
 	{
44
-		if(!Loader::isLive())
44
+		if (!Loader::isLive())
45 45
 		{
46 46
 			Debugger::logMessage("Email Failed:\n\n{$this->message}");
47 47
 			return;
@@ -51,14 +51,14 @@  discard block
 block discarded – undo
51 51
 		$subject = $this->subject;
52 52
 		$message = $this->message;
53 53
 		
54
-		if(empty($to) || empty($subject) || empty($message))
54
+		if (empty($to) || empty($subject) || empty($message))
55 55
 		{
56 56
 			Debugger::logMessage("Attempted to send an email without all of the required fields.");
57 57
 			return;
58 58
 		}
59 59
 		
60 60
 		$header = '';
61
-		foreach($this->headers as $key => $value)
61
+		foreach ($this->headers as $key => $value)
62 62
 		{
63 63
 			$header .= "{$key}: {$value}\r\n";
64 64
 		}
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,10 +20,11 @@
 block discarded – undo
20 20
 
21 21
 	public function setToAddress($email, $person = null)
22 22
 	{
23
-		if($person)
24
-			$this->to[] = "{$person} <{$email}>";
25
-		else
26
-			$this->to[] = "{$email}";
23
+		if($person) {
24
+					$this->to[] = "{$person} <{$email}>";
25
+		} else {
26
+					$this->to[] = "{$email}";
27
+		}
27 28
 		return $this;
28 29
 	}
29 30
 
Please login to merge, or discard this patch.