Completed
Push — master ( 839d47...37a059 )
by Nazar
04:12
created
components/modules/Cron/admin/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   Cron
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   Cron
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
 use
11 11
 	h;
Please login to merge, or discard this patch.
components/modules/Comments/events/installed.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		Comments
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		Comments
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\Comments;
10 10
 use
11 11
 	cs\Cache,
Please login to merge, or discard this patch.
components/modules/Comments/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   Comments
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   Comments
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
 	'System/Index/construct',
Please login to merge, or discard this patch.
components/modules/Comments/api/index.put.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   Comments
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   Comments
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\Comments;
10 10
 use
11 11
 	cs\Config,
@@ -16,14 +16,14 @@  discard block
 block discarded – undo
16 16
 	cs\Route,
17 17
 	cs\User;
18 18
 /**
19
- * Provides next events:
20
- *  api/Comments/edit
21
- *  [
22
- *   'Comments' => <i>&$Comments //Comments object should be returned in this parameter (after access checking)<br>
23
- *   'id'       => <i>id         //Comment id<br>
24
- *   'module'   => <i>module     //Module<br>
25
- *  ]
26
- */
19
+	 * Provides next events:
20
+	 *  api/Comments/edit
21
+	 *  [
22
+	 *   'Comments' => <i>&$Comments //Comments object should be returned in this parameter (after access checking)<br>
23
+	 *   'id'       => <i>id         //Comment id<br>
24
+	 *   'module'   => <i>module     //Module<br>
25
+	 *  ]
26
+	 */
27 27
 $Config = Config::instance();
28 28
 if (!$Config->module('Comments')->enabled()) {
29 29
 	throw new ExitException(404);
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
 	throw new ExitException($L->comment_editing_server_error, 500);
54 54
 }
55 55
 /**
56
- * @var Comments $Comments
57
- */
56
+	 * @var Comments $Comments
57
+	 */
58 58
 $result = $Comments->set($Route->route[0], $_POST['text']);
59 59
 if ($result) {
60 60
 	$Page->json($result['text']);
Please login to merge, or discard this patch.
components/modules/Comments/api/index.post.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   Comments
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   Comments
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\Comments;
10 10
 use
11 11
 	cs\Config,
@@ -15,14 +15,14 @@  discard block
 block discarded – undo
15 15
 	cs\Page,
16 16
 	cs\User;
17 17
 /**
18
- * Provides next events:
19
- *  api/Comments/add
20
- *  [
21
- *   'Comments' => &$Comments //Comments object should be returned in this parameter (after access checking)<br>
22
- *   'item'     => item       //Item id<br>
23
- *   'module'   => module     //Module<br>
24
- *  ]
25
- */
18
+	 * Provides next events:
19
+	 *  api/Comments/add
20
+	 *  [
21
+	 *   'Comments' => &$Comments //Comments object should be returned in this parameter (after access checking)<br>
22
+	 *   'item'     => item       //Item id<br>
23
+	 *   'module'   => module     //Module<br>
24
+	 *  ]
25
+	 */
26 26
 $Config = Config::instance();
27 27
 if (!$Config->module('Comments')->enabled()) {
28 28
 	throw new ExitException(404);
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
 	throw new ExitException($L->comment_sending_server_error, 500);
52 52
 }
53 53
 /**
54
- * @var Comments $Comments
55
- */
54
+	 * @var Comments $Comments
55
+	 */
56 56
 $result = $Comments->add($_POST['item'], $_POST['text'], $_POST['parent']);
57 57
 if ($result) {
58 58
 	$result['comments'] = false;
Please login to merge, or discard this patch.
components/modules/Comments/api/index.delete.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   Comments
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   Comments
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\Comments;
10 10
 use
11 11
 	h,
@@ -17,15 +17,15 @@  discard block
 block discarded – undo
17 17
 	cs\Route,
18 18
 	cs\User;
19 19
 /**
20
- * Provides next events:
21
- *  api/Comments/delete
22
- *  [
23
- *   'Comments'      => &$Comments      //Comments object should be returned in this parameter (after access checking)<br>
24
- *   'delete_parent' => &$delete_parent //Boolean parameter, should contain boolean true, if parent comment may be deleted by current user<br>
25
- *   'id'            => id              //Comment id<br>
26
- *   'module'        => module          //Module<br>
27
- *  ]
28
- */
20
+	 * Provides next events:
21
+	 *  api/Comments/delete
22
+	 *  [
23
+	 *   'Comments'      => &$Comments      //Comments object should be returned in this parameter (after access checking)<br>
24
+	 *   'delete_parent' => &$delete_parent //Boolean parameter, should contain boolean true, if parent comment may be deleted by current user<br>
25
+	 *   'id'            => id              //Comment id<br>
26
+	 *   'module'        => module          //Module<br>
27
+	 *  ]
28
+	 */
29 29
 $Config = Config::instance();
30 30
 if (!$Config->module('Comments')->enabled()) {
31 31
 	throw new ExitException(404);
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
 	throw new ExitException($L->comment_deleting_server_error, 500);
55 55
 }
56 56
 /**
57
- * @var Comments $Comments
58
- */
57
+	 * @var Comments $Comments
58
+	 */
59 59
 if ($result = $Comments->del($Route->route[0])) {
60 60
 	$Page->json($delete_parent ? h::{'icon.cs-comments-comment-delete.cs-cursor-pointer'}('trash') : '');
61 61
 } else {
Please login to merge, or discard this patch.
components/modules/Shop/admin/attributes.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    Shop
4
- * @attribute  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    Shop
4
+	 * @attribute  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\modules\Shop;
10 10
 use
11 11
 	h,
Please login to merge, or discard this patch.
components/modules/Shop/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    Shop
4
- * @attribute  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    Shop
4
+	 * @attribute  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\Shop;
10 10
 use
11 11
 	cs\Config,
Please login to merge, or discard this patch.
components/modules/Shop/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   Shop
4
- * @attribute 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   Shop
4
+	 * @attribute 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\modules\Shop;
10 10
 use
11 11
 	cs\Config,
Please login to merge, or discard this patch.