Completed
Push — master ( 5f5211...c77afb )
by Joram van den
14:38 queued 08:49
created
lib/Ajde/Collection.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -105,6 +105,9 @@  discard block
 block discarded – undo
105 105
         $this->_position = 0;
106 106
     }
107 107
 
108
+    /**
109
+     * @return Ajde_Acl_Proxy_Model
110
+     */
108 111
     public function current()
109 112
     {
110 113
         return $this->_items[$this->_position];
@@ -425,6 +428,9 @@  discard block
 block discarded – undo
425 428
         return Ajde_Db_PDOStatement::getEmulatedSql($this->getSql(), $this->getFilterValues());
426 429
     }
427 430
 
431
+    /**
432
+     * @param string $queryPart
433
+     */
428 434
     public function getFilter($queryPart)
429 435
     {
430 436
         $arguments = [];
Please login to merge, or discard this patch.
lib/Ajde/Component/Embed.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -2,6 +2,9 @@
 block discarded – undo
2 2
 
3 3
 class Ajde_Component_Embed extends Ajde_Component
4 4
 {
5
+    /**
6
+     * @param string $attributes
7
+     */
5 8
     public static function processStatic(Ajde_Template_Parser $parser, $attributes)
6 9
     {
7 10
         $instance = new self($parser, $attributes);
Please login to merge, or discard this patch.
lib/Ajde/Component/Form/UploadHelper.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -14,6 +14,7 @@  discard block
 block discarded – undo
14 14
     /**
15 15
      * Save the file to the specified path
16 16
      *
17
+     * @param string $path
17 18
      * @return boolean TRUE on success
18 19
      */
19 20
     function save($path)
@@ -35,6 +36,9 @@  discard block
 block discarded – undo
35 36
         return true;
36 37
     }
37 38
 
39
+    /**
40
+     * @return string
41
+     */
38 42
     function getName()
39 43
     {
40 44
         return $_GET['qqfile'];
@@ -58,6 +62,7 @@  discard block
 block discarded – undo
58 62
     /**
59 63
      * Save the file to the specified path
60 64
      *
65
+     * @param string $path
61 66
      * @return boolean TRUE on success
62 67
      */
63 68
     function save($path)
@@ -69,6 +74,9 @@  discard block
 block discarded – undo
69 74
         return true;
70 75
     }
71 76
 
77
+    /**
78
+     * @return string
79
+     */
72 80
     function getName()
73 81
     {
74 82
         return $_FILES['qqfile']['name'];
@@ -115,6 +123,9 @@  discard block
 block discarded – undo
115 123
         }
116 124
     }
117 125
 
126
+    /**
127
+     * @param string $str
128
+     */
118 129
     private function toBytes($str)
119 130
     {
120 131
         $val = trim($str);
Please login to merge, or discard this patch.
lib/Ajde/Component/Image.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -54,6 +54,10 @@
 block discarded – undo
54 54
         throw new Ajde_Component_Exception('Missing required attributes for component call');
55 55
     }
56 56
 
57
+    /**
58
+     * @param integer $width
59
+     * @param integer $height
60
+     */
57 61
     public static function getImageTag(
58 62
         $filename,
59 63
         $width = null,
Please login to merge, or discard this patch.
lib/Ajde/Component/lib/finediff.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -113,6 +113,9 @@  discard block
 block discarded – undo
113 113
 
114 114
 class FineDiffInsertOp extends FineDiffOp
115 115
 {
116
+    /**
117
+     * @param string $text
118
+     */
116 119
     public function __construct($text)
117 120
     {
118 121
         $this->text = $text;
@@ -146,12 +149,18 @@  discard block
 block discarded – undo
146 149
 
147 150
 class FineDiffReplaceOp extends FineDiffOp
148 151
 {
152
+    /**
153
+     * @param string $text
154
+     */
149 155
     public function __construct($fromLen, $text)
150 156
     {
151 157
         $this->fromLen = $fromLen;
152 158
         $this->text = $text;
153 159
     }
154 160
 
161
+    /**
162
+     * @return integer|null
163
+     */
155 164
     public function getFromLen()
156 165
     {
157 166
         return $this->fromLen;
@@ -430,6 +439,8 @@  discard block
 block discarded – undo
430 439
 
431 440
     /**
432 441
      * Entry point to compute the diff.
442
+     * @param string $from_text
443
+     * @param string $to_text
433 444
      */
434 445
     private function doDiff($from_text, $to_text)
435 446
     {
@@ -759,6 +770,10 @@  discard block
 block discarded – undo
759 770
         }
760 771
     }
761 772
 
773
+    /**
774
+     * @param string $opcode
775
+     * @param integer $from_offset
776
+     */
762 777
     private static function renderDiffToHTMLFromOpcode($opcode, $from, $from_offset, $from_len)
763 778
     {
764 779
         if ($opcode === 'c') {
Please login to merge, or discard this patch.
lib/Ajde/Component/Markdown/markdown.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -1054,6 +1054,10 @@  discard block
 block discarded – undo
1054 1054
 
1055 1055
     var $list_level = 0;
1056 1056
 
1057
+    /**
1058
+     * @param string $list_str
1059
+     * @param string $marker_any_re
1060
+     */
1057 1061
     function processListItems($list_str, $marker_any_re)
1058 1062
     {
1059 1063
         #
@@ -1162,6 +1166,9 @@  discard block
 block discarded – undo
1162 1166
         return "\n\n" . $this->hashBlock($codeblock) . "\n\n";
1163 1167
     }
1164 1168
 
1169
+    /**
1170
+     * @param string $code
1171
+     */
1165 1172
     function makeCodeSpan($code)
1166 1173
     {
1167 1174
         #
@@ -1672,6 +1679,9 @@  discard block
 block discarded – undo
1672 1679
     # hanlde UTF-8 if the default function does not exist.
1673 1680
     var $utf8_strlen = 'mb_strlen';
1674 1681
 
1682
+    /**
1683
+     * @param string $text
1684
+     */
1675 1685
     function detab($text)
1676 1686
     {
1677 1687
         #
Please login to merge, or discard this patch.
lib/Ajde/Component/String.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -109,6 +109,9 @@  discard block
 block discarded – undo
109 109
         }
110 110
     }
111 111
 
112
+    /**
113
+     * @param string $singular
114
+     */
112 115
     public static function makePlural($count, $singular)
113 116
     {
114 117
         $count = (int)$count;
@@ -224,6 +227,9 @@  discard block
 block discarded – undo
224 227
         }
225 228
     }
226 229
 
230
+    /**
231
+     * @param integer $start
232
+     */
227 233
     public static function ltrim($str, $start, $delim = '...')
228 234
     {
229 235
         $pos = strpos($str, ' ', $start);
@@ -354,6 +360,9 @@  discard block
 block discarded – undo
354 360
         return $html;
355 361
     }
356 362
 
363
+    /**
364
+     * @param string $text
365
+     */
357 366
     public static function encrypt($text)
358 367
     {
359 368
         try {
@@ -453,6 +462,9 @@  discard block
 block discarded – undo
453 462
         }
454 463
     }
455 464
 
465
+    /**
466
+     * @param string $date
467
+     */
456 468
     public static function time2str($date, $today = false)
457 469
     {
458 470
         if (!$today) {
@@ -532,6 +544,9 @@  discard block
 block discarded – undo
532 544
         }
533 545
     }
534 546
 
547
+    /**
548
+     * @param string $str
549
+     */
535 550
     public static function toBytes($str)
536 551
     {
537 552
         $val = trim($str);
Please login to merge, or discard this patch.
lib/Ajde/Controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
     /**
111 111
      * @param string|null $action
112 112
      * @param string|null $format
113
-     * @return mixed
113
+     * @return string
114 114
      * @throws Ajde_Exception
115 115
      * @throws Exception
116 116
      */
Please login to merge, or discard this patch.
lib/Ajde/Cookie.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -38,11 +38,17 @@  discard block
 block discarded – undo
38 38
         }
39 39
     }
40 40
 
41
+    /**
42
+     * @param integer $days
43
+     */
41 44
     public function setLifetime($days)
42 45
     {
43 46
         $this->_lifetime = $days;
44 47
     }
45 48
 
49
+    /**
50
+     * @param string $value
51
+     */
46 52
     public function set($key, $value)
47 53
     {
48 54
         parent::set($key, $value);
@@ -71,6 +77,10 @@  discard block
 block discarded – undo
71 77
         }
72 78
     }
73 79
 
80
+    /**
81
+     * @param string|false $value
82
+     * @param integer $lifetime
83
+     */
74 84
     protected function _setcookie($value, $lifetime)
75 85
     {
76 86
         $path = Config::get('site_path');
Please login to merge, or discard this patch.