Completed
Push — master ( 18f460...9e5c66 )
by Mikołaj
02:35
created
src/module/Articles/routing.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     'artykuly/kategorie/<slug>(/|/page/<page>)?',
16 16
     'Rudolf\Modules\Articles\Category\One\Controller::getCategory',
17 17
     ['slug' => '[a-z0-9]+(?:-[a-z0-9]+)*',
18
-     'page' => '[1-9][0-9]*$', ],
18
+        'page' => '[1-9][0-9]*$', ],
19 19
     ['page' => 0]
20 20
 ));
21 21
 
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
     'artykuly/<year>/<month>/<slug>(\/)?',
25 25
     'Rudolf\Modules\Articles\One\Controller::getOne',
26 26
     ['year' => '[0-9]{4}',
27
-     'month' => "(0[1-9]|[12]\d|3[01])",
28
-     'slug' => '[a-z0-9-]+',
27
+        'month' => "(0[1-9]|[12]\d|3[01])",
28
+        'slug' => '[a-z0-9-]+',
29 29
         // (0[1-9]|[12]\d|3[01]) with 0, like 05
30 30
         // ([1-9]|[12]\d|3[01]) without 0, like 5
31 31
     ]
Please login to merge, or discard this patch.
src/module/Articles/hooks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 use Rudolf\Component\Hooks\Filter;
4 4
 
5
-Filter::add('head_after', function ($after) {
5
+Filter::add('head_after', function($after) {
6 6
     $after[] = '<link href="'.DIR.'/rss/" rel="alternate" type="application/rss+xml" title="Kanał z artykułami">';
7 7
 
8 8
     return $after;
Please login to merge, or discard this patch.
src/module/Articles/One/Admin/FormCheck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             'published' => '',
27 27
         ], $this->data);
28 28
 
29
-        $data = array_map(function ($a) {
29
+        $data = array_map(function($a) {
30 30
             return trim($a);
31 31
         }, $data);
32 32
 
Please login to merge, or discard this patch.
src/component/Auth/Auth.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
      *
138 138
      * @param string $email
139 139
      *
140
-     * @return array
140
+     * @return string
141 141
      */
142 142
     public function getUserDataByEmail($email)
143 143
     {
Please login to merge, or discard this patch.
src/component/Auth/Session.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@  discard block
 block discarded – undo
10 10
 
11 11
     private $cookieName = 'auth';
12 12
 
13
+    /**
14
+     * @param string $prefix
15
+     */
13 16
     public function __construct($pdo, $prefix, $config)
14 17
     {
15 18
         $this->pdo = $pdo;
@@ -83,7 +86,6 @@  discard block
 block discarded – undo
83 86
     /**
84 87
      * Destroy session.
85 88
      *
86
-     * @param string $hash Cookie hash
87 89
      *
88 90
      * @return bool
89 91
      */
Please login to merge, or discard this patch.
src/component/ErrorHandler/Handler/UserFriendlyHandler.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -38,6 +38,7 @@
 block discarded – undo
38 38
     /**
39 39
      * Displays an error message in html.
40 40
      *
41
+     * @param integer $code
41 42
      * @return string
42 43
      */
43 44
     public function displayDefaultMessage($code, $message, $text)
Please login to merge, or discard this patch.
src/component/ErrorHandler/Run.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     /**
81 81
      * Handle exceptions.
82 82
      *
83
-     * @param Exception $e
83
+     * @param \ErrorException $e
84 84
      */
85 85
     public function handleException($e)
86 86
     {
Please login to merge, or discard this patch.
src/component/Feed/RSS2Generator.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      *
182 182
      * @example en-us
183 183
      *
184
-     * @param string $laguage
184
+     * @param string $language
185 185
      */
186 186
     public function setLanguage($language)
187 187
     {
@@ -461,6 +461,9 @@  discard block
 block discarded – undo
461 461
         $this->skipDays = $skipDays;
462 462
     }
463 463
 
464
+    /**
465
+     * @param string[] $items
466
+     */
464 467
     public function setItems($items)
465 468
     {
466 469
         $this->items = $items;
Please login to merge, or discard this patch.
src/component/Feed/RSS2Item.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     /**
144 144
      * Get item title.
145 145
      *
146
-     * @return bool|string
146
+     * @return false|string
147 147
      */
148 148
     public function getTitle()
149 149
     {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     /**
158 158
      * Get item link.
159 159
      *
160
-     * @return bool|string
160
+     * @return false|string
161 161
      */
162 162
     public function getLink()
163 163
     {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     /**
172 172
      * Get item description.
173 173
      *
174
-     * @return bool|string
174
+     * @return false|string
175 175
      */
176 176
     public function getDescription()
177 177
     {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     /**
188 188
      * Get item author.
189 189
      *
190
-     * @return bool|string
190
+     * @return false|string
191 191
      */
192 192
     public function getAuthor()
193 193
     {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     /**
202 202
      * Get item category.
203 203
      *
204
-     * @return bool|string
204
+     * @return false|string
205 205
      */
206 206
     public function getCategory()
207 207
     {
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     /**
216 216
      * Get item pub date.
217 217
      *
218
-     * @return bool|string
218
+     * @return false|string
219 219
      */
220 220
     public function getPubDate()
221 221
     {
Please login to merge, or discard this patch.