@@ -32,7 +32,7 @@ |
||
| 32 | 32 | putenv('LC_ALL='.$lang.'.'.$codeset); |
| 33 | 33 | putenv('LANG='.$lang.'.'.$codeset); |
| 34 | 34 | putenv('LANGUAGE='.$lang.'.'.$codeset); |
| 35 | -setlocale(LC_ALL, $lang.'.'.$codeset); |
|
| 35 | +setlocale(LC_ALL, $lang.'.'.$codeset); |
|
| 36 | 36 | |
| 37 | 37 | $domain = 'rudolf'; |
| 38 | 38 | bindtextdomain($domain, APP_ROOT.'/locale'); |
@@ -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 | ] |
@@ -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 | |
@@ -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 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | file_put_contents($file, implode(':', $contentArray)); |
| 43 | 43 | |
| 44 | - setcookie('vote_'.$id, $type, time() + (3600 * 24 * 365 * 5), DIR); |
|
| 44 | + setcookie('vote_'.$id, $type, time() + (3600 * 24 * 365 * 5), DIR); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | return [ |
@@ -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 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | 'type' => $this->type, |
| 24 | 24 | ], $this->data); |
| 25 | 25 | |
| 26 | - $data = array_map(function ($a) { |
|
| 26 | + $data = array_map(function($a) { |
|
| 27 | 27 | return trim($a); |
| 28 | 28 | }, $data); |
| 29 | 29 | |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | 'foto/kategorie/<slug>(/|/page/<page>)?', |
| 16 | 16 | 'Rudolf\Modules\Albums\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 | 'foto/<year>/<month>/<slug>(\/)?', |
| 25 | 25 | 'Rudolf\Modules\Albums\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 | ] |