Completed
Push — master ( 470825...143e87 )
by Joram van den
06:11
created
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.
lib/Ajde/Lang/Adapter/Gettext.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -125,6 +125,10 @@
 block discarded – undo
125 125
      */
126 126
     // protected function _loadTranslationData($filename, $locale, array $options = array())
127 127
     // AJDE : We use this method directly, so it must be public
128
+
129
+    /**
130
+     * @param string $filename
131
+     */
128 132
     public function _loadTranslationData($filename, $locale, array $options = [])
129 133
     {
130 134
         $this->_data = [];
Please login to merge, or discard this patch.
lib/Ajde/Layout.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
         $this->set("name", $name);
31 31
     }
32 32
 
33
+    /**
34
+     * @param string $style
35
+     */
33 36
     public function setStyle($style)
34 37
     {
35 38
         $this->set("style", $style);
Please login to merge, or discard this patch.
lib/Ajde/Log.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@
 block discarded – undo
29 29
         return $getWriters;
30 30
     }
31 31
 
32
+    /**
33
+     * @param string $level
34
+     */
32 35
     private static function shouldLog($level)
33 36
     {
34 37
         $configLevel = current(explode(':', Config::get('logLevel')));
Please login to merge, or discard this patch.
lib/Ajde/Mailer/class.phpmailer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3168,7 +3168,7 @@
 block discarded – undo
3168 3168
      * @param string $path A filename or path, does not need to exist as a file
3169 3169
      * @param integer|string $options Either a PATHINFO_* constant,
3170 3170
      *      or a string name to return only the specified piece, allows 'filename' to work on PHP < 5.2
3171
-     * @return string|array
3171
+     * @return string
3172 3172
      * @static
3173 3173
      */
3174 3174
     public static function mb_pathinfo($path, $options = null)
Please login to merge, or discard this patch.
lib/Ajde/Mailer/class.pop3.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,8 +186,8 @@
 block discarded – undo
186 186
      *
187 187
      * @access public
188 188
      * @param string $host
189
-     * @param bool|int $port
190
-     * @param bool|int $tval
189
+     * @param boolean $port
190
+     * @param boolean $tval
191 191
      * @param string $username
192 192
      * @param string $password
193 193
      * @param int $debug_level
Please login to merge, or discard this patch.
lib/Ajde/Model/ValidatorAbstract.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@  discard block
 block discarded – undo
34 34
         return $this->_model;
35 35
     }
36 36
 
37
+    /**
38
+     * @param Ajde_Model $model
39
+     */
37 40
     public function setModel($model)
38 41
     {
39 42
         $this->_model = $model;
@@ -84,6 +87,9 @@  discard block
 block discarded – undo
84 87
         return $this->_value;
85 88
     }
86 89
 
90
+    /**
91
+     * @param string|null $value
92
+     */
87 93
     public function validate($fieldOptions, $value)
88 94
     {
89 95
         $this->_value = $value;
Please login to merge, or discard this patch.
lib/Ajde/Resource/Image.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@  discard block
 block discarded – undo
27 27
         $this->_type = $this->extension();
28 28
     }
29 29
 
30
+    /**
31
+     * @param integer $width
32
+     */
30 33
     public function getUrl($width = null, $height = null, $crop = false)
31 34
     {
32 35
         $this->setWidth($width);
@@ -169,6 +172,9 @@  discard block
 block discarded – undo
169 172
         return $this->getGeneratedFilename();
170 173
     }
171 174
 
175
+    /**
176
+     * @param boolean $crop
177
+     */
172 178
     public function getGeneratedFilename($width = null, $height = null, $crop = null)
173 179
     {
174 180
         if (
@@ -311,6 +317,9 @@  discard block
 block discarded – undo
311 317
         return $this->resize($height, $width, true);
312 318
     }
313 319
 
320
+    /**
321
+     * @param string $target
322
+     */
314 323
     public function save($target)
315 324
     {
316 325
         switch ($this->_type) {
@@ -374,6 +383,14 @@  discard block
 block discarded – undo
374 383
         return $path_info['filename'];
375 384
     }
376 385
 
386
+    /**
387
+     * @param resource $dst_image
388
+     * @param resource|null $src_image
389
+     * @param integer $dst_x
390
+     * @param integer $dst_y
391
+     * @param integer $src_x
392
+     * @param integer $src_y
393
+     */
377 394
     protected function fastimagecopyresampled(
378 395
         &$dst_image,
379 396
         $src_image,
Please login to merge, or discard this patch.