Passed
Push — master ( f62223...75b16c )
by Michael
02:33
created
class/Form/FormRecurRules.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -67,45 +67,45 @@  discard block
 block discarded – undo
67 67
         $formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
68 68
         $formObject->addOption('none', _MD_EXTCAL_NO_RECCUR_EVENT);
69 69
         $ret .= $formObject->render();
70
-        $ret .= '<br><br><fieldset><legend>' . _MD_EXTCAL_RECCUR_POLICY . '</legend><fieldset><legend>';
70
+        $ret .= '<br><br><fieldset><legend>'._MD_EXTCAL_RECCUR_POLICY.'</legend><fieldset><legend>';
71 71
 
72 72
         $formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
73 73
         $formObject->addOption('daily', _MD_EXTCAL_DAILY);
74 74
         $ret .= $formObject->render();
75
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
75
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
76 76
 
77 77
         $formObject = new \XoopsFormText('', 'rrule_daily_interval', 3, 2, $this->_rrule_daily_interval);
78 78
         $ret        .= $formObject->render();
79
-        $ret        .= ' ' . _MD_EXTCAL_DAYS . '</fieldset><br><fieldset><legend>';
79
+        $ret        .= ' '._MD_EXTCAL_DAYS.'</fieldset><br><fieldset><legend>';
80 80
 
81 81
         $formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
82 82
         $formObject->addOption('weekly', _MD_EXTCAL_WEEKLY);
83 83
         $ret .= $formObject->render();
84
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
84
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
85 85
 
86 86
         $formObject = new \XoopsFormText('', 'rrule_weekly_interval', 3, 2, $this->_rrule_weekly_interval);
87 87
         $ret        .= $formObject->render();
88
-        $ret        .= ' ' . _MD_EXTCAL_WEEKS . '<br>';
88
+        $ret        .= ' '._MD_EXTCAL_WEEKS.'<br>';
89 89
 
90 90
         $formObject = new \XoopsFormCheckBox('', 'rrule_weekly_bydays', $this->_rrule_weekly_bydays);
91
-        $formObject->addOption('MO', _MD_EXTCAL_MO2 . '&nbsp;');
92
-        $formObject->addOption('TU', _MD_EXTCAL_TU2 . '&nbsp;');
93
-        $formObject->addOption('WE', _MD_EXTCAL_WE2 . '&nbsp;');
94
-        $formObject->addOption('TH', _MD_EXTCAL_TH2 . '&nbsp;');
95
-        $formObject->addOption('FR', _MD_EXTCAL_FR2 . '&nbsp;');
96
-        $formObject->addOption('SA', _MD_EXTCAL_SA2 . '&nbsp;');
97
-        $formObject->addOption('SU', _MD_EXTCAL_SU2 . '&nbsp;');
91
+        $formObject->addOption('MO', _MD_EXTCAL_MO2.'&nbsp;');
92
+        $formObject->addOption('TU', _MD_EXTCAL_TU2.'&nbsp;');
93
+        $formObject->addOption('WE', _MD_EXTCAL_WE2.'&nbsp;');
94
+        $formObject->addOption('TH', _MD_EXTCAL_TH2.'&nbsp;');
95
+        $formObject->addOption('FR', _MD_EXTCAL_FR2.'&nbsp;');
96
+        $formObject->addOption('SA', _MD_EXTCAL_SA2.'&nbsp;');
97
+        $formObject->addOption('SU', _MD_EXTCAL_SU2.'&nbsp;');
98 98
         $ret .= $formObject->render();
99 99
         $ret .= '</fieldset><br><fieldset><legend>';
100 100
 
101 101
         $formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
102 102
         $formObject->addOption('monthly', _MD_EXTCAL_MONTHLY);
103 103
         $ret .= $formObject->render();
104
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
104
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
105 105
 
106 106
         $formObject = new \XoopsFormText('', 'rrule_monthly_interval', 3, 2, $this->_rrule_monthly_interval);
107 107
         $ret        .= $formObject->render();
108
-        $ret        .= ' ' . _MD_EXTCAL_MONTH . ', ' . _MD_EXTCAL_ON . ' ';
108
+        $ret        .= ' '._MD_EXTCAL_MONTH.', '._MD_EXTCAL_ON.' ';
109 109
 
110 110
         $formObject = new \XoopsFormSelect('', 'rrule_monthly_byday', $this->_rrule_monthly_byday);
111 111
         $formObject->addOption('', '&nbsp;');
