Completed
Push — master ( 18f460...9e5c66 )
by Mikołaj
02:35
created
src/component/Auth/Cookie.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
24 24
         return setcookie($this->name, $this->value, $this->expire, $this->path);
25 25
     }
26 26
 
27
+    /**
28
+     * @return string
29
+     */
27 30
     public function getValue()
28 31
     {
29 32
         return (isset($_COOKIE[$this->name])) ? $_COOKIE[$this->name] : false;
@@ -63,7 +66,7 @@  discard block
 block discarded – undo
63 66
     }
64 67
 
65 68
     /**
66
-     * @param $path
69
+     * @param string $path
67 70
      */
68 71
     public function setPath($path)
69 72
     {
Please login to merge, or discard this patch.
src/component/Forms/Validator.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param bool   $shuldEmpty
37 37
      * @param array  $msg        Custom messages ['empty', 'not_empty']
38 38
      *
39
-     * @return this
39
+     * @return Validator
40 40
      */
41 41
     public function checkEmpty($field, $value, $shuldEmpty = false, $msg = [])
42 42
     {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * @param int    $max   Max characters in string
65 65
      * @param array  $msg   Custom messages ['short', 'long']
66 66
      *
67
-     * @return this
67
+     * @return Validator
68 68
      */
69 69
     public function checkChar($field, $value, $min = 0, $max = 255, $msg = [])
70 70
     {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      * @param int    $max   Max value
114 114
      * @param array  $msg   Custom messages ['low', 'high']
115 115
      *
116
-     * @return this
116
+     * @return Validator
117 117
      */
118 118
     public function checkInt($field, $value, $min = 0, $max = false, $msg = [])
119 119
     {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      * @param string $format Date format
141 141
      * @param array  $msg    Custom messages ['invalid']
142 142
      *
143
-     * @return this
143
+     * @return Validator
144 144
      */
145 145
     public function checkDatetime($field, $value, $format = 'Y-m-d', $msg = [])
146 146
     {
Please login to merge, or discard this patch.
src/component/Html/Breadcrumbs.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@
 block discarded – undo
60 60
         return $this->classes;
61 61
     }
62 62
 
63
+    /**
64
+     * @param integer $nesting
65
+     */
63 66
     public function setNesting($nesting)
64 67
     {
65 68
         $this->nesting = $nesting;
Please login to merge, or discard this patch.
src/component/Html/Navigation.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -242,6 +242,9 @@  discard block
 block discarded – undo
242 242
         return (isset($value) and !empty($value)) ? ' '.$atribute.'="'.trim($value).'"' : '';
243 243
     }
244 244
 
245
+    /**
246
+     * @param string $selector
247
+     */
245 248
     private function addContainerWithSelectorIf($inside, $selector)
246 249
     {
247 250
         if (empty($selector)) {
@@ -251,6 +254,10 @@  discard block
 block discarded – undo
251 254
         return '<'.$selector.'>'.$inside.'</'.$selector.'>';
252 255
     }
253 256
 
257
+    /**
258
+     * @param string $selector
259
+     * @param string $classBase
260
+     */
254 261
     private function addContainerWithIcoIf($ico, $selector, $classBase)
255 262
     {
256 263
         if (empty($ico) or empty($selector)) {
@@ -280,7 +287,7 @@  discard block
 block discarded – undo
280 287
      *
281 288
      * @author J. Bruni - original author
282 289
      *
283
-     * @return string|bool
290
+     * @return false|string
284 291
      */
285 292
     public function create()
286 293
     {
Please login to merge, or discard this patch.
src/component/Html/Paging.php 1 patch
Doc Comments   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,13 +15,6 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      * Constructor.
17 17
      *
18
-     * @param array  $nav     with data for loop
19
-     *                        <page> - current page
20
-     *                        <forstart> -
21
-     *                        <forend> -
22
-     *                        <allpages> - all pages
23
-     *                        <prev> - prev page
24
-     *                        <next> - next page
25 18
      * @param string $path    path with a slash at the beginning and at the end without him, like: '/kg'
26 19
      * @param array  $classes Specifies a pagination appearance
27 20
      *                        <ul> - main ul class
@@ -46,6 +39,9 @@  discard block
 block discarded – undo
46 39
         return $this->info;
47 40
     }
48 41
 
42
+    /**
43
+     * @param string $path
44
+     */
49 45
     public function setPath($path)
50 46
     {
51 47
         $this->path = $path;
@@ -69,11 +65,17 @@  discard block
 block discarded – undo
69 65
         return $this->classes;
70 66
     }
71 67
 
68
+    /**
69
+     * @param integer $nesting
70
+     */
72 71
     public function setNesting($nesting)
73 72
     {
74 73
         $this->nesting = $nesting;
75 74
     }
76 75
 
76
+    /**
77
+     * @return integer
78
+     */
77 79
     public function getNesting()
78 80
     {
79 81
         return $this->nesting;
Please login to merge, or discard this patch.
src/component/Images/Resizer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     /**
64 64
      * Try to serve image from cache.
65 65
      *
66
-     * @return bool
66
+     * @return null|false
67 67
      */
68 68
     private function tryServeCache()
69 69
     {
Please login to merge, or discard this patch.
src/component/Plugins/DomPlugins.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -6,6 +6,10 @@
 block discarded – undo
6 6
 
7 7
 class DomPlugins
8 8
 {
9
+    /**
10
+     * @param \Rudolf\Component\Html\Head $head
11
+     * @param \Rudolf\Component\Html\Foot $foot
12
+     */
9 13
     public function __construct($head, $foot)
10 14
     {
11 15
         $this->head = $head;
Please login to merge, or discard this patch.
src/component/Plugins/Hooks.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
      */
10 10
     private $plugins;
11 11
 
12
+    /**
13
+     * @param string $path
14
+     */
12 15
     public function __construct(array $plugins, $path)
13 16
     {
14 17
         $this->plugins = $plugins;
Please login to merge, or discard this patch.
src/component/Routing/FrontController.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,6 @@
 block discarded – undo
71 71
      * Call controller method.
72 72
      *
73 73
      * @param object @object
74
-     * @param string $method
75 74
      * @param array  $params
76 75
      *
77 76
      * @return bool
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Rudolf\Component\Routing;
4 4
 
5
-use Rudolf\Component\Html\Exceptions\TemplateNotFoundException;
6 5
 use Rudolf\Component\Http\HttpErrorException;
7 6
 
8 7
 class FrontController
Please login to merge, or discard this patch.