Completed
Push — master ( 7bfc6c...554965 )
by Joram van den
03:50
created
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.
lib/Ajde/Crud/Cms/Meta.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 
7 7
     /**
8 8
      *
9
-     * @param int $id
10 9
      * @return Ajde_Crud_Cms_Meta_Type
11 10
      */
12 11
     public static function fromType($type)
Please login to merge, or discard this patch.
lib/Ajde/Crud/Cms/Meta/Type.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -34,6 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * Gets called after model save of this meta type
37
+     * @param boolean $value
37 38
      */
38 39
     public function afterSave(MetaModel $meta, $value, Ajde_Model $model)
39 40
     {
@@ -42,6 +43,7 @@  discard block
 block discarded – undo
42 43
 
43 44
     /**
44 45
      *
46
+     * @param string $name
45 47
      * @return Ajde_Crud_Options_Fields_Field
46 48
      */
47 49
     protected function fieldFactory($name)
Please login to merge, or discard this patch.
lib/Ajde/Crud/Editor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -2,5 +2,8 @@
 block discarded – undo
2 2
 
3 3
 abstract class Ajde_Crud_Editor extends Ajde_Object_Standard
4 4
 {
5
+    /**
6
+     * @param Ajde_Template $view
7
+     */
5 8
     abstract function getResources(&$view);
6 9
 }
Please login to merge, or discard this patch.
lib/Ajde/Crud/Field.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -143,6 +143,9 @@
 block discarded – undo
143 143
         return $this->_getTemplate('field/' . $this->_type);
144 144
     }
145 145
 
146
+    /**
147
+     * @param string $action
148
+     */
146 149
     protected function _getTemplate($action)
147 150
     {
148 151
         $template = null;
Please login to merge, or discard this patch.
lib/Ajde/Crud/Field/Icon.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -185,6 +185,9 @@
 block discarded – undo
185 185
         return $this->bootstrap2();
186 186
     }
187 187
 
188
+    /**
189
+     * @param string[] $icons
190
+     */
188 191
     private function convertBootstrapIcons($icons)
189 192
     {
190 193
         return $icons;
Please login to merge, or discard this patch.
lib/Ajde/Crud/Options.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@  discard block
 block discarded – undo
23 23
 
24 24
     // Protected functions
25 25
 
26
+    /**
27
+     * @param string $name
28
+     */
26 29
     protected function _select($name, $key = null)
27 30
     {
28 31
         $key = isset($key) ? $key : $name;
@@ -39,6 +42,9 @@  discard block
 block discarded – undo
39 42
         return $new;
40 43
     }
41 44
 
45
+    /**
46
+     * @param string $key
47
+     */
42 48
     protected function _set($key, $value)
43 49
     {
44 50
         parent::_set($key, $value);
Please login to merge, or discard this patch.