@@ -145,20 +145,20 @@  discard block
 block discarded – undo
145 145
         $formObject->addOption('-1SA', _MD_EXTCAL_LAST_SA);
146 146
         $formObject->addOption('-1SU', _MD_EXTCAL_LAST_SU);
147 147
         $ret .= $formObject->render();
148
-        $ret .= ' ' . _MD_EXTCAL_OR_THE . ' ';
148
+        $ret .= ' '._MD_EXTCAL_OR_THE.' ';
149 149
 
150 150
         $formObject = new \XoopsFormText('', 'rrule_bymonthday', 3, 2, $this->_rrule_bymonthday);
151 151
         $ret        .= $formObject->render();
152
-        $ret        .= ' ' . _MD_EXTCAL_DAY_NUM_MONTH . '</fieldset><br><fieldset><legend>';
152
+        $ret        .= ' '._MD_EXTCAL_DAY_NUM_MONTH.'</fieldset><br><fieldset><legend>';
153 153
 
154 154
         $formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
155 155
         $formObject->addOption('yearly', _MD_EXTCAL_YEARLY);
156 156
         $ret .= $formObject->render();
157
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
157
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
158 158
 
159 159
         $formObject = new \XoopsFormText('', 'rrule_yearly_interval', 3, 2, $this->_rrule_yearly_interval);
160 160
         $ret        .= $formObject->render();
161
-        $ret        .= ' ' . _MD_EXTCAL_YEARS . '<br>';
161
+        $ret        .= ' '._MD_EXTCAL_YEARS.'<br>';
162 162
 
163 163
         $formObject = new Extcal\Form\FormRRuleCheckBox('', 'rrule_yearly_bymonths', $this->_rrule_yearly_bymonths);
164 164
         $formObject->addOption('1', _MD_EXTCAL_JAN);
Please login to merge, or discard this patch.
class/Form/FormRRuleCheckBox.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,18 +42,18 @@
 block discarded – undo
42 42
         $ret = '<table><tr>';
43 43
         $i   = 0;
44 44
         if (count($this->getOptions()) > 1 && '[]' !== substr($this->getName(), -2, 2)) {
45
-            $newname = $this->getName() . '[]';
45
+            $newname = $this->getName().'[]';
46 46
             $this->setName($newname);
47 47
         }
48 48
         foreach ($this->getOptions() as $value => $name) {
49 49
             if (0 == (++$i) % 6) {
50 50
                 $ret .= '</tr><tr>';
51 51
             }
52
-            $ret .= "<td><input type='checkbox' name='" . $this->getName() . "' value='" . $value . "'";
52
+            $ret .= "<td><input type='checkbox' name='".$this->getName()."' value='".$value."'";
53 53
             if (count($this->getValue()) > 0 && in_array($value, $this->getValue())) {
54 54
                 $ret .= ' checked';
55 55
             }
56
-            $ret .= $this->getExtra() . '>' . $name . "</td>\n";
56
+            $ret .= $this->getExtra().'>'.$name."</td>\n";
57 57
         }
58 58
         $ret .= '</tr></table>';
59 59
 
