Completed
Push — master ( a4a38f...cad299 )
by Joram van den
08:06
created
lib/Ajde/Document/Processor/Css/lib/maximizer/CSS3Maximizer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -346,6 +346,9 @@
 block discarded – undo
346 346
 
347 347
     /* Gradient parsing and standardization */
348 348
 
349
+    /**
350
+     * @param string $value
351
+     */
349 352
     private function splitGradient($value)
350 353
     {
351 354
         $values = [];
Please login to merge, or discard this patch.
lib/Ajde/Document/Processor/Css/lib/maximizer/inc/ColorSpace.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -363,6 +363,11 @@  discard block
 block discarded – undo
363 363
 
364 364
     // HSL (1978) = H: Hue / S: Saturation / L: Lightess
365 365
 
366
+    /**
367
+     * @param double $v1
368
+     * @param double $v2
369
+     * @param double $vH
370
+     */
366 371
     function Hue_2_RGB($v1, $v2, $vH)
367 372
     {
368 373
 
@@ -691,6 +696,9 @@  discard block
 block discarded – undo
691 696
         return ['L' => $o['L'], 'u' => cos($rad) * $o['C'], 'v' => sin($rad) * $o['C']];
692 697
     }
693 698
 
699
+    /**
700
+     * @param string $type
701
+     */
694 702
     function adapt($o, $type)
695 703
     {
696 704
         $r = [ // Adaption methods
@@ -753,6 +761,9 @@  discard block
 block discarded – undo
753 761
         return $this->adapt($x, 'Bradford');
754 762
     }
755 763
 
764
+    /**
765
+     * @param string $observer
766
+     */
756 767
     function illuminant($observer, $type)
757 768
     {
758 769
 
@@ -770,6 +781,9 @@  discard block
 block discarded – undo
770 781
     private $_White;
771 782
     private $_Matrix;
772 783
 
784
+    /**
785
+     * @param string $i
786
+     */
773 787
     function profile($i)
774 788
     {
775 789
         $m = $this->_profile[$i];
Please login to merge, or discard this patch.
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.