Completed
Push — master ( a4a38f...cad299 )
by Joram van den
08:06
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/Crud/Options/List/Buttons.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
     /**
89 89
      * Adds a custom button for every item in the list
90 90
      *
91
-     * @param name $name Identifier of the button
92
-     * @param text $text Text to display
91
+     * @param string $name Identifier of the button
92
+     * @param string $text Text to display
93 93
      * @param string $class Optional classname to add
94 94
      * @param boolean $persistent Don't fold button
95 95
      * @param boolean $function Call model function defined in $text (return false to omit button)
@@ -117,8 +117,6 @@  discard block
 block discarded – undo
117 117
      * Adds a custom button for every item in the list
118 118
      *
119 119
      * @param name $name Identifier of the button
120
-     * @param text $text Text to display
121
-     * @param type $class Optional classname to add
122 120
      * @return Ajde_Crud_Options_List_Buttons
123 121
      */
124 122
     public function addToolbarHtml($name, $html)
Please login to merge, or discard this patch.
lib/Ajde/Db.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -98,6 +98,9 @@
 block discarded – undo
98 98
         ];
99 99
     }
100 100
 
101
+    /**
102
+     * @return string
103
+     */
101 104
     public function version()
102 105
     {
103 106
         $results = $this->getConnection()->query("SELECT v FROM ajde WHERE k = 'version' LIMIT 1");
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.