Completed
Push — master ( 7bfc6c...554965 )
by Joram van den
03:50
created
lib/Ajde/Crud/Options/Fields.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
17 17
 
18 18
     /**
19 19
      *
20
+     * @param string $name
20 21
      * @return Ajde_Crud_Options_Fields_Field
21 22
      */
22 23
     public function selectField($name)
Please login to merge, or discard this patch.
lib/Ajde/Crud/Options/Fields/Field.php 1 patch
Doc Comments   +5 added lines, -11 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     /**
188 188
      * Sets an array of Ajde_Filter to apply to field
189 189
      *
190
-     * @param array $advancedFilter
190
+     * @param Ajde_Filter_Where[] $advancedFilter
191 191
      * @return Ajde_Crud_Options_Fields_Field
192 192
      */
193 193
     public function setAdvancedFilter($advancedFilter)
@@ -220,7 +220,6 @@  discard block
 block discarded – undo
220 220
     /**
221 221
      * Sets the class of the cell for the list view
222 222
      *
223
-     * @param string $function
224 223
      * @return Ajde_Crud_Options_Fields_Field
225 224
      */
226 225
     public function setListClass($className)
@@ -231,7 +230,6 @@  discard block
 block discarded – undo
231 230
     /**
232 231
      * Sets the display function arguments of the model for the list view
233 232
      *
234
-     * @param array $arguments
235 233
      * @return Ajde_Crud_Options_Fields_Field
236 234
      */
237 235
     public function setFunctionArgs($args)
@@ -242,8 +240,8 @@  discard block
 block discarded – undo
242 240
     /**
243 241
      * Sets thumbnail dimensions of images
244 242
      *
245
-     * @param type $width
246
-     * @param type $height
243
+     * @param integer $width
244
+     * @param integer $height
247 245
      * @return Ajde_Crud_Options_Fields_Field
248 246
      */
249 247
     public function setThumbDim($width, $height)
@@ -265,7 +263,6 @@  discard block
 block discarded – undo
265 263
     /**
266 264
      * Sets placeholder for this field
267 265
      *
268
-     * @param string $emphasis
269 266
      * @return Ajde_Crud_Options_Fields_Field
270 267
      */
271 268
     public function setPlaceholder($placeholder)
@@ -528,7 +525,7 @@  discard block
 block discarded – undo
528 525
     /**
529 526
      * Defines a sort field on the foreign table
530 527
      *
531
-     * @param string $table
528
+     * @param string $field
532 529
      * @return Ajde_Crud_Options_Fields_Field
533 530
      */
534 531
     public function addSortField($field)
@@ -543,7 +540,6 @@  discard block
 block discarded – undo
543 540
     /**
544 541
      * Adds an image column to the cross reference table (for fields with type 'multiple')
545 542
      *
546
-     * @param string $field
547 543
      * @return Ajde_Crud_Options_Fields_Field
548 544
      */
549 545
     public function addMetaField($metaId, $function = false)
@@ -557,7 +553,6 @@  discard block
 block discarded – undo
557 553
     /**
558 554
      * Sort the foreign table by this field
559 555
      *
560
-     * @param string $table
561 556
      * @return Ajde_Crud_Options_Fields_Field
562 557
      */
563 558
     public function setSortBy($field)
@@ -661,7 +656,6 @@  discard block
 block discarded – undo
661 656
     /**
662 657
      * Use max chars in list view
663 658
      *
664
-     * @param string $package
665 659
      * @return Ajde_Crud_Options_Fields_Field
666 660
      */
667 661
     public function setMaxChars($maxChars)
@@ -672,7 +666,7 @@  discard block
 block discarded – undo
672 666
     /**
673 667
      * Sets the fields to clone when creating a translation
674 668
      *
675
-     * @param array $fields
669
+     * @param string[] $array
676 670
      * @return Ajde_Crud_Options_Fields_Field
677 671
      */
678 672
     public function setCloneFields($array)
Please login to merge, or discard this patch.
lib/Ajde/Crud/Options/List.php 1 patch
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * Set fieldname to set as main column in listview
42 42
      *
43
-     * @param string $main
43
+     * @param string $fieldname
44 44
      * @return Ajde_Crud_Options_List
45 45
      */
46 46
     public function setMain($fieldname)
@@ -95,7 +95,6 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * Enables the export button
97 97
      *
98
-     * @param boolean $show
99 98
      * @return Ajde_Crud_Options_List
100 99
      */
101 100
     public function setAllowExport($allow)
@@ -128,7 +127,7 @@  discard block
 block discarded – undo
128 127
     /**
129 128
      * Sets which fields to show
130 129
      *
131
-     * @param array $fields
130
+     * @param string[] $fields
132 131
      * @return Ajde_Crud_Options_List
133 132
      */
134 133
     public function setShow($fields)
@@ -139,7 +138,6 @@  discard block
 block discarded – undo
139 138
     /**
140 139
      * Sets a function which generates the row class
141 140
      *
142
-     * @param array $fields
143 141
      * @return Ajde_Crud_Options_List
144 142
      */
145 143
     public function setRowClassFunction($modelFunction)
@@ -161,8 +159,8 @@  discard block
 block discarded – undo
161 159
     /**
162 160
      * Sets thumbnail dimensions of images
163 161
      *
164
-     * @param type $width
165
-     * @param type $height
162
+     * @param integer $width
163
+     * @param integer $height
166 164
      * @return Ajde_Crud_Options_List
167 165
      */
168 166
     public function setThumbDim($width, $height)
Please login to merge, or discard this patch.
lib/Ajde/Db/Adapter/Abstract.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -2,6 +2,9 @@  discard block
 block discarded – undo
2 2
 
3 3
 abstract class Ajde_Db_Adapter_Abstract
4 4
 {
5
+    /**
6
+     * @param string $dsn
7
+     */
5 8
     public function __construct($dsn, $user, $password, $options)
6 9
     {
7 10
         $options = $options + [
@@ -24,7 +27,14 @@  discard block
 block discarded – undo
24 27
 
25 28
     abstract public function getTableStructure($tableName);
26 29
 
30
+    /**
31
+     * @param string $childTable
32
+     * @param string $childColumn
33
+     */
27 34
     abstract public function getForeignKey($childTable, $childColumn);
28 35
 
36
+    /**
37
+     * @param string $childTable
38
+     */
29 39
     abstract public function getParents($childTable);
30 40
 }
Please login to merge, or discard this patch.
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.