Please login to merge, or discard this patch.
class/Form/FormFileCheckBox.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
     {
44 44
         $ret = '';
45 45
         if (count($this->getOptions()) > 1 && '[]' !== substr($this->getName(), -2, 2)) {
46
-            $newname = $this->getName() . '[]';
46
+            $newname = $this->getName().'[]';
47 47
             $this->setName($newname);
48 48
         }
49 49
         foreach ($this->getOptions() as $value => $name) {
50
-            $ret .= "<input type='checkbox' name='" . $this->getName() . "' value='" . $value . "'";
50
+            $ret .= "<input type='checkbox' name='".$this->getName()."' value='".$value."'";
51 51
             $ret .= ' checked';
52
-            $ret .= $this->getExtra() . '>' . $name . "<br>\n";
52
+            $ret .= $this->getExtra().'>'.$name."<br>\n";
53 53
         }
54 54
 
55 55
         return $ret;
Please login to merge, or discard this patch.
class/Form/Spin/FormSpin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function setMin($min)
203 203
     {
204
-        $this->_min = (int)$min;
204
+        $this->_min = (int) $min;
205 205
     }
206 206
     /*-----------------------------------------------------------------*/
207 207
     /**
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     public function setMax($max)
221 221
     {
222
-        $this->_max = (int)$max;
222
+        $this->_max = (int) $max;
223 223
     }
224 224
 
225 225
     /*-----------------------------------------------------------------*/
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      */
242 242
     public function setSmallIncrement($smallIncrement)
243 243
     {
244
-        $this->_smallIncrement = (int)$smallIncrement;
244
+        $this->_smallIncrement = (int) $smallIncrement;
245 245
         if (0 == $this->_smallIncrement) {
246 246
             $this->_smallIncrement = 1;
247 247
         }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      */
264 264
     public function setLargeIncrement($largeIncrement)
265 265
     {
266
-        $this->_largeIncrement = (int)$largeIncrement;
266
+        $this->_largeIncrement = (int) $largeIncrement;
267 267
         if (0 == $this->_largeIncrement) {
268 268
             $this->_largeIncrement = 10;
269 269
         }
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
         $sFolderImg  = "{$sSpinFolder}/images/{$this->getImgFolder()}/";
405 405
 
406 406
         $prefixe  = $this->getName();
407
-        $prefixe2 = 'spin' . $prefixe;
407
+        $prefixe2 = 'spin'.$prefixe;
408 408
 
409 409
         $smallIncrement = $this->getSmallIncrement();
410 410
         $largeIncrement = $this->getLargeIncrement();
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
         $t = [];
424 424
 
425 425
         if ($this->_loadJS) {
426
-            $js  = $sSpinFolder . '/js/spin.js';
426
+            $js  = $sSpinFolder.'/js/spin.js';
427 427
             $t[] = "<script src='{$js}' type='text/javascript'></script>";
428 428
         }
429 429
 
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
         //-------------------------------------------------------
469 469
 
470 470
         $t[] = '  </tr>';
471
-        $t[] = '</table>' . "\n";
471
+        $t[] = '</table>'."\n";
472 472
         $t[] = '</div>';
473 473
         //-------------------------------------------
474 474
         $html = implode("\n", $t);
Please login to merge, or discard this patch.
admin/main.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -87,27 +87,27 @@
 block discarded – undo
87 87
                 $fromemail      = !empty($xoopsConfig['adminmail']) ? $xoopsConfig['adminmail'] : $xoopsUser->getVar('email', 'E');
88 88
                 $subjectCaption = _AM_EXTCAL_SUBJECT . "<br><br><span style='font-size:x-small;font-weight:bold;'>" . _AM_EXTCAL_USEFUL_TAGS . "</span><br><span style='font-size:x-small;font-weight:normal;'>" . _AM_EXTCAL_MAILTAGS6 . '<br>' . _AM_EXTCAL_MAILTAGS2 . '</span>&nbsp;&nbsp;&nbsp;';
89 89
                 $bodyCaption    = _AM_EXTCAL_BODY
90
-                                  . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
91
-                                  . _AM_EXTCAL_USEFUL_TAGS
92
-                                  . "</span><br><span style='font-size:x-small;font-weight:normal;'>"
93
-                                  . _AM_EXTCAL_MAILTAGS1
94
-                                  . '<br>'
95
-                                  . _AM_EXTCAL_MAILTAGS2
96
-                                  . '<br>'
97
-                                  . _AM_EXTCAL_MAILTAGS3
98
-                                  . '<br>'
99
-                                  . _AM_EXTCAL_MAILTAGS4
100
-                                  . '<br>'
101
-                                  . _AM_EXTCAL_MAILTAGS5
102
-                                  . '<br>'
103
-                                  . _AM_EXTCAL_MAILTAGS6
104
-                                  . '<br>'
105
-                                  . _AM_EXTCAL_MAILTAGS7
106
-                                  . '<br>'
107
-                                  . _AM_EXTCAL_MAILTAGS8
108
-                                  . '<br>'
109
-                                  . _AM_EXTCAL_MAILTAGS9
110
-                                  . '</span>&nbsp;&nbsp;&nbsp;';
90
+                                    . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
91
+                                    . _AM_EXTCAL_USEFUL_TAGS
92
+                                    . "</span><br><span style='font-size:x-small;font-weight:normal;'>"
93
+                                    . _AM_EXTCAL_MAILTAGS1
94
+                                    . '<br>'
95
+                                    . _AM_EXTCAL_MAILTAGS2
96
+                                    . '<br>'
97
+                                    . _AM_EXTCAL_MAILTAGS3
98
+                                    . '<br>'
99
+                                    . _AM_EXTCAL_MAILTAGS4
100
+                                    . '<br>'
101
+                                    . _AM_EXTCAL_MAILTAGS5
102
+                                    . '<br>'
103
+                                    . _AM_EXTCAL_MAILTAGS6
104
+                                    . '<br>'
105
+                                    . _AM_EXTCAL_MAILTAGS7
106
+                                    . '<br>'
107
+                                    . _AM_EXTCAL_MAILTAGS8
108
+                                    . '<br>'
109
+                                    . _AM_EXTCAL_MAILTAGS9
110
+                                    . '</span>&nbsp;&nbsp;&nbsp;';
111 111
                 $toCheckBbox    = new \XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
112 112
                 $toCheckBox->addOption('mail', _AM_EXTCAL_EMAIL);
113 113
                 $toCheckBox->addOption('pm', _AM_EXTCAL_PM);
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@  discard block
 block discarded – undo
2 2
 
3 3
 use XoopsModules\Extcal;
4 4
 
5
-require_once  dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
6
-require_once dirname(dirname(dirname(__DIR__))) . '/class/xoopsformloader.php';
7
-require_once __DIR__ . '/admin_header.php';
5
+require_once  dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
6
+require_once dirname(dirname(dirname(__DIR__))).'/class/xoopsformloader.php';
7
+require_once __DIR__.'/admin_header.php';
8 8
 
9 9
 function extgalleryLastVersion()
10 10
 {
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         switch ($fct) {
33 33
             case 'send':
34 34
                 if (!$GLOBALS['xoopsSecurity']->check()) {
35
-                    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
35
+                    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
36 36
                 }
37 37
                 xoops_cp_header();
38 38
                 adminMenu(1);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                     'EV_TITLE' => $event->getVar('event_title'),
65 65
                     'EV_START' => $extcalTime->getFormatedDate($helper->getConfig('date_long'), $event->getVar('event_start')),
66 66
                     'EV_END'   => $extcalTime->getFormatedDate($helper->getConfig('date_long'), $event->getVar('event_end')),
67
-                    'EV_LINK'  => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'),
67
+                    'EV_LINK'  => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'),
68 68
                 ];
69 69
                 $xoopsMailer->assign($tag);
70 70
                 $xoopsMailer->send(true);
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             default:
80 80
                 xoops_cp_header();
81 81
                 $fromemail      = !empty($xoopsConfig['adminmail']) ? $xoopsConfig['adminmail'] : $xoopsUser->getVar('email', 'E');
82
-                $subjectCaption = _AM_EXTCAL_SUBJECT . "<br><br><span style='font-size:x-small;font-weight:bold;'>" . _AM_EXTCAL_USEFUL_TAGS . "</span><br><span style='font-size:x-small;font-weight:normal;'>" . _AM_EXTCAL_MAILTAGS6 . '<br>' . _AM_EXTCAL_MAILTAGS2 . '</span>&nbsp;&nbsp;&nbsp;';
82
+                $subjectCaption = _AM_EXTCAL_SUBJECT."<br><br><span style='font-size:x-small;font-weight:bold;'>"._AM_EXTCAL_USEFUL_TAGS."</span><br><span style='font-size:x-small;font-weight:normal;'>"._AM_EXTCAL_MAILTAGS6.'<br>'._AM_EXTCAL_MAILTAGS2.'</span>&nbsp;&nbsp;&nbsp;';
83 83
                 $bodyCaption    = _AM_EXTCAL_BODY
84 84
                                   . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
85 85
                                   . _AM_EXTCAL_USEFUL_TAGS
@@ -102,12 +102,12 @@  discard block
 block discarded – undo
102 102
                                   . '<br>'
103 103
                                   . _AM_EXTCAL_MAILTAGS9
104 104
                                   . '</span>&nbsp;&nbsp;&nbsp;';
105
-                $toCheckBbox    = new \XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
105
+                $toCheckBbox = new \XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
106 106
                 $toCheckBox->addOption('mail', _AM_EXTCAL_EMAIL);
107 107
                 $toCheckBox->addOption('pm', _AM_EXTCAL_PM);
108 108
 
109
-                echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_APPROVED_EVENT . '</legend>';
110
-                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
109
+                echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_APPROVED_EVENT.'</legend>';
110
+                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
111 111
                 echo _AM_EXTCAL_INFO_SEND_NOTIF;
112 112
                 echo '</fieldset><br>';
113 113
                 $form = new \XoopsThemeForm(_AM_EXTCAL_SEND_NOTIFICATION, 'mailusers', 'index.php?op=notification&amp;fct=send', 'post', true);
@@ -137,13 +137,13 @@  discard block
 block discarded – undo
137 137
         //        $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
138 138
         $adminObject = \Xmf\Module\Admin::getInstance();
139 139
         $adminObject->addInfoBox(_MI_EXTCAL_DASHBOARD);
140
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_CATEGORIES . '</infolabel>', $catHandler->getCount()), '', 'Green');
141
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_EVENT . '</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 1))), '', 'Green');
142
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_PENDING . '</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 0))), '', 'Red');
140
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_CATEGORIES.'</infolabel>', $catHandler->getCount()), '', 'Green');
141
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_EVENT.'</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 1))), '', 'Green');
142
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_PENDING.'</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 0))), '', 'Red');
143 143
         $criteriaCompo = new \CriteriaCompo();
