Completed
Push — develop ( d568f8...c061fc )
by Agel_Nash
06:25
created
manager/actions/mutate_settings/snippet_smtp.inc.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
   <tr>
3 3
     <td><?php echo $_lang['smtp_auth_title'] ?></td>
4 4
     <td>
5
-        <?php echo wrap_label($_lang['yes'], form_radio('smtp_auth', '1'));?><br />
6
-        <?php echo wrap_label($_lang['no'], form_radio('smtp_auth', '0'));?>
5
+        <?php echo wrap_label($_lang['yes'], form_radio('smtp_auth', '1')); ?><br />
6
+        <?php echo wrap_label($_lang['no'], form_radio('smtp_auth', '0')); ?>
7 7
     </td>
8 8
   </tr>
9 9
   <tr>
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
     <td >
16 16
      <select name="smtp_secure" size="1" class="inputBox">
17 17
   <option value="none" ><?php echo $_lang['no'] ?></option>
18
-   <option value="ssl" <?php if ($smtp_secure == 'ssl') {
18
+   <option value="ssl" <?php if ($smtp_secure == 'ssl') {
19 19
     echo "selected='selected'";
20 20
 } ?> >SSL</option>
21
-  <option value="tls" <?php if ($smtp_secure == 'tls') {
21
+  <option value="tls" <?php if ($smtp_secure == 'tls') {
22 22
     echo "selected='selected'";
23 23
 } ?> >TLS</option>
24 24
  </select>
Please login to merge, or discard this patch.
manager/actions/mutate_settings/tab4_manager_settings.inc.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                             }
57 57
                             $themename = $file;
58 58
                             $selectedtext = $themename == $manager_theme ? "selected='selected'" : "";
59
-                            echo "<option value='$themename' $selectedtext>" . ucwords(str_replace("_", " ", $themename)) . "</option>";
59
+                            echo "<option value='$themename' $selectedtext>".ucwords(str_replace("_", " ", $themename))."</option>";
60 60
                         }
61 61
                     }
62 62
                     $dir->close();
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             function BrowseServer() {
125 125
               var w = screen.width * 0.7;
126 126
               var h = screen.height * 0.7;
127
-              OpenServerBrowser("<?php echo MODX_MANAGER_URL; ?>media/browser/<?php echo $which_browser;?>/browser.php?Type=images", w, h);
127
+              OpenServerBrowser("<?php echo MODX_MANAGER_URL; ?>media/browser/<?php echo $which_browser; ?>/browser.php?Type=images", w, h);
128 128
             }
129 129
 
130 130
             function SetUrl(url, width, height, alt) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             function BrowseServer() {
163 163
               var w = screen.width * 0.7;
164 164
               var h = screen.height * 0.7;
165
-              OpenServerBrowser("<?php echo MODX_MANAGER_URL; ?>media/browser/<?php echo $which_browser;?>/browser.php?Type=images", w, h);
165
+              OpenServerBrowser("<?php echo MODX_MANAGER_URL; ?>media/browser/<?php echo $which_browser; ?>/browser.php?Type=images", w, h);
166 166
             }
167 167
 
