Completed
Branch master (de1ee7)
by Jacob
05:01
created
utility/Cookie.class.inc.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -14,9 +14,20 @@  discard block
 block discarded – undo
14 14
 		$this->class_new = $class_name;
15 15
 	}
16 16
 
17
+	/**
18
+	 * @return string
19
+	 */
17 20
 	abstract protected function getName();
18 21
 	abstract protected function getDuration();
22
+
23
+	/**
24
+	 * @return string|null
25
+	 */
19 26
 	abstract protected function getDomain();
27
+
28
+	/**
29
+	 * @return string|null
30
+	 */
20 31
 	abstract protected function getPath();
21 32
 
22 33
 	public function setValue($value)
@@ -28,6 +39,9 @@  discard block
 block discarded – undo
28 39
 		return $this;
29 40
 	}
30 41
 
42
+	/**
43
+	 * @return string|null
44
+	 */
31 45
 	public function getValue()
32 46
 	{
33 47
 		if(!$this->is_loaded)
@@ -118,6 +132,9 @@  discard block
 block discarded – undo
118 132
 		return $set_cookie;
119 133
 	}
120 134
 
135
+	/**
136
+	 * @param string $class_name
137
+	 */
121 138
 	public static function instance($class_name)
122 139
 	{
123 140
 		return Loader::loadNew('utility', "cookie/{$class_name}Cookie", (array) $class_name);
Please login to merge, or discard this patch.
utility/cron/ChangelogCron.class.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -49,6 +49,9 @@
 block discarded – undo
49 49
 		Database::execute($query);
50 50
 	}
51 51
 
52
+	/**
53
+	 * @return string
54
+	 */
52 55
 	private function get_changeset_to_check()
53 56
 	{
54 57
 		$changeset = ChangelogCollector::getMostRecentChange();
Please login to merge, or discard this patch.
utility/cron/Cron.class.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@
 block discarded – undo
7 7
 
8 8
 	abstract public function activate();
9 9
 
10
+	/**
11
+	 * @param string $value
12
+	 */
10 13
 	protected function error($value)
11 14
 	{
12 15
 		trigger_error("Cron failed: {$value}");
Please login to merge, or discard this patch.
utility/cron/StreamCron.class.inc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@  discard block
 block discarded – undo
59 59
 		$this->add_posts($youtube_result, 'youtube');
60 60
 	}
61 61
 
62
+	/**
63
+	 * @param string $type
64
+	 */
62 65
 	private function remove_existing($result, $type)
63 66
 	{
64 67
 		foreach($result as $key => $row)
@@ -70,6 +73,9 @@  discard block
 block discarded – undo
70 73
 		return $result;
71 74
 	}
72 75
 
76
+	/**
77
+	 * @param string $type
78
+	 */
73 79
 	private function add_posts($result, $type)
74 80
 	{
75 81
 		foreach($result as $row)
Please login to merge, or discard this patch.
utility/cron/TwitterCron.class.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -239,6 +239,9 @@
 block discarded – undo
239 239
 		return $text;
240 240
 	}
241 241
 
242
+	/**
243
+	 * @param string $type
244
+	 */
242 245
 	private function get_replace_text($entity_type, $entity, $type)
243 246
 	{
244 247
 		switch($entity_type)
Please login to merge, or discard this patch.
utility/Debugger.class.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@
 block discarded – undo
28 28
 		return self::$instance;
29 29
 	}
30 30
 
31
+	/**
32
+	 * @param string $message
33
+	 */
31 34
 	public static function log($message)
32 35
 	{
33 36
 		self::instance()->console->logError('Gah, this is using Debugger::log()!');
Please login to merge, or discard this patch.
utility/Header.class.inc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -74,6 +74,9 @@  discard block
 block discarded – undo
74 74
 		self::send($array);
75 75
 	}
76 76
 
77
+	/**
78
+	 * @param integer $timestamp
79
+	 */
77 80
 	public static function sendCSS($timestamp)
78 81
 	{
79 82
 		$array = array(
@@ -184,6 +187,9 @@  discard block
 block discarded – undo
184 187
 		self::send($array);
185 188
 	}
186 189
 
190
+	/**
191
+	 * @param string[] $array
192
+	 */
187 193
 	private static function send($array, $gzip = true)
188 194
 	{
189 195
 		if($gzip)
Please login to merge, or discard this patch.
utility/Loader.class.inc.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@  discard block
 block discarded – undo
69 69
 		return $extension;
70 70
 	}
71 71
 
72
+	/**
73
+	 * @param string $type
74
+	 */
72 75
 	public static function getImagePath($type, $file)
73 76
 	{
74 77
 		if($type == 'photo')
@@ -142,6 +145,10 @@  discard block
 block discarded – undo
142 145
 		return new ReflectionClass($class_name);
143 146
 	}
144 147
 
148
+	/**
149
+	 * @param string $type
150
+	 * @param string $file
151
+	 */
145 152
 	public static function loadInstance($type, $file)
146 153
 	{
147 154
 		self::load($type, $file);
@@ -157,6 +164,9 @@  discard block
 block discarded – undo
157 164
 		trigger_error("Requested class cannot be instance'd: {$type}, {$file}");
158 165
 	}
159 166
 
167
+	/**
168
+	 * @param string $type
169
+	 */
160 170
 	public static function loadNew($type, $file, $data = array())
161 171
 	{
162 172
 		self::load($type, $file);
Please login to merge, or discard this patch.
utility/Mail.class.inc.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@  discard block
 block discarded – undo
18 18
 		$this->headers['Bcc'] = "Jacob <{$config->admin_email}>";
19 19
 	}
20 20
 
21
+	/**
22
+	 * @param string $person
23
+	 */
21 24
 	public function setToAddress($email, $person = null)
22 25
 	{
23 26
 		if($person)
@@ -27,12 +30,18 @@  discard block
 block discarded – undo
27 30
 		return $this;
28 31
 	}
29 32
 
33
+	/**
34
+	 * @param string $subject
35
+	 */
30 36
 	public function setSubject($subject)
31 37
 	{
32 38
 		$this->subject = $subject;
33 39
 		return $this;
34 40
 	}
35 41
 
42
+	/**
43
+	 * @param string $message
44
+	 */
36 45
 	public function setMessage($message)
37 46
 	{
38 47
 		$this->message = $message;
Please login to merge, or discard this patch.