Completed
Push — master ( c7c099...bc3d45 )
by Nazar
04:15
created
components/modules/WebSockets/Connection_properties_injector.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   WebSockets
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   WebSockets
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\WebSockets;
10 10
 use
11 11
 	cs\_SERVER,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 	public function onOpen (ConnectionInterface $conn, RequestInterface $request = null) {
28 28
 		$L = Language::instance();
29 29
 		/** @noinspection PhpUndefinedFieldInspection */
30
-		$ip               = $this->ip(
30
+		$ip = $this->ip(
31 31
 			[
32 32
 				$conn->remoteAddress,
33 33
 				$request->getHeader('X-Forwarded-For'),
Please login to merge, or discard this patch.
components/modules/Static_pages/index.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   Static Pages
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Static Pages
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 use
10 10
 	cs\Page;
11 11
 /**
12
- * Remove automatically added module name from title
13
- */
12
+	 * Remove automatically added module name from title
13
+	 */
14 14
 array_pop(Page::instance()->Title);
Please login to merge, or discard this patch.
components/modules/Deferred_tasks/events/uninstalled.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package		Deferred tasks
4
- * @category	modules
5
- * @author		Nazar Mokrynskyi <[email protected]>
6
- * @copyright	Copyright (c) 2011-2016, Nazar Mokrynskyi
7
- * @license		MIT License, see license.txt
8
- */
3
+	 * @package		Deferred tasks
4
+	 * @category	modules
5
+	 * @author		Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright	Copyright (c) 2011-2016, Nazar Mokrynskyi
7
+	 * @license		MIT License, see license.txt
8
+	 */
9 9
 namespace	cs;
10 10
 Event::instance()->on(
11 11
 	'admin/System/components/modules/install/after',
Please login to merge, or discard this patch.
components/modules/Deferred_tasks/events.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   Deferred tasks
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Deferred tasks
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs;
10 10
 Event::instance()->on(
11 11
 	'System/Index/construct',
Please login to merge, or discard this patch.
components/modules/Blogs/post.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   Blogs
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Blogs
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blogs;
10 10
 use
11 11
 	h,
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
 	]
34 34
 );
35 35
 /**
36
- * @var \cs\modules\Comments\Comments $Comments
37
- */
36
+	 * @var \cs\modules\Comments\Comments $Comments
37
+	 */
38 38
 $Posts   = Posts::instance();
39 39
 $rc      = Route::instance()->route;
40 40
 $post_id = (int)mb_substr($rc[1], mb_strrpos($rc[1], ':') + 1);
Please login to merge, or discard this patch.
components/modules/Blogs/events/enabled/admin.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   Blogs
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2014-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Blogs
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2014-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs;
10 10
 Event::instance()->on(
11 11
 	'admin/System/Menu',
Please login to merge, or discard this patch.
components/modules/Blogs/events/enabled.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package        Blogs
4
- * @category       modules
5
- * @author         Nazar Mokrynskyi <[email protected]>
6
- * @copyright      Copyright (c) 2011-2016, Nazar Mokrynskyi
7
- * @license        MIT License, see license.txt
8
- */
3
+	 * @package        Blogs
4
+	 * @category       modules
5
+	 * @author         Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright      Copyright (c) 2011-2016, Nazar Mokrynskyi
7
+	 * @license        MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blogs;
10 10
 
11 11
 use
Please login to merge, or discard this patch.
components/modules/Blogs/events/uninstalled.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package		Blogs
4
- * @category	modules
5
- * @author		Nazar Mokrynskyi <[email protected]>
6
- * @copyright	Copyright (c) 2011-2016, Nazar Mokrynskyi
7
- * @license		MIT License, see license.txt
8
- */
3
+	 * @package		Blogs
4
+	 * @category	modules
5
+	 * @author		Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright	Copyright (c) 2011-2016, Nazar Mokrynskyi
7
+	 * @license		MIT License, see license.txt
8
+	 */
9 9
 namespace	cs;
10 10
 Event::instance()->on(
11 11
 	'admin/System/components/modules/install/after',
Please login to merge, or discard this patch.
components/modules/Blogs/section.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   Blogs
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Blogs
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blogs;
10 10
 use
11 11
 	cs\Config,
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 $Route    = Route::instance();
28 28
 $Sections = Sections::instance();
29 29
 /**
30
- * At first - determine part of url and get sections list based on that path
31
- */
30
+	 * At first - determine part of url and get sections list based on that path
31
+	 */
32 32
 $sections = $Sections->get_by_path(
33 33
 	array_slice($Route->path, 1)
34 34
 );
@@ -37,49 +37,49 @@  discard block
 block discarded – undo
37 37
 }
38 38
 $sections = $Sections->get($sections);
39 39
 /**
40
- * Now lets set page title using sections names from page path
41
- * We will not remove `$section` variable after, since it will be direct parent of each shown post
42
- */
40
+	 * Now lets set page title using sections names from page path
41
+	 * We will not remove `$section` variable after, since it will be direct parent of each shown post
42
+	 */
43 43
 foreach ($sections as $section) {
44 44
 	$Page->title($section['title']);
45 45
 }
46 46
 /**
47
- * Now add link to Atom feed for posts from current section only
48
- */
47
+	 * Now add link to Atom feed for posts from current section only
48
+	 */
49 49
 /** @noinspection PhpUndefinedVariableInspection */
50 50
 $Page->atom(
51 51
 	"Blogs/atom.xml/?section=$section[id]",
52 52
 	implode($Config->core['title_delimiter'], [$L->latest_posts, $L->section, $section['title']])
53 53
 );
54 54
 /**
55
- * Set page of blog type (Open Graph protocol)
56
- */
55
+	 * Set page of blog type (Open Graph protocol)
56
+	 */
57 57
 $Meta->blog();
58 58
 /**
59
- * Determine current page
60
- */
59
+	 * Determine current page
60
+	 */
61 61
 $page = max(
62 62
 	isset($Route->ids[0]) ? array_slice($Route->ids, -1)[0] : 1,
63 63
 	1
64 64
 );
65 65
 /**
66
- * If this is not first page - show that in page title
67
- */
66
+	 * If this is not first page - show that in page title
67
+	 */
68 68
 if ($page > 1) {
69 69
 	$Page->title($L->blogs_nav_page($page));
70 70
 }
71 71
 /**
72
- * Get posts for current page in JSON-LD structure format
73
- */
72
+	 * Get posts for current page in JSON-LD structure format
73
+	 */
74 74
 $posts_per_page = $Config->module('Blogs')->posts_per_page;
75 75
 $posts          = $Posts->get_for_section($section['id'], $page, $posts_per_page);
76 76
 /**
77
- * Base url (without page number)
78
- */
77
+	 * Base url (without page number)
78
+	 */
79 79
 $base_url = $Config->base_url().'/'.path($L->Blogs).'/'.path($L->section)."/$section[full_path]";
80 80
 /**
81
- * Render posts page
82
- */
81
+	 * Render posts page
82
+	 */
83 83
 Helpers::show_posts_list(
84 84
 	$posts,
85 85
 	$section['posts'],
Please login to merge, or discard this patch.