Completed
Push — master ( d186d6...185d7b )
by Joram van den
05:08 queued 01:41
created
lib/Ajde/Db/PDOStatement.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * then log the query
27 27
      *
28 28
      * @param array $input_parameters
29
-     * @return PDO result set
29
+     * @return null|boolean result set
30 30
      * @throws Ajde_Db_Exception
31 31
      * @throws Ajde_Exception
32 32
      */
@@ -99,6 +99,9 @@  discard block
 block discarded – undo
99 99
         return $result;
100 100
     }
101 101
 
102
+    /**
103
+     * @param string $sql
104
+     */
102 105
     public static function getEmulatedSql($sql, $PDOValues)
103 106
     {
104 107
         // @see http://stackoverflow.com/questions/210564/pdo-prepared-statements/1376838#1376838
Please login to merge, or discard this patch.
lib/Ajde/Db/Table.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,6 @@  discard block
 block discarded – undo
71 71
 
72 72
     /**
73 73
      *
74
-     * @param Ajde_Db_Table|string $parent
75 74
      * @return array
76 75
      */
77 76
     public function getFK($column)
@@ -102,6 +101,9 @@  discard block
 block discarded – undo
102 101
         return array_unique($parentColumns);
103 102
     }
104 103
 
104
+    /**
105
+     * @param string $property
106
+     */
105 107
     public function getFieldProperties($fieldName = null, $property = null)
