Completed
Pull Request — master (#23)
by Shestakov
15:36
created
Source/Ice/Helper/Php.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @param  $var
31 31
      * @param  bool $withPhpTag
32
-     * @return mixed|string
32
+     * @return string
33 33
      * @author dp <[email protected]>
34 34
      *
35 35
      * @version 0.0
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     }
106 106
 
107 107
     /**
108
-     * @param $php_code
108
+     * @param string $php_code
109 109
      * @return array
110 110
      *
111 111
      * @author dp <[email protected]>
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      * Make a string with _ characters to camelCase method name
136 136
      *
137 137
      * @param $name
138
-     * @param null $prefix
138
+     * @param string $prefix
139 139
      * @return string
140 140
      *
141 141
      * @author dp <[email protected]>
Please login to merge, or discard this patch.
Source/Ice/Helper/String.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      * Trim with some chars
35 35
      *
36
-     * @param  $string
37
-     * @param  null $chars
38
-     * @param  string $type
36
+     * @param  string $string
37
+     * @param  string[] $chars
38
+     * @param  string string
39 39
      * @return string
40 40
      * @throws Exception
41 41
      *
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * Check ends with string
104 104
      *
105
-     * @param  $haystack
106
-     * @param  $needle
105
+     * @param  string $haystack
106
+     * @param  string $needle
107 107
      * @return bool
108 108
      *
109 109
      * @author dp <[email protected]>
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      * Return random string
126 126
      *
127 127
      * @param  int $length
128
-     * @param array $blocks
128
+     * @param integer $blocks
129 129
      * @return string
130 130
      * @author dp <[email protected]>
131 131
      *
Please login to merge, or discard this patch.
Source/Ice/Render/Php.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      * @param  array $data
78 78
      * @param null $layout
79 79
      * @param string $templateType
80
-     * @return mixed
80
+     * @return string|null
81 81
      * @throws \Exception
82 82
      * @author dp <[email protected]>
83 83
      *
Please login to merge, or discard this patch.
Source/Ice/SessionHandler/DataProvider.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *
51 51
      * @link   http://php.net/manual/en/sessionhandlerinterafce.destroy.php
52 52
      * @param  int $session_id The session ID being destroyed.
53
-     * @return bool <p>
53
+     * @return boolean|null <p>
54 54
      * The return value (usually TRUE on success, FALSE on failure).
55 55
      * Note this value is returned internally to PHP for processing.
56 56
      * </p>
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      * string and passing it as this parameter.
164 164
      * Please note sessions use an alternative serialization method.
165 165
      * </p>
166
-     * @return bool <p>
166
+     * @return boolean|null <p>
167 167
      * The return value (usually TRUE on success, FALSE on failure).
168 168
      * Note this value is returned internally to PHP for processing.
169 169
      * </p>
Please login to merge, or discard this patch.
Source/Ice/Validator/Pattern.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      * @param array $data
54 54
      * @param $name
55 55
      * @param  array $params
56
-     * @return bool
56
+     * @return integer
57 57
      *
58 58
      * @author dp <[email protected]>
59 59
      *
Please login to merge, or discard this patch.
Source/Ice/Widget/Account/Form.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      * @param  array $data
57 57
      * @param null $layout
58 58
      * @param string $templateType
59
-     * @return mixed
59
+     * @return string
60 60
      * @throws \Exception
61 61
      * @author dp <[email protected]>
62 62
      *
Please login to merge, or discard this patch.
Source/Ice/Widget/Pagination.php 1 patch
Doc Comments   +15 added lines, -12 removed lines patch added patch discarded remove patch
@@ -86,6 +86,9 @@  discard block
 block discarded – undo
86 86
             ->last($page, $pageCount);
87 87
     }
88 88
 
89
+    /**
90
+     * @param string $name
91
+     */
89 92
     public function li($name, array $options = [], $template = 'Ice\Widget\Pagination\Li')
90 93
     {
91 94
         $route = $this->getRoute();
@@ -233,8 +236,8 @@  discard block
 block discarded – undo
233 236
     }
234 237
 
235 238
     /**
236
-     * @param $page
237
-     * @param $pageCount
239
+     * @param double $page
240
+     * @param integer $pageCount
238 241
      * @return Pagination
239 242
      */
240 243
     private function last($page, $pageCount)
@@ -265,8 +268,8 @@  discard block
 block discarded – undo
265 268
     }
266 269
 
267 270
     /**
268
-     * @param $page
269
-     * @param $pageCount
271
+     * @param double $page
272
+     * @param integer $pageCount
270 273
      * @return Pagination
271 274
      */
272 275
     private function fastFastNext($page, $pageCount)
@@ -295,8 +298,8 @@  discard block
 block discarded – undo
295 298
     }
296 299
 
297 300
     /**
298
-     * @param $page
299
-     * @param $pageCount
301
+     * @param double $page
302
+     * @param integer $pageCount
300 303
      * @return Pagination
301 304
      */
302 305
     private function fastNext($page, $pageCount)
@@ -323,8 +326,8 @@  discard block
 block discarded – undo
323 326
     }
324 327
 
325 328
     /**
326
-     * @param $page
327
-     * @param $pageCount
329
+     * @param double $page
330
+     * @param integer $pageCount
328 331
      * @return Pagination
329 332
      */
330 333
     private function nextNext($page, $pageCount)
@@ -345,8 +348,8 @@  discard block
 block discarded – undo
345 348
     }
346 349
 
347 350
     /**
348
-     * @param $page
349
-     * @param $pageCount
351
+     * @param double $page
352
+     * @param integer $pageCount
350 353
      * @return Pagination
351 354
      */
352 355
     private function next($page, $pageCount)
@@ -368,7 +371,7 @@  discard block
 block discarded – undo
368 371
 
369 372
     /**
370 373
      * @param $page
371
-     * @param $pageCount
374
+     * @param integer $pageCount
372 375
      * @return Pagination
373 376
      */
374 377
     private function curr($page, $pageCount)
@@ -495,7 +498,7 @@  discard block
 block discarded – undo
495 498
     }
496 499
 
497 500
     /**
498
-     * @param $page
501
+     * @param integer $page
499 502
      * @param $currentPage
500 503
      * @return Pagination
501 504
      */
Please login to merge, or discard this patch.
Source/Ice/Widget/Resource/Dynamic.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -40,6 +40,10 @@
 block discarded – undo
40 40
         return $this->loaded;
41 41
     }
42 42
 
43
+    /**
44
+     * @param \Ice\Core\Widget $widgetClass
45
+     * @param string $type
46
+     */
43 47
     public function addResource($widgetClass, $type)
44 48
     {
45 49
         $this->widgetClasses[$type][] = $widgetClass;
Please login to merge, or discard this patch.
Source/Ice/WidgetComponent/HtmlTag.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     }
82 82
 
83 83
     /**
84
-     * @return null
84
+     * @return null|\Exception
85 85
      * @throws Error
86 86
      */
87 87
     public function getRoute()
Please login to merge, or discard this patch.