Completed
Push — master ( 2fcbbc...aa3e09 )
by Mikołaj
03:33
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/init.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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, LOCALES_ROOT);
Please login to merge, or discard this patch.
src/defines.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -4,18 +4,18 @@  discard block
 block discarded – undo
4 4
 define('VER_NAME', '0.12.0');
5 5
 define('NAME', 'rudolf');
6 6
 
7
-define('APP_ROOT',      dirname(__DIR__));
8
-define('MODULES_ROOT',  APP_ROOT.'/src/module');
9
-define('LOCALES_ROOT',  APP_ROOT.'/src/locale');
7
+define('APP_ROOT', dirname(__DIR__));
8
+define('MODULES_ROOT', APP_ROOT.'/src/module');
9
+define('LOCALES_ROOT', APP_ROOT.'/src/locale');
10 10
 
11
-define('CONFIG_ROOT',   APP_ROOT.'/config');
12
-define('TEMP_ROOT',     APP_ROOT.'/temp');
13
-define('LOG_ROOT',      APP_ROOT.'/log');
11
+define('CONFIG_ROOT', APP_ROOT.'/config');
12
+define('TEMP_ROOT', APP_ROOT.'/temp');
13
+define('LOG_ROOT', APP_ROOT.'/log');
14 14
 
15
-define('CONTENT_ROOT',  WEB_ROOT.'/content');
16
-define('PLUGINS_ROOT',  CONTENT_ROOT.'/plugins');
17
-define('THEMES_ROOT',   CONTENT_ROOT.'/themes');
18
-define('UPLOADS_ROOT',  CONTENT_ROOT.'/uploads');
15
+define('CONTENT_ROOT', WEB_ROOT.'/content');
16
+define('PLUGINS_ROOT', CONTENT_ROOT.'/plugins');
17
+define('THEMES_ROOT', CONTENT_ROOT.'/themes');
18
+define('UPLOADS_ROOT', CONTENT_ROOT.'/uploads');
19 19
 
20 20
 if (dirname($_SERVER['SCRIPT_NAME']) == '/') {
21 21
     define('DIR', '');
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     define('DIR', dirname($_SERVER['SCRIPT_NAME']));
24 24
 }
25 25
 
26
-define('CONTENT',       DIR.'/content');
27
-define('PLUGINS',       CONTENT.'/plugins');
28
-define('THEMES',        CONTENT.'/themes');
29
-define('UPLOADS',       CONTENT.'/uploads');
26
+define('CONTENT', DIR.'/content');
27
+define('PLUGINS', CONTENT.'/plugins');
28
+define('THEMES', CONTENT.'/themes');
29
+define('UPLOADS', CONTENT.'/uploads');
Please login to merge, or discard this patch.