Completed
Push — develop ( 8dee05 )
by Dmytro
20:08
created
manager/media/style/common/moo-datepicker/datepicker.inc.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2
-class DATEPICKER {
3
-    function __construct() {
2
+class DATEPICKER{
3
+    function __construct(){
4 4
     }
5
-    function getDP() {
5
+    function getDP(){
6 6
         $modx = evolutionCMS(); global$_lang;
7 7
 
8 8
         $tpl = file_get_contents(__DIR__.'/datepicker.tpl');
9
-        return $modx->parseText($tpl,$_lang,'[%','%]');
9
+        return $modx->parseText($tpl, $_lang, '[%', '%]');
10 10
     }
11 11
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,11 @@
 block discarded – undo
1 1
 <?php
2
-class DATEPICKER {
3
-    function __construct() {
2
+class DATEPICKER
3
+{
4
+    function __construct()
5
+    {
4 6
     }
5
-    function getDP() {
7
+    function getDP()
8
+    {
6 9
         $modx = evolutionCMS(); global$_lang;
7 10
 
8 11
         $tpl = file_get_contents(__DIR__.'/datepicker.tpl');
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/config.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** This file is part of KCFinder project
4
-  *
5
-  *      @desc Base configuration file
6
-  *   @package KCFinder
7
-  *   @version 2.54
8
-  *    @author Pavel Tzonkov <[email protected]>
9
-  * @copyright 2010-2014 KCFinder Project
10
-  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
-  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
-  *      @link http://kcfinder.sunhater.com
13
-  */
4
+ *
5
+ *      @desc Base configuration file
6
+ *   @package KCFinder
7
+ *   @version 2.54
8
+ *    @author Pavel Tzonkov <[email protected]>
9
+ * @copyright 2010-2014 KCFinder Project
10
+ *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
+ *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
+ *      @link http://kcfinder.sunhater.com
13
+ */
14 14
 
15 15
 // IMPORTANT!!! Do not remove uncommented settings in this file even if
16 16
 // you are using session configuration.
@@ -66,14 +66,14 @@  discard block
 block discarded – undo
66 66
     'dirnameChangeChars' => array(
67 67
         ' ' => "_",
68 68
         ':' => "."
69
-     ),
69
+        ),
70 70
     'mime_magic' => "",
71 71
 
72 72
     'maxImageWidth' => $modx->config['maxImageWidth'],
73 73
     'maxImageHeight' => $modx->config['maxImageHeight'],
74 74
     'clientResize'   => $modx->config['clientResize'] && $modx->config['maxImageWidth'] && $modx->config['maxImageHeight'] ? array('maxWidth'  => $modx->config['maxImageWidth'],
75
-                                                                                                                                   'maxHeight' => $modx->config['maxImageHeight'],
76
-                                                                                                                                   'quality'   => $modx->config['jpegQuality'] / 100
75
+                                                                                                                                    'maxHeight' => $modx->config['maxImageHeight'],
76
+                                                                                                                                    'quality'   => $modx->config['jpegQuality'] / 100
77 77
     ) : array(),
78 78
 
79 79
     'thumbWidth' => $modx->config['thumbWidth'],
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     'assetsURL'           => rtrim($modx->config['rb_base_url'], '/'),
30 30
     'dirPerms'            => intval($modx->config['new_folder_permissions'], 8),
31 31
     'filePerms'           => intval($modx->config['new_file_permissions'], 8),
32
-    'maxfilesize'         => (int)$modx->config['upload_maxsize'],
32
+    'maxfilesize'         => (int) $modx->config['upload_maxsize'],
33 33
     'noThumbnailsRecreation' => $modx->config['noThumbnailsRecreation'],
34 34
 
35 35
     'access' => array(
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     // THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION
90 90
     '_check4htaccess' => false,
91
-    '_tinyMCEPath' => MODX_BASE_URL . "assets/plugins/tinymce/tiny_mce",
91
+    '_tinyMCEPath' => MODX_BASE_URL."assets/plugins/tinymce/tiny_mce",
92 92
 
93 93
     '_sessionVar' => &$_SESSION['KCFINDER'],
94 94
     //'_sessionLifetime' => 30,
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/core/autoload.php 3 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** This file is part of KCFinder project
4
-  *
5
-  *      @desc This file is included first, before each other
6
-  *   @package KCFinder
7
-  *   @version 2.54
8
-  *    @author Pavel Tzonkov <[email protected]>
9
-  * @copyright 2010-2014 KCFinder Project
10
-  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
-  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
-  *      @link http://kcfinder.sunhater.com
13
-  *
14
-  * This file is the place you can put any code (at the end of the file),
15
-  * which will be executed before any other. Suitable for:
16
-  *     1. Set PHP ini settings using ini_set()
17
-  *     2. Custom session save handler with session_set_save_handler()
18
-  *     3. Any custom integration code. If you use any global variables
19
-  *        here, they can be accessed in config.php via $GLOBALS array.
20
-  *        It's recommended to use constants instead.
21
-  */
4
+ *
5
+ *      @desc This file is included first, before each other
6
+ *   @package KCFinder
7
+ *   @version 2.54
8
+ *    @author Pavel Tzonkov <[email protected]>
9
+ * @copyright 2010-2014 KCFinder Project
10
+ *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
+ *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
+ *      @link http://kcfinder.sunhater.com
13
+ *
14
+ * This file is the place you can put any code (at the end of the file),
15
+ * which will be executed before any other. Suitable for:
16
+ *     1. Set PHP ini settings using ini_set()
17
+ *     2. Custom session save handler with session_set_save_handler()
18
+ *     3. Any custom integration code. If you use any global variables
19
+ *        here, they can be accessed in config.php via $GLOBALS array.
20
+ *        It's recommended to use constants instead.
21
+ */
22 22
 define('IN_MANAGER_MODE', true);
23 23
 define('MODX_API_MODE', true);
24 24
 include_once(__DIR__."/../../../../../index.php");
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,14 +26,14 @@  discard block
 block discarded – undo
26 26
 if (empty ($modx->config)) {
27 27
     $modx->getSettings();
28 28
 }
29
-if(!isset($_SESSION['mgrValidated'])) {
29
+if (!isset($_SESSION['mgrValidated'])) {
30 30
         die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
31 31
 }
32 32
 $manager_language = ManagerTheme::getLangName();
33 33
 $_GET['langCode'] = ManagerTheme::getLang();
34 34
 
35 35
 // MAGIC AUTOLOAD CLASSES FUNCTION
36
-function autoloadda9d06472ccb71b84928677ce2a6ca89($class) {
36
+function autoloadda9d06472ccb71b84928677ce2a6ca89($class){
37 37
     static $classes = null;
38 38
     if ($classes === null) {
39 39
         $classes = array(
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         );
58 58
     }
59 59
     if (isset($classes[$class])) {
60
-        require __DIR__ . $classes[$class];
60
+        require __DIR__.$classes[$class];
61 61
     }
62 62
 }
63 63
 spl_autoload_register('autoloadda9d06472ccb71b84928677ce2a6ca89', true);
Please login to merge, or discard this patch.
Braces   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,19 +23,20 @@  discard block
 block discarded – undo
23 23
 define('MODX_API_MODE', true);
24 24
 include_once(__DIR__."/../../../../../index.php");
25 25
 $modx->db->connect();
26
-if (empty ($modx->config)) {
26
+if (empty ($modx->config)) {
27 27
     $modx->getSettings();
28 28
 }
29
-if(!isset($_SESSION['mgrValidated'])) {
29
+if(!isset($_SESSION['mgrValidated'])) {
30 30
         die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
31 31
 }
32 32
 $manager_language = ManagerTheme::getLangName();
33 33
 $_GET['langCode'] = ManagerTheme::getLang();
34 34
 
35 35
 // MAGIC AUTOLOAD CLASSES FUNCTION
36
-function autoloadda9d06472ccb71b84928677ce2a6ca89($class) {
36
+function autoloadda9d06472ccb71b84928677ce2a6ca89($class)
37
+{
37 38
     static $classes = null;
38
-    if ($classes === null) {
39
+    if ($classes === null) {
39 40
         $classes = array(
40 41
             'browser' => '/browser.php',
41 42
             'dir' => '/../lib/helper_dir.php',
@@ -56,7 +57,7 @@  discard block
 block discarded – undo
56 57
             'fastImage' => '/../lib/class_fastImage.php'
57 58
         );
58 59
     }
59
-    if (isset($classes[$class])) {
60
+    if (isset($classes[$class])) {
60 61
         require __DIR__ . $classes[$class];
61 62
     }
62 63
 }
Please login to merge, or discard this patch.
manager/includes/mutate_settings.ajax.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@
 block discarded – undo
21 21
 
22 22
 switch (true) {
23 23
     case ($action == 'get' && preg_match('/^[A-z0-9_-]+$/',
24
-            $lang) && file_exists(MODX_MANAGER_PATH . 'includes/lang/' . $lang . '.inc.php')): {
25
-        include MODX_MANAGER_PATH . 'includes/lang/' . $lang . '.inc.php';
24
+            $lang) && file_exists(MODX_MANAGER_PATH.'includes/lang/'.$lang.'.inc.php')): {
25
+        include MODX_MANAGER_PATH.'includes/lang/'.$lang.'.inc.php';
26 26
         $str = isset($key, $_lang, $_lang[$key]) ? $_lang[$key] : "";
27 27
         break;
28 28
     }
29 29
     case ($action == 'setsetting' && !empty($key) && !empty($value)): {
30
-        $sql = "REPLACE INTO " . $modx->getDatabase()->getFullTableName("system_settings") . " (setting_name, setting_value) VALUES('{$key}', '{$value}');";
30
+        $sql = "REPLACE INTO ".$modx->getDatabase()->getFullTableName("system_settings")." (setting_name, setting_value) VALUES('{$key}', '{$value}');";
31 31
         $str = "true";
32 32
         $modx->getDatabase()->query($sql);
33 33
         $emptyCache = true;
Please login to merge, or discard this patch.
manager/includes/manager.lockout.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2
-if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
2
+if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
3 3
     die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
4 4
 }
5
-$action = isset($_REQUEST['a']) ? (int)$_REQUEST['a'] : 1;
5
+$action = isset($_REQUEST['a']) ? (int) $_REQUEST['a'] : 1;
6 6
 
7 7
 if (8 !== $action && ManagerTheme::hasManagerAccess() === false) {
8 8
     echo ManagerTheme::renderAccessPage();
Please login to merge, or discard this patch.
manager/includes/actionlist.inc.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2
-if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
2
+if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
3 3
     die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
4 4
 }
5 5
 
6
-$GLOBALS['action_list'] = include EVO_CORE_PATH . 'factory/actionlist.php';
6
+$GLOBALS['action_list'] = include EVO_CORE_PATH.'factory/actionlist.php';
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
2
+if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
3 3
     die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
4 4
 }
5 5
 
Please login to merge, or discard this patch.
manager/includes/document.parser.class.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,4 +5,4 @@
 block discarded – undo
5 5
  *
6 6
  */
7 7
 
8
-include_once EVO_CORE_PATH . 'includes/legacy.inc.php';
8
+include_once EVO_CORE_PATH.'includes/legacy.inc.php';
Please login to merge, or discard this patch.
manager/includes/version.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-$data = include EVO_CORE_PATH . 'factory/version.php';
2
+$data = include EVO_CORE_PATH.'factory/version.php';
3 3
 
4 4
 $modx_version      = $data['version']; // Current version number
5 5
 $modx_release_date = $data['release_date']; // Date of release
Please login to merge, or discard this patch.
manager/includes/sysalert.display.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 $sysMsgs = '';
12 12
 $limit = count($SystemAlertMsgQueque);
13 13
 for ($i = 0; $i < $limit; $i++) {
14
-    $sysMsgs .= $SystemAlertMsgQueque[$i] . '<hr sys/>';
14
+    $sysMsgs .= $SystemAlertMsgQueque[$i].'<hr sys/>';
15 15
 }
16 16
 // reset message queque
17 17
 unset($_SESSION['SystemAlertMsgQueque']);
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
 $SystemAlertMsgQueque = &$_SESSION['SystemAlertMsgQueque'];
20 20
 
21 21
 if ($sysMsgs != '') : ?>
22
-    <link rel="stylesheet" type="text/css" href="<?=MODX_MANAGER_URL;?>media/style/<?=ManagerTheme::getTheme();?>/style.css" />
22
+    <link rel="stylesheet" type="text/css" href="<?=MODX_MANAGER_URL; ?>media/style/<?=ManagerTheme::getTheme(); ?>/style.css" />
23 23
     <script>
24 24
       document.addEventListener('DOMContentLoaded', function() {
25 25
         if (parent.modx) {
26 26
           parent.modx.popup({
27 27
             title: '<?php echo $_lang['sys_alert']; ?>',
28
-            content: '<?php echo $modx->getDatabase()->escape($sysMsgs);?>',
28
+            content: '<?php echo $modx->getDatabase()->escape($sysMsgs); ?>',
29 29
             wrap: document.body,
30 30
             type: 'warning',
31 31
             width: '400px',
Please login to merge, or discard this patch.