144 144
         $criteriaCompo->add(new \Criteria('event_approved', 1));
145 145
         $criteriaCompo->add(new \Criteria('event_start', time(), '>='));
146
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_APPROVED . '</infolabel><infotext>', $eventHandler->getCount($criteriaCompo) . '</infotext>'), '', 'Green');
146
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_APPROVED.'</infolabel><infotext>', $eventHandler->getCount($criteriaCompo).'</infotext>'), '', 'Green');
147 147
 
148 148
         $adminObject->addConfigBoxLine();
149 149
         $adminObject->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH);
@@ -160,42 +160,42 @@  discard block
 block discarded – undo
160 160
         $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), ['cat_id']);
161 161
         $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y');
162 162
 
163
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_PENDING_EVENT . '</legend>';
164
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
163
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_PENDING_EVENT.'</legend>';
164
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
165 165
         //        echo '<img src="../assets/images/icons/on.png" >&nbsp;&nbsp;'._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>';
166
-        echo '<img src=' . $pathIcon16 . '/edit.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT_PENDING_EVENT . '<br>';
167
-        echo '<img src=' . $pathIcon16 . '/delete.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_DELETE_PENDING_EVENT . '<br>';
166
+        echo '<img src='.$pathIcon16.'/edit.png>&nbsp;&nbsp;'._AM_EXTCAL_INFO_EDIT_PENDING_EVENT.'<br>';
167
+        echo '<img src='.$pathIcon16.'/delete.png>&nbsp;&nbsp;'._AM_EXTCAL_INFO_DELETE_PENDING_EVENT.'<br>';
168 168
         echo '</fieldset><br>';
