Completed
Push — master ( b603d8...71820b )
by Nazar
04:03
created
components/modules/Blockchain_payment/index.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   Blockchain payment
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Blockchain payment
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blockchain_payment;
10 10
 use
11 11
 	h,
Please login to merge, or discard this patch.
components/modules/Blogs/Tags.php 1 patch
Indentation   +12 added lines, -12 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) 2015, 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) 2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blogs;
10 10
 use
11 11
 	cs\Cache\Prefix,
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
 	cs\plugins\Tags\Tags as Tags_trait,
14 14
 	cs\Singleton;
15 15
 /**
16
- * Tags trait
17
- *
18
- * Provides methods for working with tags for faster development
19
- *
20
- * @method static Tags instance($check = false)
21
- */
16
+	 * Tags trait
17
+	 *
18
+	 * Provides methods for working with tags for faster development
19
+	 *
20
+	 * @method static Tags instance($check = false)
21
+	 */
22 22
 class Tags {
23 23
 	use
24 24
 		Tags_trait,
Please login to merge, or discard this patch.
components/modules/Blogs/atom.xml.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) 2015, 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) 2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blogs;
10 10
 use
11 11
 	h,
Please login to merge, or discard this patch.
components/modules/Blogs/drafts.php 1 patch
Indentation   +16 added lines, -16 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-2015, 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-2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blogs;
10 10
 use
11 11
 	cs\Config,
@@ -26,31 +26,31 @@  discard block
 block discarded – undo
26 26
 $User   = User::instance();
27 27
 $Page->title($L->drafts);
28 28
 /**
29
- * Determine current page
30
- */
29
+	 * Determine current page
30
+	 */
31 31
 $page = max(
32 32
 	isset($Route->ids[0]) ? array_slice($Route->ids, -1)[0] : 1,
33 33
 	1
34 34
 );
35 35
 /**
36
- * If this is not first page - show that in page title
37
- */
36
+	 * If this is not first page - show that in page title
37
+	 */
38 38
 if ($page > 1) {
39 39
 	$Page->title($L->blogs_nav_page($page));
40 40
 }
41 41
 /**
42
- * Get posts for current page in JSON-LD structure format
43
- */
42
+	 * Get posts for current page in JSON-LD structure format
43
+	 */
44 44
 $posts_per_page = $Config->module('Blogs')->posts_per_page;
45 45
 $posts          = $Posts->get_drafts($User->id, $page, $posts_per_page);
46 46
 $posts_count    = $Posts->get_drafts_count($User->id);
47 47
 /**
48
- * Base url (without page number)
49
- */
48
+	 * Base url (without page number)
49
+	 */
50 50
 $base_url = $Config->base_url().'/'.path($L->Blogs).'/'.path($L->drafts);
51 51
 /**
52
- * Render posts page
53
- */
52
+	 * Render posts page
53
+	 */
54 54
 Helpers::show_posts_list(
55 55
 	$posts,
56 56
 	$posts_count,
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-2015, 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-2015, 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/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-2015, 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-2015, 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/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-2015, 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-2015, 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/latest_posts.php 1 patch
Indentation   +22 added lines, -22 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-2015, 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-2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blogs;
10 10
 use
11 11
 	cs\Config,
@@ -25,42 +25,42 @@  discard block
 block discarded – undo
25 25
 $Posts  = Posts::instance();
26 26
 $Route  = Route::instance();
27 27
 /**
28
- * Page title
29
- */
28
+	 * Page title
29
+	 */
30 30
 $Page->title($L->latest_posts);
31 31
 /**
32
- * Now add link to Atom feed for latest posts
33
- */
32
+	 * Now add link to Atom feed for latest posts
33
+	 */
34 34
 $Page->atom('Blogs/atom.xml', $L->latest_posts);
35 35
 /**
36
- * Set page of blog type (Open Graph protocol)
37
- */
36
+	 * Set page of blog type (Open Graph protocol)
37
+	 */
38 38
 $Meta->blog();
39 39
 /**
40
- * Determine current page
41
- */
40
+	 * Determine current page
41
+	 */
42 42
 $page = max(
43 43
 	isset($Route->ids[0]) ? array_slice($Route->ids, -1)[0] : 1,
44 44
 	1
45 45
 );
46 46
 /**
47
- * If this is not first page - show that in page title
48
- */
47
+	 * If this is not first page - show that in page title
48
+	 */
49 49
 if ($page > 1) {
50 50
 	$Page->title($L->blogs_nav_page($page));
51 51
 }
52 52
 /**
53
- * Get posts for current page in JSON-LD structure format
54
- */
53
+	 * Get posts for current page in JSON-LD structure format
54
+	 */
55 55
 $posts_per_page = $Config->module('Blogs')->posts_per_page;
56 56
 $posts          = $Posts->get_latest_posts($page, $posts_per_page);
57 57
 /**
58
- * Base url (without page number)
59
- */
58
+	 * Base url (without page number)
59
+	 */
60 60
 $base_url = $Config->base_url().'/'.path($L->Blogs).'/'.path($L->latest_posts);
61 61
 /**
62
- * Render posts page
63
- */
62
+	 * Render posts page
63
+	 */
64 64
 Helpers::show_posts_list(
65 65
 	$posts,
66 66
 	$Posts->get_total_count(),
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-2015, 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-2015, 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.