Passed
Push — master ( d2520f...3f8ec2 )
by Michael
02:50
created
class/Event.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
22 22
 
23 23
 // require_once __DIR__ . '/ExtcalPersistableObjectHandler.php';
24
-require_once __DIR__ . '/perm.php';
25
-require_once __DIR__ . '/time.php';
26
-require_once __DIR__ . '/config.php';
27
-require_once __DIR__ . '/ExtDateTime.php';
28
-require_once __DIR__ . '/utility.php';
29
-require_once __DIR__ . '/../include/constantes.php';
24
+require_once __DIR__.'/perm.php';
25
+require_once __DIR__.'/time.php';
26
+require_once __DIR__.'/config.php';
27
+require_once __DIR__.'/ExtDateTime.php';
28
+require_once __DIR__.'/utility.php';
29
+require_once __DIR__.'/../include/constantes.php';
30 30
 
31 31
 /**
32 32
  * Class Event.
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $this->initVar('event_etablissement', XOBJ_DTYPE_INT, 5, false);
68 68
         $this->initVar('event_icone', XOBJ_DTYPE_TXTBOX, '', false);
69 69
 
70
-        $this->externalKey['cat_id']          = [
70
+        $this->externalKey['cat_id'] = [
71 71
             'className'      => 'Category',
72 72
             'getMethodeName' => 'getCat',
73 73
             'keyName'        => 'cat',
Please login to merge, or discard this patch.
class/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
22 22
 
23 23
 // require_once __DIR__ . '/ExtcalPersistableObjectHandler.php';
24
-require_once XOOPS_ROOT_PATH . '/class/uploader.php';
24
+require_once XOOPS_ROOT_PATH.'/class/uploader.php';
25 25
 
26 26
 /**
27 27
  * Class File.
Please login to merge, or discard this patch.
class/EventmemberHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,15 +68,15 @@
 block discarded – undo
68 68
     public function getMembers($eventId)
69 69
     {
70 70
         $memberHandler = xoops_getHandler('member');
71
-        $eventMember   =& $this->getObjects(new \Criteria('event_id', $eventId));
71
+        $eventMember   = & $this->getObjects(new \Criteria('event_id', $eventId));
72 72
         $count         = count($eventMember);
73 73
         if ($count > 0) {
74
-            $in = '(' . $eventMember[0]->getVar('uid');
74
+            $in = '('.$eventMember[0]->getVar('uid');
75 75
             array_shift($eventMember);
76 76
             foreach ($eventMember as $member) {
77
-                $in .= ',' . $member->getVar('uid');
77
+                $in .= ','.$member->getVar('uid');
78 78
             }
79
-            $in       .= ')';
79
+            $in .= ')';
80 80
             $criteria = new \Criteria('uid', $in, 'IN');
81 81
         } else {
82 82
             $criteria = new \Criteria('uid', '(0)', 'IN');
Please login to merge, or discard this patch.
class/EtablissementHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 //Kraven 30
22 22
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
23 23
 
24
-require_once XOOPS_ROOT_PATH . '/kernel/object.php';
24
+require_once XOOPS_ROOT_PATH.'/kernel/object.php';
25 25
 
26 26
 /**
27 27
  * Class EtablissementHandler.
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         if (!$skipPerm) {
53 53
             $this->addCatPermCriteria($criteriaCompo, $user);
54 54
         }
55
-        $ret =& $this->getObjects($criteriaCompo);
55
+        $ret = & $this->getObjects($criteriaCompo);
56 56
         if (isset($ret[0])) {
57 57
             return $ret[0];
58 58
         } else {
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $asObject = true,
75 75
         $id_as_key = true) //getAll($criteria = null, $asObject = false)
76 76
     {
77
-        $rst =& $this->getObjects($criteria, $asObject);
77
+        $rst = & $this->getObjects($criteria, $asObject);
78 78
         if ($asObject) {
79 79
             return $rst;
80 80
         } else {
Please login to merge, or discard this patch.
class/Time.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
6 6
 
7
-require_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php';
7
+require_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php';
8 8
 
9 9
 $moduleDirName = basename(dirname(__DIR__));
10 10
 Extcal\Helper::getInstance()->loadLanguage('main');
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function getFormatedDate($format, $timestamp)
94 94
     {
95
-        $patterns     = [
95
+        $patterns = [
96 96
             '/January/',
97 97
             '/February/',
98 98
             '/March/',
@@ -145,18 +145,18 @@  discard block
 block discarded – undo
145 145
             _CAL_OCTOBER,
146 146
             _CAL_NOVEMBER,
147 147
             _CAL_DECEMBER,
148
-            substr(_CAL_JANUARY, 0, 3) . ' ',
149
-            substr(_CAL_FEBRUARY, 0, 3) . ' ',
150
-            substr(_CAL_MARCH, 0, 3) . ' ',
151
-            substr(_CAL_APRIL, 0, 3) . ' ',
152
-            substr(_CAL_MAY, 0, 3) . ' ',
153
-            substr(_CAL_JUNE, 0, 3) . ' ',
154
-            substr(_CAL_JULY, 0, 3) . ' ',
155
-            substr(_CAL_AUGUST, 0, 3) . ' ',
156
-            substr(_CAL_SEPTEMBER, 0, 3) . ' ',
157
-            substr(_CAL_OCTOBER, 0, 3) . ' ',
158
-            substr(_CAL_NOVEMBER, 0, 3) . ' ',
159
-            substr(_CAL_DECEMBER, 0, 3) . ' ',
148
+            substr(_CAL_JANUARY, 0, 3).' ',
149
+            substr(_CAL_FEBRUARY, 0, 3).' ',
150
+            substr(_CAL_MARCH, 0, 3).' ',
151
+            substr(_CAL_APRIL, 0, 3).' ',
152
+            substr(_CAL_MAY, 0, 3).' ',
153
+            substr(_CAL_JUNE, 0, 3).' ',
154
+            substr(_CAL_JULY, 0, 3).' ',
155
+            substr(_CAL_AUGUST, 0, 3).' ',
156
+            substr(_CAL_SEPTEMBER, 0, 3).' ',
157
+            substr(_CAL_OCTOBER, 0, 3).' ',
158
+            substr(_CAL_NOVEMBER, 0, 3).' ',
159
+            substr(_CAL_DECEMBER, 0, 3).' ',
160 160
             _CAL_SUNDAY,
161 161
             _CAL_MONDAY,
162 162
             _CAL_TUESDAY,
@@ -164,13 +164,13 @@  discard block
 block discarded – undo
164 164
             _CAL_THURSDAY,
165 165
             _CAL_FRIDAY,
166 166
             _CAL_SATURDAY,
167
-            substr(_CAL_SUNDAY, 0, 3) . ' ',
168
-            substr(_CAL_MONDAY, 0, 3) . ' ',
169
-            substr(_CAL_TUESDAY, 0, 3) . ' ',
170
-            substr(_CAL_WEDNESDAY, 0, 3) . ' ',
171
-            substr(_CAL_THURSDAY, 0, 3) . ' ',
172
-            substr(_CAL_FRIDAY, 0, 3) . ' ',
173
-            substr(_CAL_SATURDAY, 0, 3) . ' ',
167
+            substr(_CAL_SUNDAY, 0, 3).' ',
168
+            substr(_CAL_MONDAY, 0, 3).' ',
169
+            substr(_CAL_TUESDAY, 0, 3).' ',
170
+            substr(_CAL_WEDNESDAY, 0, 3).' ',
171
+            substr(_CAL_THURSDAY, 0, 3).' ',
172
+            substr(_CAL_FRIDAY, 0, 3).' ',
173
+            substr(_CAL_SATURDAY, 0, 3).' ',
174 174
         ];
175 175
 
176 176
         return preg_replace($patterns, $replacements, date($format, $timestamp));
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                 array_shift($eventOptions);
213 213
                 $day = '';
214 214
                 foreach ($eventOptions as $option) {
215
-                    $day .= ' ' . $daysName[$option] . ', ';
215
+                    $day .= ' '.$daysName[$option].', ';
216 216
                 }
217 217
                 $ret = sprintf(_MD_EXTCAL_RR_WEEKLY, $day, $interval);
218 218
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
                 array_shift($eventOptions);
332 332
                 $month = '';
333 333
                 foreach ($eventOptions as $option) {
334
-                    $month .= ' ' . $monthName[$option] . ', ';
334
+                    $month .= ' '.$monthName[$option].', ';
335 335
                 }
336 336
                 $dayString = $day;
337 337
                 if (array_key_exists($day, $monthDays)) {
Please login to merge, or discard this patch.
class/CategoryHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         if (!$skipPerm) {
130 130
             $this->addCatPermCriteria($criteriaCompo, $GLOBALS['xoopsUser']);
131 131
         }
132
-        $ret =& $this->getObjects($criteriaCompo);
132
+        $ret = & $this->getObjects($criteriaCompo);
133 133
         if (isset($ret[0])) {
134 134
             return $ret[0];
135 135
         } else {
@@ -186,10 +186,10 @@  discard block
 block discarded – undo
186 186
         $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view');
187 187
         $count                = count($authorizedAccessCats);
188 188
         if ($count > 0) {
189
-            $in = '(' . $authorizedAccessCats[0];
189
+            $in = '('.$authorizedAccessCats[0];
190 190
             array_shift($authorizedAccessCats);
191 191
             foreach ($authorizedAccessCats as $authorizedAccessCat) {
192
-                $in .= ',' . $authorizedAccessCat;
192
+                $in .= ','.$authorizedAccessCat;
193 193
             }
194 194
             $in .= ')';
195 195
             $criteria->add(new \Criteria('cat_id', $in, 'IN'));
Please login to merge, or discard this patch.
class/Etablissement.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 //Kraven 30
22 22
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
23 23
 
24
-require_once XOOPS_ROOT_PATH . '/kernel/object.php';
24
+require_once XOOPS_ROOT_PATH.'/kernel/object.php';
25 25
 
26 26
 //class Event extends \XoopsObject
27 27
 //class extcal_etablissement extends \XoopsObject
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         $title = $this->isNew() ? sprintf(_MD_EXTCAL_ETABLISSEMENT_ADD) : sprintf(_MD_EXTCAL_ETABLISSEMENT_EDIT);
73 73
 
74
-        require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
74
+        require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
75 75
 
76 76
         $form = new \XoopsThemeForm($title, 'form', $action, 'post', true);
77 77
         $form->setExtra('enctype="multipart/form-data"');
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $form->addElement(new \XoopsFormTextArea(_MD_EXTCAL_ETABLISSEMENT_HORAIRES, 'horaires', $this->getVar('horaires'), 3, 40));
91 91
         $form->addElement(new \XoopsFormTextArea(_MD_EXTCAL_ETABLISSEMENT_DIVERS, 'divers', $this->getVar('divers'), 5, 40));
92 92
         //$form->addElement( new \XoopsFormTextArea(_MD_EXTCAL_ETABLISSEMENT_TARIFS, 'tarifs', $this->getVar("tarifs"), 5, 40));
93
-        $form->addElement(new \XoopsFormText(_MD_EXTCAL_ETABLISSEMENT_TARIFS . ' ( ' . _MD_EXTCAL_DEVISE2 . ' )', 'tarifs', 20, 20, $this->getVar('tarifs')), false);
93
+        $form->addElement(new \XoopsFormText(_MD_EXTCAL_ETABLISSEMENT_TARIFS.' ( '._MD_EXTCAL_DEVISE2.' )', 'tarifs', 20, 20, $this->getVar('tarifs')), false);
94 94
 
95 95
         //$form->addElement( new \XoopsFormTextArea(_MD_EXTCAL_ETABLISSEMENT_MAP, 'map', $this->getVar("map"), 5, 40));
96 96
         $form->addElement(new \XoopsFormText(_MD_EXTCAL_ETABLISSEMENT_MAP, 'map', 150, 255, $this->getVar('map')), false);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         //Logo
99 99
         $file_tray = new \XoopsFormElementTray(sprintf(_MD_EXTCAL_FORM_IMG, 2), '');
100 100
         if ('' != $this->getVar('logo')) {
101
-            $file_tray->addElement(new \XoopsFormLabel('', "<img src='" . XOOPS_URL . '/uploads/extcal/etablissement/' . $this->getVar('logo') . "' name='image' id='image' alt=''><br><br>"));
101
+            $file_tray->addElement(new \XoopsFormLabel('', "<img src='".XOOPS_URL.'/uploads/extcal/etablissement/'.$this->getVar('logo')."' name='image' id='image' alt=''><br><br>"));
102 102
             $check_del_img = new \XoopsFormCheckBox('', 'delimg');
103 103
             $check_del_img->addOption(1, _MD_EXTCAL_DEL_IMG);
104 104
             $file_tray->addElement($check_del_img);
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
         }
110 110
         $file_img->setExtra("size ='40'");
111 111
         $file_tray->addElement($file_img);
112
-        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int)(3145728 / 1000), 500, 500);
113
-        $file_label = new \XoopsFormLabel('', '<br>' . $msg);
112
+        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int) (3145728 / 1000), 500, 500);
113
+        $file_label = new \XoopsFormLabel('', '<br>'.$msg);
114 114
         $file_tray->addElement($file_label);
115 115
         $form->addElement($file_tray);
116 116
         $form->addElement(new \XoopsFormHidden('file', $this->getVar('logo')));
Please login to merge, or discard this patch.
class/Category.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
22 22
 
23 23
 // require_once __DIR__ . '/ExtcalPersistableObjectHandler.php';
24
-require_once __DIR__ . '/perm.php';
25
-require_once __DIR__ . '/time.php';
24
+require_once __DIR__.'/perm.php';
25
+require_once __DIR__.'/time.php';
26 26
 
27 27
 /**
28 28
  * Class Category.
Please login to merge, or discard this patch.
include/mail_fnc.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
 
23 23
 use XoopsModules\Extcal;
24 24
 
25
-require_once __DIR__ . '/../../../class/uploader.php';
26
-require_once __DIR__ . '/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script
25
+require_once __DIR__.'/../../../class/uploader.php';
26
+require_once __DIR__.'/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script
27 27
 // require_once __DIR__ . '/../class/Utility.php';
28
-require_once __DIR__ . '/constantes.php';
29
-require_once __DIR__ . '/../../../class/template.php';
28
+require_once __DIR__.'/constantes.php';
29
+require_once __DIR__.'/../../../class/template.php';
30 30
 
31 31
 /********************************************************************
32 32
  *
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     $action  = ''; //a voir   JJD
141 141
     $message = sprintf($tplMessage, $acteur['name']);
142 142
     //$subject .= ' (' . rand(1, 100) . ')';
143
-    $subject .= ' - ' . $acteur['name'];
143
+    $subject .= ' - '.$acteur['name'];
144 144
     //--------------------------------------------------------------
145 145
     //Chargement du template dans le dossier de langue
146 146
     //$f = _EXTCAL_PATH_LG . $xoopsConfig['language'] . '\mail_inscription.html';
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     if (_EXTCAL_HEADER_HTML == $mode) {
183 183
         $template = 'extcal_mail_member_html.tpl';
184 184
     }
185
-    $mail_body = $tpl->fetch('db:' . $template);
185
+    $mail_body = $tpl->fetch('db:'.$template);
186 186
 
187 187
     extcal_SendMail($destinataires, $mail_fromName, $mail_fromemail, $mail_subject, $mail_body, $bEcho = false, $mode = 0, $sep = '|');
188 188
 
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     $header   = [];
316 316
     $header[] = "From: {$emailSender}";
317 317
     $header[] = "Reply-To: {$emailSender}";
318
-    $header[] = 'X-Mailer: PHP/' . PHP_VERSION;
318
+    $header[] = 'X-Mailer: PHP/'.PHP_VERSION;
319 319
 
320 320
     if (_EXTCAL_HEADER_HTML == $mode) {
321 321
         $header[] = 'MIME-Version: 1.0';
Please login to merge, or discard this patch.