Completed
Push — master ( 6d742b...a712f0 )
by Jacob
03:01
created
utility/Header.class.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -131,6 +131,9 @@
 block discarded – undo
131 131
 		self::send($array);
132 132
 	}
133 133
 
134
+	/**
135
+	 * @param string[] $array
136
+	 */
134 137
 	private static function send($array, $gzip = true)
135 138
 	{
136 139
 		if($gzip)
Please login to merge, or discard this patch.
src/Domain/Blog/Post/MysqlPostRepository.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     protected $connections;
12 12
 
13 13
     /**
14
-     * @param Aura\Sql\ConnectionLocator $connections
14
+     * @param ConnectionLocator $connections
15 15
      */
16 16
     public function __construct(ConnectionLocator $connections)
17 17
     {
@@ -41,6 +41,9 @@  discard block
 block discarded – undo
41 41
             ->fetchOne($query, $bindings);
42 42
     }
43 43
 
44
+    /**
45
+     * @param integer $limit
46
+     */
44 47
     public function getActivePosts($limit = null, $offset = 0)
45 48
     {
46 49
         $query = "
@@ -79,6 +82,9 @@  discard block
 block discarded – undo
79 82
             ->fetchValue($query, $bindings);
80 83
     }
81 84
 
85
+    /**
86
+     * @param integer $limit
87
+     */
82 88
     public function getActivePostsByTag($tag, $limit = null, $offset = 0)
83 89
     {
84 90
         $query = "
@@ -122,6 +128,9 @@  discard block
 block discarded – undo
122 128
             ->fetchValue($query, $bindings);
123 129
     }
124 130
 
131
+    /**
132
+     * @param integer $limit
133
+     */
125 134
     public function getActivePostsByCategory($category, $limit = null, $offset = 0)
126 135
     {
127 136
         $query = "
Please login to merge, or discard this patch.
controller/PageController.class.inc.php 1 patch
Doc Comments   +31 added lines patch added patch discarded remove patch
@@ -113,6 +113,9 @@  discard block
 block discarded – undo
113 113
 			exit;
114 114
 	}
115 115
 
116
+	/**
117
+	 * @param string $method
118
+	 */
116 119
 	protected function set_header_method($method)
117 120
 	{
118 121
 		$this->headers = $method;
@@ -123,6 +126,9 @@  discard block
 block discarded – undo
123 126
 		$this->set_head('title', $value);
124 127
 	}
125 128
 
129
+	/**
130
+	 * @param string $value
131
+	 */
126 132
 	protected function set_author($value)
127 133
 	{
128 134
 		$this->set_head('author', $value);
@@ -138,26 +144,41 @@  discard block
 block discarded – undo
138 144
 		$this->set_head('keywords', implode(', ', $array));
139 145
 	}
140 146
 	
147
+	/**
148
+	 * @param string $url
149
+	 */
141 150
 	protected function set_canonical($url)
142 151
 	{
143 152
 		$this->set_head('canonical', $url);
144 153
 	}
145 154
 
155
+	/**
156
+	 * @param string $set
157
+	 */
146 158
 	protected function set_head($set, $value)
147 159
 	{
148 160
 		$this->data_array['head'][$set] = $value;
149 161
 	}
150 162
 
163
+	/**
164
+	 * @param string $set
165
+	 */
151 166
 	protected function set_body($set, $value)
152 167
 	{
153 168
 		$this->data_array['body'][$set] = $value;
154 169
 	}
155 170
 
171
+	/**
172
+	 * @param string $file
173
+	 */
156 174
 	protected function add_css($file, $version = 1)
157 175
 	{
158 176
 		$this->css_array[] = [$file, $version];
159 177
 	}
160 178
 
179
+	/**
180
+	 * @param string $file
181
+	 */
161 182
 	protected function add_js($file)
162 183
 	{
163 184
 		$this->js_array[] = $file;
@@ -183,6 +204,9 @@  discard block
 block discarded – undo
183 204
 		$this->set_head('js_link_array', $js_array);
184 205
 	}
185 206
 
207
+	/**
208
+	 * @param string $view
209
+	 */
186 210
 	protected function set_body_view($view)
187 211
 	{
188 212
 		$this->body_view_array[] = $view;
@@ -227,6 +251,10 @@  discard block
 block discarded – undo
227 251
 	}
228 252
 
229 253
 	private $comment_errors;
254
+
255
+	/**
256
+	 * @param string $redirect_url
257
+	 */
230 258
 	protected function handle_comment_submit($site_id, $path, $redirect_url, $page_title)
231 259
 	{
232 260
 		if(Request::hasPost() && Request::getPost('submit') == 'Submit Comment')
@@ -238,6 +266,9 @@  discard block
 block discarded – undo
238 266
 		return;
239 267
 	}
240 268
 
269
+    /**
270
+     * @param string $site
271
+     */
241 272
     protected function get_comment_array($site, $path)
242 273
     {
243 274
         global $container;
Please login to merge, or discard this patch.
collector/waterfall/LogCollector.class.inc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@  discard block
 block discarded – undo
34 34
 		return self::run_query($query);
35 35
 	}
36 36
 
37
+    /**
38
+     * @param integer $total
39
+     */
37 40
     public static function getRecentList($total)
38 41
     {
39 42
         $query = "
@@ -178,6 +181,9 @@  discard block
 block discarded – undo
178 181
 		return self::run_row_query($query);
179 182
 	}
180 183
 
184
+    /**
185
+     * @param string $date
186
+     */
181 187
     public static function getByDate($date)
182 188
     {
183 189
         $date = self::escape($date);
Please login to merge, or discard this patch.
collector/waterfall/WaterfallCollector.class.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -117,6 +117,9 @@
 block discarded – undo
117 117
         return self::run_query($query);
118 118
     }
119 119
 
120
+    /**
121
+     * @param string $alias
122
+     */
120 123
     public static function getByOldAlias($alias)
121 124
     {
122 125
         $alias = self::escape($alias);
Please login to merge, or discard this patch.
controller/blog/DefaultPageController.class.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -94,6 +94,9 @@
 block discarded – undo
94 94
 		return $tag_array;
95 95
 	}
96 96
 
97
+	/**
98
+	 * @param boolean $trim
99
+	 */
97 100
 	final private function get_body_for_post($post, $trim)
98 101
 	{
99 102
 		$body = $post['body'];
Please login to merge, or discard this patch.
src/Domain/Waterfall/Companion/MysqlCompanionRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     protected $connections;
12 12
 
13 13
     /**
14
-     * @param Aura\Sql\ConnectionLocator $connections
14
+     * @param ConnectionLocator $connections
15 15
      */
16 16
     public function __construct(ConnectionLocator $connections)
17 17
     {
Please login to merge, or discard this patch.
src/Domain/Waterfall/County/MysqlCountyRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     protected $connections;
12 12
 
13 13
     /**
14
-     * @param Aura\Sql\ConnectionLocator $connections
14
+     * @param ConnectionLocator $connections
15 15
      */
16 16
     public function __construct(ConnectionLocator $connections)
17 17
     {
Please login to merge, or discard this patch.
src/Domain/Waterfall/Log/MysqlLogRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     protected $connections;
12 12
 
13 13
     /**
14
-     * @param Aura\Sql\ConnectionLocator $connections
14
+     * @param ConnectionLocator $connections
15 15
      */
16 16
     public function __construct(ConnectionLocator $connections)
17 17
     {
Please login to merge, or discard this patch.