106 108
     {
107 109
         if (isset($fieldName)) {
Please login to merge, or discard this patch.
lib/Ajde/Document.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -142,6 +142,9 @@  discard block
 block discarded – undo
142 142
         return $this->_cacheControl;
143 143
     }
144 144
 
145
+    /**
146
+     * @param string $cacheControl
147
+     */
145 148
     public function setCacheControl($cacheControl)
146 149
     {
147 150
         $this->_cacheControl = $cacheControl;
@@ -152,6 +155,9 @@  discard block
 block discarded – undo
152 155
         return $this->_contentType;
153 156
     }
154 157
 
158
+    /**
159
+     * @param string|null $mimeType
160
+     */
155 161
     public function setContentType($mimeType)
156 162
     {
157 163
         $this->_contentType = $mimeType;
@@ -162,6 +168,9 @@  discard block
 block discarded – undo
162 168
         return (int)$this->_maxAge;
163 169
     }
164 170
 
171
+    /**
172
+     * @param integer $days
173
+     */
165 174
     public function setMaxAge($days)
166 175
     {
167 176
         $this->_maxAge = (int)(60 * 60 * 24 * $days);
Please login to merge, or discard this patch.
lib/Ajde/Document/Processor/Css/lib/less/lessc.inc.php 1 patch
Doc Comments   +47 added lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@  discard block
 block discarded – undo
77 77
         return null;
78 78
     }
79 79
 
80
+    /**
81
+     * @param string $name
82
+     */
80 83
     protected function fileExists($name)
81 84
     {
82 85
         return is_file($name);
@@ -273,6 +276,9 @@  discard block
 block discarded – undo
273 276
         return $scope;
274 277
     }
275 278
 
279
+    /**
280
+     * @param string[] $selectors
281
+     */
276 282
     protected function compileNestedBlock($block, $selectors)
277 283
     {
278 284
         $this->pushEnv($block);
@@ -293,6 +299,9 @@  discard block
 block discarded – undo
293 299
         $this->popEnv();
294 300
     }
295 301
 
302
+    /**
303
+     * @param stdClass $out
304
+     */
296 305
     protected function compileProps($block, $out)
297 306
     {
298 307
         foreach ($this->sortProps($block->props) as $prop) {
@@ -371,6 +380,9 @@  discard block
 block discarded – undo
371 380
         return $out;
372 381
     }
373 382
 
383
+    /**
384
+     * @param stdClass $env
385
+     */
374 386
     protected function multiplyMedia($env, $childQueries = null)
375 387
     {
376 388
         if (is_null($env) ||
@@ -1196,6 +1208,9 @@  discard block
 block discarded – undo
1196 1208
         return $color;
1197 1209
     }
1198 1210
 
1211
+    /**
1212
+     * @return double
1213
+     */
1199 1214
     protected function assertNumber($value, $error = "expecting number")
1200 1215
     {
1201 1216
         if ($value[0] == "number") {
@@ -1249,6 +1264,11 @@  discard block
 block discarded – undo
1249 1264
         return $out;
1250 1265
     }
1251 1266
 
1267
+    /**
1268
+     * @param double $comp
1269
+     * @param double $temp1
1270
+     * @param double $temp2
1271
+     */
1252 1272
     protected function toRGB_helper($comp, $temp1, $temp2)
1253 1273
     {
1254 1274
         if ($comp < 0) {
@@ -2352,6 +2372,9 @@  discard block
 block discarded – undo
2352 2372
     // caches preg escaped literals
2353 2373
     static protected $literalCache = [];
2354 2374
 
2375
+    /**
2376
+     * @param lessc $lessc
2377
+     */
2355 2378
     public function __construct($lessc, $sourceName = null)
2356 2379
     {
2357 2380
         $this->eatWhiteDefault = true;
@@ -2688,6 +2711,7 @@  discard block
 block discarded – undo
2688 2711
 
2689 2712
     /**
2690 2713
      * recursively parse infix equation with $lhs at precedence $minP
2714
+     * @param integer $minP
2691 2715
      */
2692 2716
     protected function expHelper($lhs, $minP)
2693 2717
     {
@@ -2972,6 +2996,11 @@  discard block
 block discarded – undo
2972 2996
     }
2973 2997
 
2974 2998
     // an unbounded string stopped by $end
2999
+
3000
+    /**
3001
+     * @param string $end
3002
+     * @param string[] $rejectStrs
3003
+     */
2975 3004
     protected function openString($end, &$out, $nestingOpen = null, $rejectStrs = null)
2976 3005
     {
2977 3006
         $oldWhite = $this->eatWhiteDefault;
@@ -3587,6 +3616,9 @@  discard block
 block discarded – undo
3587 3616
 
3588 3617
     /* raw parsing functions */
3589 3618
 
3619
+    /**
3620
+     * @param boolean $eatWhitespace
3621
+     */
3590 3622
     protected function literal($what, $eatWhitespace = null)
3591 3623
     {
3592 3624
         if ($eatWhitespace === null) {
@@ -3614,6 +3646,9 @@  discard block
 block discarded – undo
3614 3646
         return $this->match(self::$literalCache[$what], $m, $eatWhitespace);
3615 3647
     }
3616 3648
 
3649
+    /**
3650
+     * @param string $parseItem
3651
+     */
3617 3652
     protected function genericList(&$out, $parseItem, $delim = "", $flatten = true)
3618 3653
     {
3619 3654
         $s = $this->seek();
@@ -3646,6 +3681,10 @@  discard block
 block discarded – undo
3646 3681
     // advance counter to next occurrence of $what
3647 3682
     // $until - don't include $what in advance
3648 3683
     // $allowNewline, if string, will be used as valid char set
3684
+
3685
+    /**
3686
+     * @param string $what
3687
+     */
3649 3688
     protected function to($what, &$out, $until = false, $allowNewline = false)
3650 3689
     {
3651 3690
         if (is_string($allowNewline)) {
@@ -3707,6 +3746,10 @@  discard block
 block discarded – undo
3707 3746
     }
3708 3747
 
3709 3748
     // match something without consuming it
3749
+
3750
+    /**
3751
+     * @param string $regex
3752
+     */
3710 3753
     protected function peek($regex, &$out = null, $from = null)
3711 3754
     {
3712 3755
         if (is_null($from)) {
@@ -3773,6 +3816,10 @@  discard block
 block discarded – undo
3773 3816
     }
3774 3817
 
3775 3818
     // push a block that doesn't multiply tags
3819
+
3820
+    /**
3821
+     * @param string $type
3822
+     */
3776 3823
     protected function pushSpecialBlock($type)
3777 3824
     {
3778 3825
         return $this->pushBlock(null, $type);
Please login to merge, or discard this patch.
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/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.