169 169
 
170 170
         echo '<table class="outer" style="width:100%;">';
171 171
         echo '<tr style="text-align:center;">';
172
-        echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>';
173
-        echo '<th>' . _AM_EXTCAL_TITLE . '</th>';
174
-        echo '<th>' . _AM_EXTCAL_START_DATE . '</th>';
175
-        echo '<th>' . _AM_EXTCAL_ACTION . '</th>';
172
+        echo '<th>'._AM_EXTCAL_CATEGORY.'</th>';
173
+        echo '<th>'._AM_EXTCAL_TITLE.'</th>';
174
+        echo '<th>'._AM_EXTCAL_START_DATE.'</th>';
175
+        echo '<th>'._AM_EXTCAL_ACTION.'</th>';
176 176
         echo '</tr>';
177 177
 
178 178
         if (count($pendingEvent) > 0) {
179 179
             $i = 0;
180 180
             foreach ($pendingEvent as $event) {
181 181
                 $class = (0 == ++$i % 2) ? 'even' : 'odd';
182
-                echo '<tr style="text-align:center;" class="' . $class . '">';
183
-                echo '<td>' . $event['Category']['cat_name'] . '</td>';
184
-                echo '<td>' . $event['event_title'] . '</td>';
185
-                echo '<td>' . $event['formated_event_start'] . '</td>';
182
+                echo '<tr style="text-align:center;" class="'.$class.'">';
183
+                echo '<td>'.$event['Category']['cat_name'].'</td>';
184
+                echo '<td>'.$event['event_title'].'</td>';
185
+                echo '<td>'.$event['formated_event_start'].'</td>';
186 186
                 echo '<td style="width:10%; text-align:center;">';
187
-                echo '<a href="event.php?op=modify&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/edit.png></a>&nbsp;&nbsp;';
188
-                echo '<a href="event.php?op=delete&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/delete.png></a>';
187
+                echo '<a href="event.php?op=modify&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/edit.png></a>&nbsp;&nbsp;';
188
+                echo '<a href="event.php?op=delete&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/delete.png></a>';
189 189
                 echo '</td>';
190 190
                 echo '</tr>';
191 191
             }
192 192
         } else {
193
-            echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>';
193
+            echo '<tr><td colspan="4">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>';
194 194
         }
