Completed
Push — master ( 935bc7...c2ccbb )
by Joram van den
05:27
created
lib/Ajde/Dump.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
         self::$dump[$source] = [$var, $expand];
31 31
     }
32 32
 
33
+    /**
34
+     * @param string $message
35
+     */
33 36
     public static function warn($message)
34 37
     {
35 38
         self::$warn[] = $message;
Please login to merge, or discard this patch.
lib/Ajde/Event.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -33,6 +33,10 @@  discard block
 block discarded – undo
33 33
         return false;
34 34
     }
35 35
 
36
+    /**
37
+     * @param string $event
38
+     * @param string $callback
39
+     */
36 40
     public static function has($object, $event, $callback = null)
37 41
     {
38 42
         if (isset($callback)) {
@@ -44,6 +48,9 @@  discard block
 block discarded – undo
44 48
         }
45 49
     }
46 50
 
51
+    /**
52
+     * @param string $event
53
+     */
47 54
     public static function trigger($object, $event, array $parameters = [])
48 55
     {
49 56
         foreach (self::$eventStack as $className => $eventStack) {
Please login to merge, or discard this patch.
lib/Ajde/Exception/Handler.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -196,6 +196,9 @@  discard block
 block discarded – undo
196 196
         return $type;
197 197
     }
198 198
 
199
+    /**
200
+     * @return string
201
+     */
199 202
     public static function getExceptionChannelMap(Exception $exception)
200 203
     {
201 204
         if ($exception instanceof ErrorException) {
@@ -211,6 +214,9 @@  discard block
 block discarded – undo
211 214
         }
212 215
     }
213 216
 
217
+    /**
218
+     * @return string
219
+     */
214 220
     public static function getExceptionLevelMap(Exception $exception)
215 221
     {
216 222
         if ($exception instanceof ErrorException) {
@@ -266,6 +272,9 @@  discard block
 block discarded – undo
266 272
 
267 273
     static $firstApplicationFileExpanded = false;
268 274
 
275
+    /**
276
+     * @param string $arguments
277
+     */
269 278
     protected static function embedScript($filename = null, $line = null, $arguments = null, $expand = false)
270 279
     {
271 280
         $lineOffset = 5;
Please login to merge, or discard this patch.
lib/Ajde/FS/Directory.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -14,11 +14,18 @@
 block discarded – undo
14 14
         }
15 15
     }
16 16
 
17
+    /**
18
+     * @param string $dir
19
+     */
17 20
     public static function truncate($dir)
18 21
     {
19 22
         self::delete($dir, true);
20 23
     }
21 24
 
25
+    /**
26
+     * @param string $src
27
+     * @param string $dst
28
+     */
22 29
     public static function copy($src, $dst)
23 30
     {
24 31
         $dir = opendir($src);
Please login to merge, or discard this patch.
lib/Ajde/FS/File.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -5,6 +5,9 @@  discard block
 block discarded – undo
5 5
     const TYPE_EXTENSION = 'ext';
6 6
     const TYPE_MIMETYPE = 'mime';
7 7
 
8
+    /**
9
+     * @param string $filename
10
+     */
8 11
     public static function getMimeType($filename)
9 12
     {
10 13
         $realpath = realpath($filename);
@@ -27,6 +30,9 @@  discard block
 block discarded – undo
27 30
         return false;
28 31
     }
29 32
 
33
+    /**
34
+     * @param string|false $mimeType
35
+     */
30 36
     public static function getExtensionFromMime($mimeType)
31 37
     {
32 38
         $mimes = self::_mimetypes();
Please login to merge, or discard this patch.
lib/Ajde/FS/Find.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -2,6 +2,9 @@  discard block
 block discarded – undo
2 2
 
3 3
 class Ajde_Fs_Find extends Ajde_Object_Static
4 4
 {
5
+    /**
6
+     * @param string $pattern
7
+     */
5 8
     public static function findFile($dir, $pattern)
6 9
     {
7 10
         $search = Config::get("local_root") . DIRECTORY_SEPARATOR . $dir . $pattern;
@@ -28,6 +31,10 @@  discard block
 block discarded – undo
28 31
         return $return;
29 32
     }
30 33
 
34
+    /**
35
+     * @param string $dir
36
+     * @param string $pattern
37
+     */
31 38
     public static function findFilenames($dir, $pattern, $flags = 0)
32 39
     {
33 40
         $files = self::findFiles($dir, $pattern, $flags);
Please login to merge, or discard this patch.
lib/Ajde/Http/Curl.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      *
117 117
      * @param string $url
118 118
      * @param bool|string $toFile
119
-     * @param bool|array $header
119
+     * @param string[] $header
120 120
      * @return string
121 121
      * @throws Exception
122 122
      */
@@ -215,6 +215,9 @@  discard block
 block discarded – undo
215 215
         return $output;
216 216
     }
217 217
 
218
+    /**
219
+     * @param string $filename
220
+     */
218 221
     public static function download($url, $filename)
219 222
     {
220 223
         return self::get($url, $filename);
@@ -222,6 +225,7 @@  discard block
 block discarded – undo
222 225
 
223 226
     /**
224 227
      * @source http://stackoverflow.com/a/5498992/938297
228
+     * @param resource $ch
225 229
      */
226 230
     private static function _curl_exec_follow(&$ch, $redirects = 20, $curlopt_header = false)
227 231
     {
Please login to merge, or discard this patch.
lib/Ajde/Http/Request.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -169,6 +169,9 @@  discard block
 block discarded – undo
169 169
         return false;
170 170
     }
171 171
 
172
+    /**
173
+     * @param Ajde_Session $session
174
+     */
172 175
     private static function _getTokenDictionary(&$session = null)
173 176
     {
174 177
         if (!isset($session)) {
@@ -226,6 +229,7 @@  discard block
 block discarded – undo
226 229
 
227 230
     /**
228 231
      * Helpers
232
+     * @param string $key
229 233
      */
230 234
     public function get($key)
231 235
     {
@@ -285,6 +289,10 @@  discard block
 block discarded – undo
285 289
         return $this->getString($key, $default);
286 290
     }
287 291
 
292
+    /**
293
+     * @param string $key
294
+     * @param boolean $default
295
+     */
288 296
     public function getInt($key, $default)
289 297
     {
290 298
         return $this->getInteger($key, $default);
@@ -310,6 +318,9 @@  discard block
 block discarded – undo
310 318
         return $this->getParam($key, $default, self::TYPE_FLOAT);
311 319
     }
312 320
 
321
+    /**
322
+     * @param string $key
323
+     */
313 324
     public function getRaw($key, $default = null)
314 325
     {
315 326
         return $this->getParam($key, $default, self::TYPE_RAW);
@@ -337,6 +348,9 @@  discard block
 block discarded – undo
337 348
         return $this->_postData;
338 349
     }
339 350
 
351
+    /**
352
+     * @param string $key
353
+     */
340 354
     public function getPostParam($key, $default = null, $type = self::TYPE_STRING)
341 355
     {
342 356
         return $this->getParam($key, $default, $type, true);
@@ -347,6 +361,9 @@  discard block
 block discarded – undo
347 361
         return $this->getParam($key, $default, self::TYPE_RAW, true);
348 362
     }
349 363
 
364
+    /**
365
+     * @param string $key
366
+     */
350 367
     public function hasPostParam($key)
351 368
     {
352 369
         return array_key_exists($key, $this->_postData);
Please login to merge, or discard this patch.
lib/Ajde/Http/Response.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -136,6 +136,9 @@  discard block
 block discarded – undo
136 136
         Ajde::app()->getDocument()->setLayout(new Ajde_Layout('empty'));
137 137
     }
138 138
 
139
+    /**
140
+     * @param string $name
141
+     */
139 142
     public function addHeader($name, $value)
140 143
     {
141 144
         $headers = [];
@@ -146,6 +149,9 @@  discard block
 block discarded – undo
146 149
         $this->set("headers", $headers);
147 150
     }
148 151
 
152
+    /**
153
+     * @param string $name
154
+     */
149 155
     public function removeHeader($name)
150 156
     {
151 157
         // TODO: also remove from $this->_data['headers']
Please login to merge, or discard this patch.