Completed
Push — master ( 02b993...3405ac )
by Mikołaj
02:38
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/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/Hooks/Action.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,6 @@
 block discarded – undo
92 92
      * @since 0.1
93 93
      *
94 94
      * @param string $tag     The name of the action to be executed.
95
-     * @param mixed  $arg,... Optional additional arguments which are passed on to the functions
96
-     *                        hooked to the action.
97 95
      */
98 96
     public static function dispatch($tag, $arg = '')
99 97
     {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -9 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         if (!isset(self::$actions[$tag])) {
105 105
             self::$actions[$tag] = 1;
106
-        } else {
107
-            ++self::$actions[$tag];
106
+        } else {++self::$actions[$tag];
108 107
         }
109 108
 
110 109
         // Do 'all' actions first
@@ -137,9 +136,9 @@  discard block
 block discarded – undo
137 136
         }
138 137
 
139 138
         // Sort
140
-        if (!isset(Filter::$mergedFilters[ $tag ])) {
139
+        if (!isset(Filter::$mergedFilters[$tag])) {
141 140
             ksort(Filter::$filters[$tag]);
142
-            Filter::$mergedFilters[ $tag ] = true;
141
+            Filter::$mergedFilters[$tag] = true;
143 142
         }
144 143
 
145 144
         reset(Filter::$filters[$tag]);
@@ -171,8 +170,7 @@  discard block
 block discarded – undo
171 170
 
172 171
         if (!isset(self::$actions[$tag])) {
173 172
             self::$actions[$tag] = 1;
174
-        } else {
175
-            ++self::$actions[$tag];
173
+        } else {++self::$actions[$tag];
176 174
         }
177 175
 
178 176
         // Do 'all' actions first
@@ -195,12 +193,12 @@  discard block
 block discarded – undo
195 193
         }
196 194
 
197 195
         // Sort
198
-        if (!isset($merged_filters[ $tag ])) {
196
+        if (!isset($merged_filters[$tag])) {
199 197
             ksort(Filter::$filters[$tag]);
200
-            $merged_filters[ $tag ] = true;
198
+            $merged_filters[$tag] = true;
201 199
         }
202 200
 
203
-        reset(Filter::$filters[ $tag ]);
201
+        reset(Filter::$filters[$tag]);
204 202
 
205 203
         do {
206 204
             foreach ((array) current(Filter::$filters[$tag]) as $the_) {
Please login to merge, or discard this patch.
src/framework/Model/BaseModel.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * Create connection with database.
47 47
      *
48
-     * @return object PDO
48
+     * @return PDO PDO
49 49
      */
50 50
     private function connect()
51 51
     {
Please login to merge, or discard this patch.
src/module/Pages/One/Model.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      * @param array $path
13 13
      * @param array $pages
14 14
      *
15
-     * @return int|bool
15
+     * @return integer
16 16
      */
17 17
     public function getPageIdByPath(array $path, array $pages)
18 18
     {
Please login to merge, or discard this patch.
src/module/Pages/Roll/Admin/Model.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     /**
42 42
      * Returns total number of pages items.
43 43
      *
44
-     * @param array|string $where
44
+     * @param string $where
45 45
      *
46 46
      * @return int
47 47
      */
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
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
      *
150 150
      * @param string $email
151 151
      *
152
-     * @return array|bool
152
+     * @return string
153 153
      */
154 154
     public function getUserDataByEmail($email)
155 155
     {
Please login to merge, or discard this patch.