168 168
             function SetUrl(url, width, height, alt) {
@@ -180,9 +180,9 @@  discard block
 block discarded – undo
180 180
       <tr>
181 181
         <th><?php echo $_lang['login_form_position_title'] ?><br><small>[(login_form_position)]</small></th>
182 182
         <td>
183
-            <?php echo wrap_label($_lang['login_form_position_left'], form_radio('login_form_position', 'left'));?><br />
184
-            <?php echo wrap_label($_lang['login_form_position_center'], form_radio('login_form_position', 'center'));?><br />
185
-            <?php echo wrap_label($_lang['login_form_position_right'], form_radio('login_form_position', 'right'));?>
183
+            <?php echo wrap_label($_lang['login_form_position_left'], form_radio('login_form_position', 'left')); ?><br />
184
+            <?php echo wrap_label($_lang['login_form_position_center'], form_radio('login_form_position', 'center')); ?><br />
185
+            <?php echo wrap_label($_lang['login_form_position_right'], form_radio('login_form_position', 'right')); ?>
186 186
         </td>
187 187
       </tr>
188 188
          <tr>
@@ -194,8 +194,8 @@  discard block
 block discarded – undo
194 194
       <tr>
195 195
         <th><?php echo $_lang['manager_menu_position_title'] ?><br><small>[(manager_menu_position)]</small></th>
196 196
         <td>
197
-            <?php echo wrap_label($_lang['manager_menu_position_top'], form_radio('manager_menu_position', 'top'));?><br />
198
-            <?php echo wrap_label($_lang['manager_menu_position_left'], form_radio('manager_menu_position', 'left'));?><br />
197
+            <?php echo wrap_label($_lang['manager_menu_position_top'], form_radio('manager_menu_position', 'top')); ?><br />
198
+            <?php echo wrap_label($_lang['manager_menu_position_left'], form_radio('manager_menu_position', 'left')); ?><br />
199 199
         </td>
200 200
       </tr>
201 201
 
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
             <td>
338 338
                 <select name="group_tvs" size="1" class="form-control">
339 339
                     <?php
340
-                    $tpl = '<option value="[+value+]" [+selected+]>[+title+]</option>' . "\n";
340
+                    $tpl = '<option value="[+value+]" [+selected+]>[+title+]</option>'."\n";
341 341
                     $option = explode(',', $_lang['settings_group_tv_options']);
342 342
                     $output = array();
343 343
                     foreach ($option as $k => $v) {
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
             <td>
411 411
                 <select name="resource_tree_node_name" size="1" class="inputBox">
412 412
                     <?php
413
-                    $tpl = '<option value="[+value+]" [+selected+]>[*[+value+]*]</option>' . "\n";
413
+                    $tpl = '<option value="[+value+]" [+selected+]>[*[+value+]*]</option>'."\n";
414 414
                     $option = array('pagetitle', 'longtitle', 'menutitle', 'alias', 'createdon', 'editedon', 'publishedon');
415 415
                     $output = array();
416 416
                     foreach ($option as $v) {
@@ -496,8 +496,8 @@  discard block
 block discarded – undo
496 496
                     $str = '';
497 497
                     foreach ($datetime_format_list as $value) {
498 498
                         $selectedtext = ($datetime_format == $value) ? ' selected' : '';
499
-                        $str .= '<option value="' . $value . '"' . $selectedtext . '>';
500
-                        $str .= $value . '</option>' . PHP_EOL;
499
+                        $str .= '<option value="'.$value.'"'.$selectedtext.'>';
500
+                        $str .= $value.'</option>'.PHP_EOL;
501 501
                     }
502 502
                     echo $str;
503 503
                     ?>
@@ -607,10 +607,10 @@  discard block
 block discarded – undo
607 607
                 <select name="which_editor" onChange="documentDirty=true;">
608 608
                     <?php
609 609
                     // invoke OnRichTextEditorRegister event
610
-                    echo "<option value='none'" . ($which_editor == 'none' ? " selected='selected'" : "") . ">" . $_lang['none'] . "</option>\n";
610
+                    echo "<option value='none'".($which_editor == 'none' ? " selected='selected'" : "").">".$_lang['none']."</option>\n";
611 611
                     if (is_array($evtOut)) {
612 612
                         foreach ($evtOut as $editor) {
613
-                            echo "<option value='$editor'" . ($which_editor == $editor ? " selected='selected'" : "") . ">$editor</option>\n";
613
+                            echo "<option value='$editor'".($which_editor == $editor ? " selected='selected'" : "").">$editor</option>\n";
614 614
                         }
615 615
                     }
616 616
                     ?>
Please login to merge, or discard this patch.
manager/actions/mutate_settings/tab2_furl_settings.inc.php 2 patches
Spacing   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
 <tr>
7 7
 <td nowrap class="warning" valign="top"><?php echo $_lang['friendlyurls_title'] ?><br><small>[(friendly_urls)]</small></td>
8 8
 <td>
9
-    <?php echo wrap_label($_lang['yes'], form_radio('friendly_urls', 1, 'id="furlRowOn"'));?><br />
10
-    <?php echo wrap_label($_lang['no'], form_radio('friendly_urls', 0, 'id="furlRowOff"'));?>
9
+    <?php echo wrap_label($_lang['yes'], form_radio('friendly_urls', 1, 'id="furlRowOn"')); ?><br />
10
+    <?php echo wrap_label($_lang['no'], form_radio('friendly_urls', 0, 'id="furlRowOff"')); ?>
11 11
 </td>
12 12
 </tr>
13 13
 <tr>
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
 <tr>
21 21
     <td nowrap class="warning"><?php echo $_lang['xhtml_urls_title'] ?><br><small>[(xhtml_urls)]</small></td>
22 22
     <td>
23
-        <?php echo wrap_label($_lang['yes'], form_radio('xhtml_urls', 1));?><br />
24
-        <?php echo wrap_label($_lang['no'], form_radio('xhtml_urls', 0));?>
23
+        <?php echo wrap_label($_lang['yes'], form_radio('xhtml_urls', 1)); ?><br />
24
+        <?php echo wrap_label($_lang['no'], form_radio('xhtml_urls', 0)); ?>
25 25
     </td>
26 26
 </tr>
27 27
 <tr>
@@ -31,130 +31,130 @@  discard block
 block discarded – undo
31 31
 <tr>
32 32
 <td colspan="2"><div class="split"></div></td>
33 33
 </tr>
34
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
34
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
35 35
 <td nowrap class="warning" valign="top"><?php echo $_lang['friendlyurlsprefix_title'] ?><br><small>[(friendly_url_prefix)]</small></td>
36 36
 <td><input onchange="documentDirty=true;" type="text" maxlength="50" style="width: 200px;" name="friendly_url_prefix" value="<?php echo $friendly_url_prefix; ?>" /></td>
37 37
 </tr>
38
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
38
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
39 39
 <td width="200">&nbsp;</td>
40 40
 <td class="comment"><?php echo $_lang['friendlyurlsprefix_message'] ?></td>
41 41
 </tr>
42
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
42
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
43 43
 <td colspan="2"><div class="split"></div></td>
44 44
 </tr>
45
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
45
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
46 46
 <td nowrap class="warning" valign="top"><?php echo $_lang['friendlyurlsuffix_title'] ?><br><small>[(friendly_url_suffix)]</small></td>
47 47
 <td><input onchange="documentDirty=true;" type="text" maxlength="50" style="width: 200px;" name="friendly_url_suffix" value="<?php echo $friendly_url_suffix; ?>" /></td>
48 48
 </tr>
49
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
49
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
50 50
 <td width="200">&nbsp;</td>
51 51
 <td class="comment"><?php echo $_lang['friendlyurlsuffix_message'] ?></td>
52 52
 </tr>
53
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
53
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
54 54
 <td colspan="2"><div class="split"></div></td>
55 55
 </tr>
56
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
56
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
57 57
 <th><?php echo $_lang['make_folders_title'] ?><br><small>[(make_folders)]</small></th>
58 58
 <td>
59
-  <?php echo wrap_label($_lang['yes'], form_radio('make_folders', '1'));?><br />
60
-  <?php echo wrap_label($_lang['no'], form_radio('make_folders', '0'));?>
59
+  <?php echo wrap_label($_lang['yes'], form_radio('make_folders', '1')); ?><br />
60
+  <?php echo wrap_label($_lang['no'], form_radio('make_folders', '0')); ?>
61 61
 </td>
62 62
 </tr>
63
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
63
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
64 64
         <td width="200">&nbsp;</td>
65 65
         <td class="comment"><?php echo $_lang['make_folders_message'] ?></td>
66 66
       </tr>
67
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
67
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
68 68
 <td colspan="2"><div class="split"></div></td>
69 69
 </tr>
70 70
   
71
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
71
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
72 72
 <th><?php echo $_lang['seostrict_title'] ?><br><small>[(seostrict)]</small></th>
73 73
 <td>
74
-  <?php echo wrap_label($_lang['yes'], form_radio('seostrict', '1'));?><br />
75
-  <?php echo wrap_label($_lang['no'], form_radio('seostrict', '0'));?>
74
+  <?php echo wrap_label($_lang['yes'], form_radio('seostrict', '1')); ?><br />
75
+  <?php echo wrap_label($_lang['no'], form_radio('seostrict', '0')); ?>
76 76
  </td>
77 77
 </tr>
78
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
78
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
79 79
         <td width="200">&nbsp;</td>
80 80
         <td class="comment"><?php echo $_lang['seostrict_message'] ?></td>
81 81
 </tr>
82
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
82
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
83 83
 <td colspan="2"><div class="split"></div></td>
84 84
 </tr>
85 85
 
86
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
86
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
87 87
   <th><?php echo $_lang['aliaslistingfolder_title'] ?><br><small>[(aliaslistingfolder)]</small></th>
88 88
   <td>
89
-      <?php echo wrap_label($_lang['yes'], form_radio('aliaslistingfolder', '1'));?><br />
90
-      <?php echo wrap_label($_lang['no'], form_radio('aliaslistingfolder', '0'));?>
89
+      <?php echo wrap_label($_lang['yes'], form_radio('aliaslistingfolder', '1')); ?><br />
90
+      <?php echo wrap_label($_lang['no'], form_radio('aliaslistingfolder', '0')); ?>
91 91
   </td>
92 92
 </tr>
93
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
93
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
94 94
   <td width="200">&nbsp;</td>
95 95
   <td class="comment"><?php echo $_lang['aliaslistingfolder_message'] ?></td>
96 96
 </tr>
97
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
97
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
98 98
   <td colspan="2"><div class="split"></div></td>
99 99
 </tr>
100 100
 
101
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
101
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
102 102
 <td nowrap class="warning" valign="top"><?php echo $_lang['friendly_alias_title'] ?><br><small>[(friendly_alias_urls)]</small></td>
103 103
 <td>
104
-  <?php echo wrap_label($_lang['yes'], form_radio('friendly_alias_urls', '1'));?><br />
105
-  <?php echo wrap_label($_lang['no'], form_radio('friendly_alias_urls', '0'));?>
104
+  <?php echo wrap_label($_lang['yes'], form_radio('friendly_alias_urls', '1')); ?><br />
105
+  <?php echo wrap_label($_lang['no'], form_radio('friendly_alias_urls', '0')); ?>
106 106
 </td>
107 107
 </tr>
108
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
108
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
109 109
 <td width="200">&nbsp;</td>
110 110
 <td class="comment"><?php echo $_lang['friendly_alias_message'] ?></td>
111 111
 </tr>
112
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
112
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
113 113
 <td colspan="2"><div class="split"></div></td>
114 114
 </tr>
115
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
115
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
116 116
 <td nowrap class="warning" valign="top"><?php echo $_lang['use_alias_path_title'] ?><br><small>[(use_alias_path)]</small></td>
117 117
 <td>
118
-  <?php echo wrap_label($_lang['yes'], form_radio('use_alias_path', '1'));?><br />
119
-  <?php echo wrap_label($_lang['no'], form_radio('use_alias_path', '0'));?>
118
+  <?php echo wrap_label($_lang['yes'], form_radio('use_alias_path', '1')); ?><br />
119
+  <?php echo wrap_label($_lang['no'], form_radio('use_alias_path', '0')); ?>
120 120
 </td>
121 121
 </tr>
122
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
122
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
123 123
 <td width="200">&nbsp;</td>
124 124
 <td class="comment"><?php echo $_lang['use_alias_path_message'] ?></td>
125 125
 </tr>
126
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
126
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
127 127
 <td colspan="2"><div class="split"></div></td>
128 128
 </tr>
129
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
129
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
130 130
 <td nowrap class="warning" valign="top"><?php echo $_lang['duplicate_alias_title'] ?><br><small>[(allow_duplicate_alias)]</small></td>
131 131
 <td>
132
-  <?php echo wrap_label($_lang['yes'], form_radio('allow_duplicate_alias', '1'));?><br />
133
-  <?php echo wrap_label($_lang['no'], form_radio('allow_duplicate_alias', '0'));?>
132
+  <?php echo wrap_label($_lang['yes'], form_radio('allow_duplicate_alias', '1')); ?><br />
133
+  <?php echo wrap_label($_lang['no'], form_radio('allow_duplicate_alias', '0')); ?>
134 134
 </td>
135 135
 </tr>
136
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
136
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
137 137
 <td width="200">&nbsp;</td>
138 138
 <td class="comment"><?php echo $_lang['duplicate_alias_message'] ?></td>
139 139
 </tr>
140
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
140
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
141 141
 <td colspan="2"><div class="split"></div></td>
142 142
 </tr>
143
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
143
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
144 144
 <td nowrap class="warning" valign="top"><?php echo $_lang['automatic_alias_title'] ?><br><small>[(automatic_alias)]</small></td>
145 145
 <td>
146
-  <?php echo wrap_label($_lang['yes'], form_radio('automatic_alias', '1'));?><br />
147
-  <?php echo wrap_label($_lang['no'], form_radio('automatic_alias', '0'));?>
146
+  <?php echo wrap_label($_lang['yes'], form_radio('automatic_alias', '1')); ?><br />
147
+  <?php echo wrap_label($_lang['no'], form_radio('automatic_alias', '0')); ?>
148 148
 </td>
149 149
 </tr>
150
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
150
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
151 151
 <td width="200">&nbsp;</td>
152 152
 <td class="comment"><?php echo $_lang['automatic_alias_message'] ?></td>
153 153
 </tr>
154
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
154
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
155 155
 <td colspan="2"><div class="split"></div></td>
156 156
 </tr>
157
-<tr class="furlRow" <?php echo showHide($friendly_urls==1);?>>
157
+<tr class="furlRow" <?php echo showHide($friendly_urls == 1); ?>>
158 158
 <td colspan="2">
159 159
     <?php
160 160
         // invoke OnFriendlyURLSettingsRender event
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
     <?php
160 160
         // invoke OnFriendlyURLSettingsRender event
161 161
         $evtOut = $modx->invokeEvent('OnFriendlyURLSettingsRender');
162
-        if (is_array($evtOut)) {
162
+        if (is_array($evtOut)) {
163 163
             echo implode("", $evtOut);
164 164
         }
165 165
     ?>
Please login to merge, or discard this patch.
manager/actions/mutate_settings/tab1_site_settings.inc.php 3 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-  $site_unavailable_message_view = isset($site_unavailable_message) ? $site_unavailable_message : $_lang['siteunavailable_message_default'];
2
+    $site_unavailable_message_view = isset($site_unavailable_message) ? $site_unavailable_message : $_lang['siteunavailable_message_default'];
3 3
 ?>
4 4
 <style>
5 5
 table.sysSettings > tbody td, table.sysSettings > tbody th {border-bottom:1px dotted #ccc;padding:10px;}
@@ -141,8 +141,8 @@  discard block
 block discarded – undo
141 141
         <?php
142 142
             // Check if PHX is enabled
143 143
             $count = $modx->db->getRecordCount(
144
-              $modx->db->select('id', '[+prefix+]site_plugins',
145
-              "plugincode LIKE '%phx.parser.class.inc.php%OnParseDocument();%' AND disabled != 1")
144
+                $modx->db->select('id', '[+prefix+]site_plugins',
145
+                "plugincode LIKE '%phx.parser.class.inc.php%OnParseDocument();%' AND disabled != 1")
146 146
             );
147 147
             if ($count) {
148 148
                 $disabledFilters = 1;
@@ -266,13 +266,13 @@  discard block
 block discarded – undo
266 266
       <th><?php echo $_lang['serveroffset_title'] ?><br><small>[(server_offset_time)]</small></th>
267 267
       <td> <select name="server_offset_time" size="1" class="inputBox">
268 268
           <?php
269
-      for ($i=-24; $i<25; $i++) {
270
-          $seconds = $i*60*60;
271
-          $selectedtext = $seconds==$server_offset_time ? "selected='selected'" : "" ; ?>
269
+        for ($i=-24; $i<25; $i++) {
270
+            $seconds = $i*60*60;
271
+            $selectedtext = $seconds==$server_offset_time ? "selected='selected'" : "" ; ?>
272 272
           <option value="<?php echo $seconds; ?>" <?php echo $selectedtext; ?>><?php echo $i; ?></option>
273 273
           <?php
274
-      }
275
-      ?>
274
+        }
275
+        ?>
276 276
         </select>
277 277
         <div class="comment"><?php printf($_lang['serveroffset_message'], strftime('%H:%M:%S', time()), strftime('%H:%M:%S', time()+$server_offset_time)); ?></div>
278 278
         </td>
Please login to merge, or discard this patch.
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
   <tr>
14 14
     <th><?php echo $_lang['sitestatus_title'] ?><br><small>[(site_status)]</small></th>
15 15
     <td>
16
-        <?php echo wrap_label($_lang['online'], form_radio('site_status', 1));?><br />
17
-        <?php echo wrap_label($_lang['offline'], form_radio('site_status', 0));?>
16
+        <?php echo wrap_label($_lang['online'], form_radio('site_status', 1)); ?><br />
17
+        <?php echo wrap_label($_lang['offline'], form_radio('site_status', 0)); ?>
18 18
     </td>
19 19
   </tr>
20 20
   <tr>
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
       <br />
59 59
       <p><?php echo $_lang['update_settings_from_language']; ?></p>
60 60
       <select name="reload_site_unavailable" id="reload_site_unavailable_select" onchange="confirmLangChange(this, 'siteunavailable_message_default', 'site_unavailable_message_textarea');">
61
-<?php echo get_lang_options('siteunavailable_message_default');?>
61
+<?php echo get_lang_options('siteunavailable_message_default'); ?>
62 62
       </select>
63 63
     </th>
64 64
     <td> <textarea name="site_unavailable_message" id="site_unavailable_message_textarea" style="width:100%; height: 120px;"><?php echo $site_unavailable_message_view; ?></textarea>
65
-        <input type="hidden" name="siteunavailable_message_default" id="siteunavailable_message_default_hidden" value="<?php echo addslashes($_lang['siteunavailable_message_default']);?>" />
66
-  <div class="comment"><?php echo $_lang['siteunavailable_message'];?></div>
65
+        <input type="hidden" name="siteunavailable_message_default" id="siteunavailable_message_default_hidden" value="<?php echo addslashes($_lang['siteunavailable_message_default']); ?>" />
66
+  <div class="comment"><?php echo $_lang['siteunavailable_message']; ?></div>
67 67
     </td>
68 68
   </tr>
69 69
   <tr>
@@ -72,13 +72,13 @@  discard block
 block discarded – undo
72 72
     <?php
73 73
         $rs = $modx->db->select(
74 74
             't.templatename, t.id, c.category',
75
-            $modx->getFullTableName('site_templates') . " AS t
76
-                LEFT JOIN " . $modx->getFullTableName('categories') . " AS c ON t.category = c.id",
75
+            $modx->getFullTableName('site_templates')." AS t
76
+                LEFT JOIN " . $modx->getFullTableName('categories')." AS c ON t.category = c.id",
77 77
             "",
78 78
             'c.category, t.templatename ASC'
79 79
             );
80 80
     ?>
81
-      <select name="default_template" class="inputBox" onchange="documentDirty=true;wrap=document.getElementById('template_reset_options_wrapper');if(this.options[this.selectedIndex].value != '<?php echo $default_template;?>'){wrap.style.display='block';}else{wrap.style.display='none';}" style="width:150px">
81
+      <select name="default_template" class="inputBox" onchange="documentDirty=true;wrap=document.getElementById('template_reset_options_wrapper');if(this.options[this.selectedIndex].value != '<?php echo $default_template; ?>'){wrap.style.display='block';}else{wrap.style.display='none';}" style="width:150px">
82 82
         <?php
83 83
 
84 84
         $currentCategory = '';
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                                 $oldTmpName = $row['templatename'];
104 104
                             }
105 105
             
106
-                            echo "\t\t\t\t\t" . '<option value="' . $row['id'] . '"' . $selectedtext . '>' . $row['templatename'] . "</option>\n";
106
+                            echo "\t\t\t\t\t".'<option value="'.$row['id'].'"'.$selectedtext.'>'.$row['templatename']."</option>\n";
107 107
                             $currentCategory = $thisCategory;
108 108
                         }
109 109
         if ($thisCategory != '') {
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
     </td>
122 122
   </tr>
123 123
   <tr>
124
-        <th><?php echo $_lang['defaulttemplate_logic_title'];?><br><small>[(auto_template_logic)]</small></th>
124
+        <th><?php echo $_lang['defaulttemplate_logic_title']; ?><br><small>[(auto_template_logic)]</small></th>
125 125
         <td>
126
-            <p><?php echo $_lang['defaulttemplate_logic_general_message'];?></p>
126
+            <p><?php echo $_lang['defaulttemplate_logic_general_message']; ?></p>
127 127
             <label><input type="radio" name="auto_template_logic" value="system"<?php if ($auto_template_logic == 'system') {
128 128
     echo " checked='checked'";
129 129
 }?>/> <?php echo $_lang['defaulttemplate_logic_system_message']; ?></label><br />
@@ -146,21 +146,21 @@  discard block
 block discarded – undo
146 146
             );
147 147
             if ($count) {
148 148
                 $disabledFilters = 1;
149
-                echo '<b>' . $_lang['enable_filter_phx_warning'] . '</b><br/>';
149
+                echo '<b>'.$_lang['enable_filter_phx_warning'].'</b><br/>';
150 150
             } else {
151 151
                 $disabledFilters = false;
152 152
             }
153 153
         ?>
154
-        <?php echo wrap_label($_lang['yes'], form_radio('enable_filter', 1, '', $disabledFilters));?><br />
155
-        <?php echo wrap_label($_lang['no'], form_radio('enable_filter', 0, '', $disabledFilters));?>
154
+        <?php echo wrap_label($_lang['yes'], form_radio('enable_filter', 1, '', $disabledFilters)); ?><br />
155
+        <?php echo wrap_label($_lang['no'], form_radio('enable_filter', 0, '', $disabledFilters)); ?>
156 156
         <div class="comment"><?php echo $_lang['enable_filter_message']; ?></div>
157 157
       </td>
158 158
     </tr>
159 159
     <tr>
160 160
       <th><?php echo $_lang['enable_at_syntax_title'] ?><br><small>[(enable_at_syntax)]</small></th>
161 161
       <td >
162
-        <?php echo wrap_label($_lang['yes'], form_radio('enable_at_syntax', 1));?><br />
163
-        <?php echo wrap_label($_lang['no'], form_radio('enable_at_syntax', 0));?>
162
+        <?php echo wrap_label($_lang['yes'], form_radio('enable_at_syntax', 1)); ?><br />
163
+        <?php echo wrap_label($_lang['no'], form_radio('enable_at_syntax', 0)); ?>
164 164
         <div class="comment">
165 165
             <?php echo $_lang['enable_at_syntax_message']; ?>
166 166
             <ul>
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
   <tr>
175 175
     <th><?php echo $_lang['defaultpublish_title'] ?><br><small>[(publish_default)]</small></th>
176 176
     <td>
177
-        <?php echo wrap_label($_lang['yes'], form_radio('publish_default', 1));?><br />
178
-        <?php echo wrap_label($_lang['no'], form_radio('publish_default', 0));?>
177
+        <?php echo wrap_label($_lang['yes'], form_radio('publish_default', 1)); ?><br />
178
+        <?php echo wrap_label($_lang['no'], form_radio('publish_default', 0)); ?>
179 179
         <div class="comment"><?php echo $_lang['defaultpublish_message'] ?></div>
180 180
     </td>
181 181
   </tr>
@@ -183,24 +183,24 @@  discard block
 block discarded – undo
183 183
   <tr>
184 184
     <th><?php echo $_lang['defaultcache_title'] ?><br><small>[(cache_default)]</small></th>
185 185
     <td>
186
-        <?php echo wrap_label($_lang['yes'], form_radio('cache_default', 1));?><br />
187
-        <?php echo wrap_label($_lang['no'], form_radio('cache_default', 0));?>
186
+        <?php echo wrap_label($_lang['yes'], form_radio('cache_default', 1)); ?><br />
187
+        <?php echo wrap_label($_lang['no'], form_radio('cache_default', 0)); ?>
188 188
         <div class="comment"><?php echo $_lang['defaultcache_message'] ?></div>
189 189
     </td>
190 190
   </tr>
191 191
   <tr>
192 192
     <th><?php echo $_lang['defaultsearch_title'] ?><br><small>[(search_default)]</small></th>
193 193
     <td>
194
-        <?php echo wrap_label($_lang['yes'], form_radio('search_default', 1));?><br />
195
-        <?php echo wrap_label($_lang['no'], form_radio('search_default', 0));?>
194
+        <?php echo wrap_label($_lang['yes'], form_radio('search_default', 1)); ?><br />
195
+        <?php echo wrap_label($_lang['no'], form_radio('search_default', 0)); ?>
196 196
         <div class="comment"><?php echo $_lang['defaultsearch_message'] ?></div>
197 197
     </td>
198 198
   </tr>
199 199
   <tr>
200 200
     <th><?php echo $_lang['defaultmenuindex_title'] ?><br><small>[(auto_menuindex)]</small></th>
201 201
     <td>
202
-        <?php echo wrap_label($_lang['yes'], form_radio('auto_menuindex', 1));?><br />
203
-        <?php echo wrap_label($_lang['no'], form_radio('auto_menuindex', 0));?>
202
+        <?php echo wrap_label($_lang['yes'], form_radio('auto_menuindex', 1)); ?><br />
203
+        <?php echo wrap_label($_lang['no'], form_radio('auto_menuindex', 0)); ?>
204 204
         <div class="comment"><?php echo $_lang['defaultmenuindex_message'] ?></div>
205 205
     </td>
206 206
   </tr>
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
     <select name="lst_custom_contenttype" style="width:200px;height:100px;" size="5">
212 212
     <?php
213 213
         $ct = explode(",", $custom_contenttype);
214
-        for ($i=0;$i<count($ct);$i++) {
215
-            echo "<option value=\"" . $ct[$i] . "\">" . $ct[$i] . "</option>";
214
+        for ($i = 0; $i < count($ct); $i++) {
215
+            echo "<option value=\"".$ct[$i]."\">".$ct[$i]."</option>";
216 216
         }
217 217
     ?>
218 218
     </select>
@@ -225,14 +225,14 @@  discard block
 block discarded – undo
225 225
 <th><?php echo $_lang['docid_incrmnt_method_title'] ?><br><small>[(docid_incrmnt_method)]</small></th>
226 226
 <td>
227 227
 <label><input type="radio" name="docid_incrmnt_method" value="0"
228
-    <?php echo ($docid_incrmnt_method=='0') ? 'checked="checked"' : "" ; ?> />
228
+    <?php echo ($docid_incrmnt_method == '0') ? 'checked="checked"' : ""; ?> />
229 229
     <?php echo $_lang['docid_incrmnt_method_0']?></label><br />
230 230
     
231 231
 <label><input type="radio" name="docid_incrmnt_method" value="1"
232
-    <?php echo ($docid_incrmnt_method=='1') ? 'checked="checked"' : "" ; ?> />
232
+    <?php echo ($docid_incrmnt_method == '1') ? 'checked="checked"' : ""; ?> />
233 233
     <?php echo $_lang['docid_incrmnt_method_1']?></label><br />
234 234
 <label><input type="radio" name="docid_incrmnt_method" value="2"
235
-    <?php echo ($docid_incrmnt_method=='2') ? 'checked="checked"' : "" ; ?> />
235
+    <?php echo ($docid_incrmnt_method == '2') ? 'checked="checked"' : ""; ?> />
236 236
     <?php echo $_lang['docid_incrmnt_method_2']?></label><br />
237 237
 </td>
238 238
 </tr>
@@ -240,24 +240,24 @@  discard block
 block discarded – undo
240 240
 <tr>
241 241
 <th><?php echo $_lang['enable_cache_title'] ?><br><small>[(enable_cache)]</small></th>
242 242
 <td>
243
-    <?php echo wrap_label($_lang['enabled'], form_radio('enable_cache', 1));?><br />
244
-    <?php echo wrap_label($_lang['disabled'], form_radio('enable_cache', 0));?><br />
245
-    <?php echo wrap_label($_lang['disabled_at_login'], form_radio('enable_cache', 2));?>
243
+    <?php echo wrap_label($_lang['enabled'], form_radio('enable_cache', 1)); ?><br />
244
+    <?php echo wrap_label($_lang['disabled'], form_radio('enable_cache', 0)); ?><br />
245
+    <?php echo wrap_label($_lang['disabled_at_login'], form_radio('enable_cache', 2)); ?>
246 246
 </td>
247 247
 </tr>
248 248
 
249 249
 <tr>
250 250
 <th><?php echo $_lang['cache_type_title'] ?><br><small>[(cache_type)]</small></th>
251 251
 <td>
252
-<?php echo wrap_label($_lang['cache_type_1'], form_radio('cache_type', 1));?><br />
253
-<?php echo wrap_label($_lang['cache_type_2'], form_radio('cache_type', 2));?>
252
+<?php echo wrap_label($_lang['cache_type_1'], form_radio('cache_type', 1)); ?><br />
253
+<?php echo wrap_label($_lang['cache_type_2'], form_radio('cache_type', 2)); ?>
254 254
 </td>
255 255
 </tr>
256 256
   <tr>
257 257
 <th><?php echo $_lang['minifyphp_incache_title'] ?><br><small>[(minifyphp_incache)]</small></th>
258 258
     <td>
259
-<?php echo wrap_label($_lang['enabled'], form_radio('minifyphp_incache', 1));?><br />
260
-<?php echo wrap_label($_lang['disabled'], form_radio('minifyphp_incache', 0));?>
259
+<?php echo wrap_label($_lang['enabled'], form_radio('minifyphp_incache', 1)); ?><br />
260
+<?php echo wrap_label($_lang['disabled'], form_radio('minifyphp_incache', 0)); ?>
261 261
 <div class="comment"><?php echo $_lang['minifyphp_incache_message'] ?></div>
262 262
     </td>
263 263
   </tr>
@@ -266,22 +266,22 @@  discard block
 block discarded – undo
266 266
       <th><?php echo $_lang['serveroffset_title'] ?><br><small>[(server_offset_time)]</small></th>
267 267
       <td> <select name="server_offset_time" size="1" class="inputBox">
268 268
           <?php
269
-      for ($i=-24; $i<25; $i++) {
270
-          $seconds = $i*60*60;
271
-          $selectedtext = $seconds==$server_offset_time ? "selected='selected'" : "" ; ?>
269
+      for ($i = -24; $i < 25; $i++) {
270
+          $seconds = $i * 60 * 60;
271
+          $selectedtext = $seconds == $server_offset_time ? "selected='selected'" : ""; ?>
272 272
           <option value="<?php echo $seconds; ?>" <?php echo $selectedtext; ?>><?php echo $i; ?></option>
273 273
           <?php
274 274
       }
275 275
       ?>
276 276
         </select>
277
-        <div class="comment"><?php printf($_lang['serveroffset_message'], strftime('%H:%M:%S', time()), strftime('%H:%M:%S', time()+$server_offset_time)); ?></div>
277
+        <div class="comment"><?php printf($_lang['serveroffset_message'], strftime('%H:%M:%S', time()), strftime('%H:%M:%S', time() + $server_offset_time)); ?></div>
278 278
         </td>
279 279
     </tr>
280 280
     <tr>
281 281
       <th><?php echo $_lang['server_protocol_title'] ?><br><small>[(server_protocol)]</small></th>
282 282
       <td>
283
-        <?php echo wrap_label($_lang['server_protocol_http'], form_radio('server_protocol', 'http'));?><br />
284
-        <?php echo wrap_label($_lang['server_protocol_https'], form_radio('server_protocol', 'https'));?>
283
+        <?php echo wrap_label($_lang['server_protocol_http'], form_radio('server_protocol', 'http')); ?><br />
284
+        <?php echo wrap_label($_lang['server_protocol_https'], form_radio('server_protocol', 'https')); ?>
285 285
         <div class="comment"><?php echo $_lang['server_protocol_message'] ?></div>
286 286
       </td>
287 287
     </tr>
@@ -294,8 +294,8 @@  discard block
 block discarded – undo
294 294
     <tr>
295 295
      <th><?php echo $_lang['track_visitors_title'] ?><br><small>[(track_visitors)]</small></th>
296 296
      <td>
297
-         <?php echo wrap_label($_lang['yes'], form_radio('track_visitors', 1));?><br />
298
-         <?php echo wrap_label($_lang['no'], form_radio('track_visitors', 0));?>
297
+         <?php echo wrap_label($_lang['yes'], form_radio('track_visitors', 1)); ?><br />
298
+         <?php echo wrap_label($_lang['no'], form_radio('track_visitors', 0)); ?>
299 299
          <div class="comment"><?php echo $_lang['track_visitors_message'] ?></div>
300 300
      </td>
301 301
    </tr>
Please login to merge, or discard this patch.
Braces   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -82,23 +82,23 @@  discard block
 block discarded – undo
82 82
         <?php
83 83
 
84 84
         $currentCategory = '';
85
-                        while ($row = $modx->db->getRow($rs)) {
85
+                        while ($row = $modx->db->getRow($rs)) {
86 86
                             $thisCategory = $row['category'];
87
-                            if ($thisCategory == null) {
87
+                            if ($thisCategory == null) {
88 88
                                 $thisCategory = $_lang['no_category'];
89 89
                             }
90
-                            if ($thisCategory != $currentCategory) {
91
-                                if ($closeOptGroup) {
90
+                            if ($thisCategory != $currentCategory) {
91
+                                if ($closeOptGroup) {
92 92
                                     echo "\t\t\t\t\t</optgroup>\n";
93 93
                                 }
94 94
                                 echo "\t\t\t\t\t<optgroup label=\"$thisCategory\">\n";
95 95
                                 $closeOptGroup = true;
96
-                            } else {
96
+                            } else {
97 97
                                 $closeOptGroup = false;
98 98
                             }
99 99
             
100 100
                             $selectedtext = $row['id'] == $default_template ? ' selected="selected"' : '';
101
-                            if ($selectedtext) {
101
+                            if ($selectedtext) {
102 102
                                 $oldTmpId = $row['id'];
103 103
                                 $oldTmpName = $row['templatename'];
104 104
                             }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                             echo "\t\t\t\t\t" . '<option value="' . $row['id'] . '"' . $selectedtext . '>' . $row['templatename'] . "</option>\n";
107 107
                             $currentCategory = $thisCategory;
108 108
                         }
109
-        if ($thisCategory != '') {
109
+        if ($thisCategory != '') {
110 110
             echo "\t\t\t\t\t</optgroup>\n";
111 111
         }
112 112
 ?>
@@ -124,13 +124,13 @@  discard block
 block discarded – undo
124 124
         <th><?php echo $_lang['defaulttemplate_logic_title'];?><br><small>[(auto_template_logic)]</small></th>
125 125
         <td>
126 126
             <p><?php echo $_lang['defaulttemplate_logic_general_message'];?></p>
127
-            <label><input type="radio" name="auto_template_logic" value="system"<?php if ($auto_template_logic == 'system') {
127
+            <label><input type="radio" name="auto_template_logic" value="system"<?php if ($auto_template_logic == 'system') {
128 128
     echo " checked='checked'";
129 129
 }?>/> <?php echo $_lang['defaulttemplate_logic_system_message']; ?></label><br />
130
-            <label><input type="radio" name="auto_template_logic" value="parent"<?php if ($auto_template_logic == 'parent') {
130
+            <label><input type="radio" name="auto_template_logic" value="parent"<?php if ($auto_template_logic == 'parent') {
131 131
     echo " checked='checked'";
132 132
 }?>/> <?php echo $_lang['defaulttemplate_logic_parent_message']; ?></label><br />
133
-            <label><input type="radio" name="auto_template_logic" value="sibling"<?php if ($auto_template_logic == 'sibling') {
133
+            <label><input type="radio" name="auto_template_logic" value="sibling"<?php if ($auto_template_logic == 'sibling') {
134 134
     echo " checked='checked'";
135 135
 }?>/> <?php echo $_lang['defaulttemplate_logic_sibling_message']; ?></label><br />
136 136
         </td>
@@ -144,10 +144,10 @@  discard block
 block discarded – undo
144 144
               $modx->db->select('id', '[+prefix+]site_plugins',
145 145
               "plugincode LIKE '%phx.parser.class.inc.php%OnParseDocument();%' AND disabled != 1")
146 146
             );
147
-            if ($count) {
147
+            if ($count) {
148 148
                 $disabledFilters = 1;
149 149
                 echo '<b>' . $_lang['enable_filter_phx_warning'] . '</b><br/>';
150
-            } else {
150
+            } else {
151 151
                 $disabledFilters = false;
152 152
             }
153 153
         ?>
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     <select name="lst_custom_contenttype" style="width:200px;height:100px;" size="5">
212 212
     <?php
213 213
         $ct = explode(",", $custom_contenttype);
214
-        for ($i=0;$i<count($ct);$i++) {
214
+        for ($i=0;$i<count($ct);$i++) {
215 215
             echo "<option value=\"" . $ct[$i] . "\">" . $ct[$i] . "</option>";
216 216
         }
217 217
     ?>
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
       <th><?php echo $_lang['serveroffset_title'] ?><br><small>[(server_offset_time)]</small></th>
267 267
       <td> <select name="server_offset_time" size="1" class="inputBox">
268 268
           <?php
269
-      for ($i=-24; $i<25; $i++) {
269
+      for ($i=-24; $i<25; $i++) {
270 270
           $seconds = $i*60*60;
271 271
           $selectedtext = $seconds==$server_offset_time ? "selected='selected'" : "" ; ?>
272 272
           <option value="<?php echo $seconds; ?>" <?php echo $selectedtext; ?>><?php echo $i; ?></option>
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
         <?php
308 308
             // invoke OnSiteSettingsRender event
309 309
             $evtOut = $modx->invokeEvent('OnSiteSettingsRender');
310
-            if (is_array($evtOut)) {
310
+            if (is_array($evtOut)) {
311 311
                 echo implode("", $evtOut);
312 312
             }
313 313
         ?>
Please login to merge, or discard this patch.
manager/actions/resources/tab6_categoryview.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
-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/actions/resources/mgrResources.class.php 2 patches
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 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
 
@@ -38,36 +38,36 @@  discard block
 block discarded – undo
38 38
     public function setTypes()
39 39
     {
40 40
         global $_lang;
41
-        $this->types['site_templates']    = array(
41
+        $this->types['site_templates'] = array(
42 42
             'title'=>$_lang["manage_templates"],
43
-            'actions'=>array( 'edit'=>array(16,'edit_template'), 'duplicate'=>array(96,'new_template'), 'remove'=>array(21,'delete_template') ),
44
-            'permissions'=>array('new_template','edit_template'),
43
+            'actions'=>array('edit'=>array(16, 'edit_template'), 'duplicate'=>array(96, 'new_template'), 'remove'=>array(21, 'delete_template')),
44
+            'permissions'=>array('new_template', 'edit_template'),
45 45
             'name'=>'templatename'
46 46
         );
47
-        $this->types['site_tmplvars']     = array(
47
+        $this->types['site_tmplvars'] = array(
48 48
             'title'=>$_lang["tmplvars"],
49
-            'actions'=>array('edit'=>array(301,'edit_template'), 'duplicate'=>array(304,'edit_template'), 'remove'=>array(303,'edit_template')),
50
-            'permissions'=>array('new_template','edit_template'),
49
+            'actions'=>array('edit'=>array(301, 'edit_template'), 'duplicate'=>array(304, 'edit_template'), 'remove'=>array(303, 'edit_template')),
50
+            'permissions'=>array('new_template', 'edit_template'),
51 51
         );
52 52
         $this->types['site_htmlsnippets'] = array(
53 53
             'title'=>$_lang["manage_htmlsnippets"],
54
-            'actions'=>array('edit'=>array(78,'edit_chunk'), 'duplicate'=>array(97,'new_chunk'), 'remove'=>array(80,'delete_chunk')),
55
-            'permissions'=>array('new_chunk','edit_chunk'),
54
+            'actions'=>array('edit'=>array(78, 'edit_chunk'), 'duplicate'=>array(97, 'new_chunk'), 'remove'=>array(80, 'delete_chunk')),
55
+            'permissions'=>array('new_chunk', 'edit_chunk'),
56 56
         );
57
-        $this->types['site_snippets']     = array(
57
+        $this->types['site_snippets'] = array(
58 58
             'title'=>$_lang["manage_snippets"],
59
-            'actions'=>array('edit'=>array(22,'edit_snippet'), 'duplicate'=>array(98,'new_snippet'), 'remove'=>array(25,'delete_snippet')),
60
-            'permissions'=>array('new_snippet','edit_snippet'),
59
+            'actions'=>array('edit'=>array(22, 'edit_snippet'), 'duplicate'=>array(98, 'new_snippet'), 'remove'=>array(25, 'delete_snippet')),
60
+            'permissions'=>array('new_snippet', 'edit_snippet'),
61 61
         );
62
-        $this->types['site_plugins']      = array(
62
+        $this->types['site_plugins'] = array(
63 63
             'title'=>$_lang["manage_plugins"],
64
-            'actions'=>array('edit'=>array(102,'edit_plugin'), 'duplicate'=>array(105,'new_plugin'), 'remove'=>array(104,'delete_plugin')),
65
-            'permissions'=>array('new_plugin','edit_plugin'),
64
+            'actions'=>array('edit'=>array(102, 'edit_plugin'), 'duplicate'=>array(105, 'new_plugin'), 'remove'=>array(104, 'delete_plugin')),
65
+            'permissions'=>array('new_plugin', 'edit_plugin'),
66 66
         );
67
-        $this->types['site_modules']      = array(
67
+        $this->types['site_modules'] = array(
68 68
             'title'=>$_lang["manage_modules"],
69
-            'actions'=>array('edit'=>array(108,'edit_module'), 'duplicate'=>array(111,'new_module'), 'remove'=>array(110,'delete_module')),
70
-            'permissions'=>array('new_module','edit_module'),
69
+            'actions'=>array('edit'=>array(108, 'edit_module'), 'duplicate'=>array(111, 'new_module'), 'remove'=>array(110, 'delete_module')),
70
+            'permissions'=>array('new_module', 'edit_module'),
71 71
         );
72 72
     }
73 73
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             'site_plugins',
118 118
             'site_modules'
119 119
         );
120
-        $pluginsql = !empty($resourceTable) && in_array($resourceTable, $allowed) ? $resourceTable . '.disabled, ' : '';
120
+        $pluginsql = !empty($resourceTable) && in_array($resourceTable, $allowed) ? $resourceTable.'.disabled, ' : '';
121 121
 
122 122
         $tvsql  = '';
123 123
         $tvjoin = '';
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
 
134 134
         $rs = $modx->db->select(
135 135
             "{$sttfield} {$pluginsql} {$tvsql} {$resourceTable}.{$nameField} as name, {$resourceTable}.id, {$resourceTable}.description, {$resourceTable}.locked, {$selectableTemplates}IF(isnull(categories.category),'{$_lang['no_category']}',categories.category) as category, categories.id as catid",
136
-            $modx->getFullTableName($resourceTable) . " AS {$resourceTable}
137
-	            LEFT JOIN " . $modx->getFullTableName('categories') . " AS categories ON {$resourceTable}.category = categories.id {$tvjoin}",
136
+            $modx->getFullTableName($resourceTable)." AS {$resourceTable}
137
+	            LEFT JOIN ".$modx->getFullTableName('categories')." AS categories ON {$resourceTable}.category = categories.id {$tvjoin}",
138 138
             "",
139 139
             "category,name"
140 140
         );
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     public function prepareCategoryArrays()
158 158
     {
159 159
         foreach ($this->items as $type=>$items) {
160
-            foreach ((array)$items as $item) {
160
+            foreach ((array) $items as $item) {
161 161
                 $catid = $item['catid'] ? $item['catid'] : 0;
162 162
                 $this->categories[$catid] = $item['category'];
163 163
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
         // Now sort by name
173 173
         foreach ($this->itemsPerCategory as $catid=>$items) {
174
-            usort($this->itemsPerCategory[$catid], function ($a, $b) {
174
+            usort($this->itemsPerCategory[$catid], function($a, $b){
175 175
                 return strcasecmp($a['name'], $b['name']);
176 176
             });
177 177
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
 
172 172
         // Now sort by name
173 173
         foreach ($this->itemsPerCategory as $catid=>$items) {
174
-            usort($this->itemsPerCategory[$catid], function ($a, $b) {
174
+            usort($this->itemsPerCategory[$catid], function ($a, $b){
175 175
                 return strcasecmp($a['name'], $b['name']);
176 176
             });
177 177
         }
Please login to merge, or discard this patch.
manager/actions/resources/tab3_chunks.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <!-- chunks -->
2 2
 <?php
3
-if (! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
3
+if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
4 4
     die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
5 5
 }
6 6
 
Please login to merge, or discard this patch.
manager/actions/resources/tab5_plugins.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <!-- plugins -->
2 2
 <?php
3
-if (! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
3
+if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
4 4
     die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
5 5
 }
6 6
 
Please login to merge, or discard this patch.
manager/actions/resources/tab2_templatevars.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <!-- Template variables -->
2 2
 <?php
3
-if (! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
3
+if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
4 4
     die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
5 5
 }
6 6
 
Please login to merge, or discard this patch.