195 195
 
196 196
         echo '</table></fieldset><br>';
197 197
 
198
-        require_once __DIR__ . '/admin_footer.php';
198
+        require_once __DIR__.'/admin_footer.php';
199 199
 
200 200
         break;
201 201
 }
Please login to merge, or discard this patch.
versions/Extcal_2_21.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
 
45 45
         // Create who's not going table to fix bug. If the table exist, the query will faile
46 46
         $sql = 'CREATE TABLE `'
47
-               . $xoopsDB->prefix('extcal_eventnotmember')
48
-               . "` (`eventnotmember_id` INT(11) NOT NULL AUTO_INCREMENT,`event_id` INT(11) NOT NULL DEFAULT '0',`uid` INT(11) NOT NULL DEFAULT '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
47
+                . $xoopsDB->prefix('extcal_eventnotmember')
48
+                . "` (`eventnotmember_id` INT(11) NOT NULL AUTO_INCREMENT,`event_id` INT(11) NOT NULL DEFAULT '0',`uid` INT(11) NOT NULL DEFAULT '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
49 49
         $xoopsDB->query($sql);
50 50
     }
51 51
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@
 block discarded – undo
33 33
         global $xoopsDB;
34 34
 
35 35
         // Create eXtcal upload directory if don't exist
36
-        $dir = XOOPS_ROOT_PATH . '/uploads/extcal';
36
+        $dir = XOOPS_ROOT_PATH.'/uploads/extcal';
37 37
         if (!is_dir($dir)) {
38 38
             mkdir($dir);
39 39
 
40 40
             // Copy index.html files on uploads folders
41
-            $indexFile = __DIR__ . '/index.html';
42
-            copy($indexFile, XOOPS_ROOT_PATH . '/uploads/extcal/index.html');
41
+            $indexFile = __DIR__.'/index.html';
42
+            copy($indexFile, XOOPS_ROOT_PATH.'/uploads/extcal/index.html');
43 43
         }
44 44
 
45 45
         // Create who's not going table to fix bug. If the table exist, the query will faile
Please login to merge, or discard this patch.
versions/Extcal_2_15.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@
 block discarded – undo
51 51
         $xoopsDB->query($sql);
52 52
 
53 53
         $sql = 'CREATE TABLE `'
54
-               . $xoopsDB->prefix('extcal_event')
55
-               . "` (`eventnotmember_id` INT(11) NOT NULL AUTO_INCREMENT,`event_id` INT(11) NOT NULL DEFAULT '0',`uid` INT(11) NOT NULL DEFAULT '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
54
+                . $xoopsDB->prefix('extcal_event')
55
+                . "` (`eventnotmember_id` INT(11) NOT NULL AUTO_INCREMENT,`event_id` INT(11) NOT NULL DEFAULT '0',`uid` INT(11) NOT NULL DEFAULT '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
56 56
         $xoopsDB->query($sql);
57 57
 
58 58
         $sql = 'CREATE TABLE `'
59
-               . $xoopsDB->prefix('extcal_file')
60
-               . "` (`file_id` INT(11) NOT NULL AUTO_INCREMENT,`file_name` VARCHAR(255) NOT NULL,`file_nicename` VARCHAR(255) NOT NULL,`file_mimetype` VARCHAR(255) NOT NULL,`file_size` INT(11) NOT NULL,`file_download` INT(11) NOT NULL,`file_date` INT(11) NOT NULL,`file_approved` TINYINT(1) NOT NULL,`event_id` INT(11) NOT NULL,`uid` INT(11) NOT NULL,PRIMARY KEY  (`file_id`)) COMMENT='eXtcal By Zoullou' ;";
59
+                . $xoopsDB->prefix('extcal_file')
60
+                . "` (`file_id` INT(11) NOT NULL AUTO_INCREMENT,`file_name` VARCHAR(255) NOT NULL,`file_nicename` VARCHAR(255) NOT NULL,`file_mimetype` VARCHAR(255) NOT NULL,`file_size` INT(11) NOT NULL,`file_download` INT(11) NOT NULL,`file_date` INT(11) NOT NULL,`file_approved` TINYINT(1) NOT NULL,`event_id` INT(11) NOT NULL,`uid` INT(11) NOT NULL,PRIMARY KEY  (`file_id`)) COMMENT='eXtcal By Zoullou' ;";
61 61
         $xoopsDB->query($sql);
