@@ -26,7 +26,7 @@ |
||
| 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 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | 'thumb_height' => '', |
| 19 | 19 | ], $this->data); |
| 20 | 20 | |
| 21 | - $data = array_map(function ($a) { |
|
| 21 | + $data = array_map(function($a) { |
|
| 22 | 22 | return trim($a); |
| 23 | 23 | }, $data); |
| 24 | 24 | |
@@ -15,7 +15,7 @@ discard block |
||
| 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 |
||
| 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 | ] |
@@ -2,7 +2,7 @@ |
||
| 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; |
@@ -26,7 +26,7 @@ |
||
| 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 | |