62 62
     }
63 63
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,19 +34,19 @@
 block discarded – undo
34 34
         //$xoopsDB = \XoopsDatabaseFactory::getDatabaseConnection();
35 35
         $xoopsDB = \XoopsDatabaseFactory::getDatabaseConnection();
36 36
 
37
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . "` CHANGE `event_approved` `event_approved` TINYINT( 1 ) NOT NULL DEFAULT '0' ;";
37
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event')."` CHANGE `event_approved` `event_approved` TINYINT( 1 ) NOT NULL DEFAULT '0' ;";
38 38
         $xoopsDB->query($sql);
39 39
 
40
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_isrecur` TINYINT( 1 ) NOT NULL AFTER `event_nbmember` ;';
40
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_isrecur` TINYINT( 1 ) NOT NULL AFTER `event_nbmember` ;';
41 41
         $xoopsDB->query($sql);
42 42
 
43
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_rules` VARCHAR( 255 ) NOT NULL AFTER `event_isrecur` ';
43
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_rules` VARCHAR( 255 ) NOT NULL AFTER `event_isrecur` ';
44 44
         $xoopsDB->query($sql);
45 45
 
46
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_start` INT( 11 ) NOT NULL AFTER `event_recur_rules` ;';
46
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_start` INT( 11 ) NOT NULL AFTER `event_recur_rules` ;';
47 47
         $xoopsDB->query($sql);
48 48
 
49
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_end` INT( 11 ) NOT NULL AFTER `event_recur_start` ;';
49
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_end` INT( 11 ) NOT NULL AFTER `event_recur_start` ;';
50 50
         $xoopsDB->query($sql);
51 51
 
52 52
         $sql = 'CREATE TABLE `'
Please login to merge, or discard this patch.
versions/Extcal_2_04.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         global $xoopsDB;
34 34
 
35
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . "` ADD `event_nbmember` TINYINT(4) NOT NULL DEFAULT '0' AFTER `event_submitdate` ;";
35
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event')."` ADD `event_nbmember` TINYINT(4) NOT NULL DEFAULT '0' AFTER `event_submitdate` ;";
36 36
         $xoopsDB->query($sql);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
include/functions0.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -149,11 +149,11 @@
 block discarded – undo
149 149
         $cat_color = $catList->getVar('cat_color');
150 150
         $checked   = in_array($cat_id, $cat) ? 'checked' : '';
151 151
         $cat       = ''
152
-                     . "<div style='float:left; margin-left:5px;'>"
153
-                     . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
154
-                     . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"
155
-                     . " {$name}"
156
-                     . '</div>';
152
+                        . "<div style='float:left; margin-left:5px;'>"
153
+                        . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
154
+                        . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"
155
+                        . " {$name}"
156
+                        . '</div>';
157 157
 
158 158
         $t[] = $cat;
159 159
     }
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 use XoopsModules\Extcal;
20 20
 
21
-require_once XOOPS_ROOT_PATH . '/class/uploader.php';
21
+require_once XOOPS_ROOT_PATH.'/class/uploader.php';
22 22
 
23 23
 /**
24 24
  * @param $eventId
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
 function extcal_loadImg(&$REQUEST, &$event_picture1, &$event_picture2)
48 48
 {
49 49
     ///////////////////////////////////////////////////////////////////////////////
50
-    $uploaddir_event = XOOPS_ROOT_PATH . '/uploads/extcal/';
51
-    $uploadurl_event = XOOPS_URL . '/uploads/extcal/';
50
+    $uploaddir_event = XOOPS_ROOT_PATH.'/uploads/extcal/';
51
+    $uploadurl_event = XOOPS_URL.'/uploads/extcal/';
52 52
     //$picture = '';
53 53
     for ($j = 1; $j < 3; ++$j) {
54
-        $delimg = @$REQUEST['delimg_' . $j . ''];
55
-        $delimg = isset($delimg) ? (int)$delimg : 0;
54
+        $delimg = @$REQUEST['delimg_'.$j.''];
55
+        $delimg = isset($delimg) ? (int) $delimg : 0;
56 56
         if (0 == $delimg && !empty($REQUEST['xoops_upload_file'][$j])) {
57 57
             $upload = new \XoopsMediaUploader($uploaddir_event, [
58 58
                 'image/gif',
@@ -75,15 +75,15 @@  discard block
 block discarded – undo
75 75
                         $event_picture2 = $upload->getSavedFileName();
76 76
                     }
77 77
                 }
78
-            } elseif (!empty($REQUEST['file' . $j])) {
78
+            } elseif (!empty($REQUEST['file'.$j])) {
79 79
                 if (1 == $j) {
80
-                    $event_picture1 = $REQUEST['file' . $j];
80
+                    $event_picture1 = $REQUEST['file'.$j];
81 81
                 } elseif (2 == $j) {
82
-                    $event_picture2 = $REQUEST['file' . $j];
82
+                    $event_picture2 = $REQUEST['file'.$j];
83 83
                 }
84 84
             }
85 85
         } else {
86
-            $url_event = XOOPS_ROOT_PATH . '/uploads/extcal/' . $REQUEST['file' . $j];
86
+            $url_event = XOOPS_ROOT_PATH.'/uploads/extcal/'.$REQUEST['file'.$j];
87 87
             if (1 == $j) {
88 88
                 $event_picture1 = '';
89 89
             } elseif (2 == $j) {
@@ -179,17 +179,17 @@  discard block
 block discarded – undo
179 179
         $select->addOption('', '');
180 180
     }
181 181
 
182
-    $select->addOption('year ASC', _MD_EXTCAL_YEAR . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
183
-    $select->addOption('year DESC', _MD_EXTCAL_YEAR . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
182
+    $select->addOption('year ASC', _MD_EXTCAL_YEAR.' '._MD_EXTCAL_ORDER_BY_ASC);
183
+    $select->addOption('year DESC', _MD_EXTCAL_YEAR.' '._MD_EXTCAL_ORDER_BY_DESC);
184 184
 
185
-    $select->addOption('month ASC', _MD_EXTCAL_MONTH . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
186
-    $select->addOption('month DESC', _MD_EXTCAL_MONTH . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
185
+    $select->addOption('month ASC', _MD_EXTCAL_MONTH.' '._MD_EXTCAL_ORDER_BY_ASC);
186
+    $select->addOption('month DESC', _MD_EXTCAL_MONTH.' '._MD_EXTCAL_ORDER_BY_DESC);
187 187
 
188
-    $select->addOption('event_title ASC', _MD_EXTCAL_ALPHA . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
189
-    $select->addOption('event_title DESC', _MD_EXTCAL_ALPHA . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
188
+    $select->addOption('event_title ASC', _MD_EXTCAL_ALPHA.' '._MD_EXTCAL_ORDER_BY_ASC);
189
+    $select->addOption('event_title DESC', _MD_EXTCAL_ALPHA.' '._MD_EXTCAL_ORDER_BY_DESC);
190 190
 
191
-    $select->addOption('cat_name ASC', _MD_EXTCAL_CATEGORY . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
192
-    $select->addOption('cat_name DESC', _MD_EXTCAL_CATEGORY . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
191
+    $select->addOption('cat_name ASC', _MD_EXTCAL_CATEGORY.' '._MD_EXTCAL_ORDER_BY_ASC);
192
+    $select->addOption('cat_name DESC', _MD_EXTCAL_CATEGORY.' '._MD_EXTCAL_ORDER_BY_DESC);
193 193
 
194 194
     return $select;
195 195
 }
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 function echoDateArray($period)
304 304
 {
305 305
     foreach ($period as $dt) {
306
-        echo $dt->format("l Y-m-d H:i:s\n") . '<br>';
306
+        echo $dt->format("l Y-m-d H:i:s\n").'<br>';
307 307
     }
308 308
 }
309 309
 
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
     }
320 320
 
321 321
     $txt = print_r($t, true);
322
-    echo '<pre>Number of items: ' . count($t) . "<br>{$txt}</pre>";
322
+    echo '<pre>Number of items: '.count($t)."<br>{$txt}</pre>";
323 323
 }
324 324
 
325 325
 /*****************************************************************/
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
     if ('' != $msg) {
333 333
         echo "<hr>{$msg}<hr>";
334 334
     }
335
-    echo $line . '<br>';
335
+    echo $line.'<br>';
336 336
 }
337 337
 
338 338
 /*****************************************************************/
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
         echo "<hr>{$msg}<hr>";
360 360
     }
361 361
 
362
-    echo 'date --->' . $tsName . ' = ' . $ts . ' - ' . date('d-m-Y H:m:s', $ts) . '<br>';
362
+    echo 'date --->'.$tsName.' = '.$ts.' - '.date('d-m-Y H:m:s', $ts).'<br>';
363 363
 }
364 364
 
365 365
 /*****************************************************************/
Please login to merge, or discard this patch.