Passed
Push — master ( 715875...b7c343 )
by Michael
03:54 queued 11s
created
class/Utility.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
                 if (!mkdir($folder) && !is_dir($folder)) {
37 37
                     throw new RuntimeException(sprintf('Unable to create the %s directory', $folder));
38 38
                 } else {
39
-                    file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>');
39
+                    file_put_contents($folder.'/index.html', '<script>history.go(-1);</script>');
40 40
                 }
41 41
             }
42 42
         } catch (Exception $e) {
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
         //    @mkdir($dst);
75 75
         while (false !== ($file = readdir($dir))) {
76 76
             if (($file !== '.') && ($file !== '..')) {
77
-                if (is_dir($src . '/' . $file)) {
78
-                    self::recurseCopy($src . '/' . $file, $dst . '/' . $file);
77
+                if (is_dir($src.'/'.$file)) {
78
+                    self::recurseCopy($src.'/'.$file, $dst.'/'.$file);
79 79
                 } else {
80
-                    copy($src . '/' . $file, $dst . '/' . $file);
80
+                    copy($src.'/'.$file, $dst.'/'.$file);
81 81
                 }
82 82
             }
83 83
         }
Please login to merge, or discard this patch.
class/Helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     {
70 70
         $ret = false;
71 71
 
72
-        $class = __NAMESPACE__ . '\\' . \ucfirst($name) . 'Handler';
72
+        $class = __NAMESPACE__.'\\'.\ucfirst($name).'Handler';
73 73
         if (!\class_exists($class)) {
74 74
             throw new \RuntimeException("Class '$class' not found");
75 75
         }
Please login to merge, or discard this patch.
class/helper0.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
             return null;
126 126
         }
127
-        $this->addLog("Getting config '{$name}' : " . $this->config[$name]);
127
+        $this->addLog("Getting config '{$name}' : ".$this->config[$name]);
128 128
 
129 129
         return $this->config[$name];
130 130
     }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $this->initConfig();
147 147
         }
148 148
         $this->config[$name] = $value;
149
-        $this->addLog("Setting config '{$name}' : " . $this->config[$name]);
149
+        $this->addLog("Setting config '{$name}' : ".$this->config[$name]);
150 150
 
151 151
         return $this->config[$name];
152 152
     }
@@ -162,12 +162,12 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function getHandler($name)
164 164
     {
165
-        if (!isset($this->handler[$name . 'Handler'])) {
165
+        if (!isset($this->handler[$name.'Handler'])) {
166 166
             $this->initHandler($name);
167 167
         }
168 168
         $this->addLog("Getting handler '{$name}'");
169 169
 
170
-        return $this->handler[$name . 'Handler'];
170
+        return $this->handler[$name.'Handler'];
171 171
     }
172 172
 
173 173
     /*
@@ -210,8 +210,8 @@  discard block
 block discarded – undo
210 210
      */
211 211
     public function initHandler($name)
212 212
     {
213
-        $this->addLog('INIT ' . $name . ' HANDLER');
214
-        $this->handler[$name . 'Handler'] = xoops_getModuleHandler($name, $this->dirname);
213
+        $this->addLog('INIT '.$name.' HANDLER');
214
+        $this->handler[$name.'Handler'] = xoops_getModuleHandler($name, $this->dirname);
215 215
     }
216 216
 
217 217
     /*
Please login to merge, or discard this patch.
class/Common/SysUtility.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
     {
63 63
         if ($considerHtml) {
64 64
             // if the plain text is shorter than the maximum length, return the whole text
65
-            if (mb_strlen(\preg_replace('/<.*?' . '>/', '', $text)) <= $length) {
65
+            if (mb_strlen(\preg_replace('/<.*?'.'>/', '', $text)) <= $length) {
66 66
                 return $text;
67 67
             }
68 68
             // splits all html-tags to scanable lines
69
-            \preg_match_all('/(<.+?' . '>)?([^<>]*)/s', $text, $lines, \PREG_SET_ORDER);
69
+            \preg_match_all('/(<.+?'.'>)?([^<>]*)/s', $text, $lines, \PREG_SET_ORDER);
70 70
             $total_length = mb_strlen($ending);
71 71
             $open_tags    = [];
72 72
             $truncate     = '';
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                             unset($open_tags[$pos]);
85 85
                         }
86 86
                         // if tag is an opening tag
87
-                    } elseif (\preg_match('/^<\s*([^\s>!]+).*?' . '>$/s', $line_matchings[1], $tag_matchings)) {
87
+                    } elseif (\preg_match('/^<\s*([^\s>!]+).*?'.'>$/s', $line_matchings[1], $tag_matchings)) {
88 88
                         // add tag to the beginning of $open_tags list
89 89
                         \array_unshift($open_tags, mb_strtolower($tag_matchings[1]));
90 90
                     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         if ($considerHtml) {
143 143
             // close all unclosed html-tags
144 144
             foreach ($open_tags as $tag) {
145
-                $truncate .= '</' . $tag . '>';
145
+                $truncate .= '</'.$tag.'>';
146 146
             }
147 147
         }
148 148
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         // set the auto-incremented id's value to blank.
223 223
         unset($tempTable[$id_field]);
224 224
         // insert cloned copy of the original  record 
225
-        $sql    = "INSERT INTO $table (" . implode(', ', array_keys($tempTable)) . ") VALUES ('" . implode("', '", array_values($tempTable)) . "')";
225
+        $sql    = "INSERT INTO $table (".implode(', ', array_keys($tempTable)).") VALUES ('".implode("', '", array_values($tempTable))."')";
226 226
         $result = $GLOBALS['xoopsDB']->queryF($sql);
227 227
         if (!$result) {
228 228
             exit($GLOBALS['xoopsDB']->error());
Please login to merge, or discard this patch.
class/Common/VersionChecks.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@  discard block
 block discarded – undo
40 40
         //check for minimum XOOPS version
41 41
         $currentVer = mb_substr(\XOOPS_VERSION, 6); // get the numeric part of string
42 42
         if (null === $requiredVer) {
43
-            $requiredVer = '' . $module->getInfo('min_xoops'); //making sure it's a string
43
+            $requiredVer = ''.$module->getInfo('min_xoops'); //making sure it's a string
44 44
         }
45 45
         $success = true;
46 46
 
47 47
         if (\version_compare($currentVer, $requiredVer, '<')) {
48 48
             $success = false;
49
-            $module->setErrors(\sprintf(\constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS'), $requiredVer, $currentVer));
49
+            $module->setErrors(\sprintf(\constant('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS'), $requiredVer, $currentVer));
50 50
         }
51 51
 
52 52
         return $success;
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         if (false !== $reqVer && '' !== $reqVer) {
79 79
             if (\version_compare($verNum, $reqVer, '<')) {
80
-                $module->setErrors(\sprintf(\constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP'), $reqVer, $verNum));
80
+                $module->setErrors(\sprintf(\constant('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP'), $reqVer, $verNum));
81 81
                 $success = false;
82 82
             }
83 83
         }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $moduleDirName      = \basename(\dirname(__DIR__, 2));
102 102
         $moduleDirNameUpper = mb_strtoupper($moduleDirName);
103 103
         $update             = '';
104
-        $repository         = 'XoopsModules25x/' . $moduleDirName;
104
+        $repository         = 'XoopsModules25x/'.$moduleDirName;
105 105
         //        $repository         = 'XoopsModules25x/publisher'; //for testing only
106 106
         $ret             = '';
107 107
         $infoReleasesUrl = "https://api.github.com/repos/$repository/releases";
@@ -115,14 +115,14 @@  discard block
 block discarded – undo
115 115
                 if (false === $curlReturn) {
116 116
                     \trigger_error(\curl_error($curlHandle));
117 117
                 } elseif (false !== \strpos($curlReturn, 'Not Found')) {
118
-                    \trigger_error('Repository Not Found: ' . $infoReleasesUrl);
118
+                    \trigger_error('Repository Not Found: '.$infoReleasesUrl);
119 119
                 } else {
120 120
                     $file              = json_decode($curlReturn, false);
121 121
                     $latestVersionLink = \sprintf("https://github.com/$repository/archive/%s.zip", $file ? \reset($file)->tag_name : $default);
122 122
                     $latestVersion     = $file[0]->tag_name;
123 123
                     $prerelease        = $file[0]->prerelease;
124 124
                     if ('master' !== $latestVersionLink) {
125
-                        $update = \constant('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION') . $latestVersion;
125
+                        $update = \constant('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION').$latestVersion;
126 126
                     }
127 127
                     //"PHP-standardized" version
128 128
                     $latestVersion = mb_strtolower($latestVersion);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                         $latestVersion = \str_replace('_', '', mb_strtolower($latestVersion));
131 131
                         $latestVersion = \str_replace('final', '', mb_strtolower($latestVersion));
132 132
                     }
133
-                    $moduleVersion = ($helper->getModule()->getInfo('version') . '_' . $helper->getModule()->getInfo('module_status'));
133
+                    $moduleVersion = ($helper->getModule()->getInfo('version').'_'.$helper->getModule()->getInfo('module_status'));
134 134
                     //"PHP-standardized" version
135 135
                     $moduleVersion = \str_replace(' ', '', mb_strtolower($moduleVersion));
136 136
                     //                    $moduleVersion = '1.0'; //for testing only
Please login to merge, or discard this patch.
class/Common/FilesManagement.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                     throw new RuntimeException(sprintf('Unable to create the %s directory', $folder));
41 41
                 }
42 42
 
43
-                file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>');
43
+                file_put_contents($folder.'/index.html', '<script>history.go(-1);</script>');
44 44
             }
45 45
         } catch (Exception $e) {
46 46
             echo 'Caught exception: ', $e->getMessage(), "\n", '<br>';
@@ -66,14 +66,14 @@  discard block
 block discarded – undo
66 66
         $dir = opendir($src);
67 67
         //        @mkdir($dst);
68 68
         if (!@mkdir($dst) && !is_dir($dst)) {
69
-            throw new RuntimeException('The directory ' . $dst . ' could not be created.');
69
+            throw new RuntimeException('The directory '.$dst.' could not be created.');
70 70
         }
71 71
         while (false !== ($file = readdir($dir))) {
72 72
             if (('.' !== $file) && ('..' !== $file)) {
73
-                if (is_dir($src . '/' . $file)) {
74
-                    self::recurseCopy($src . '/' . $file, $dst . '/' . $file);
73
+                if (is_dir($src.'/'.$file)) {
74
+                    self::recurseCopy($src.'/'.$file, $dst.'/'.$file);
75 75
                 } else {
76
-                    copy($src . '/' . $file, $dst . '/' . $file);
76
+                    copy($src.'/'.$file, $dst.'/'.$file);
77 77
                 }
78 78
             }
79 79
         }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
                 self::rrmdir($fObj->getPathname());
164 164
             }
165 165
         }
166
-        $iterator = null;   // clear iterator Obj to close file/directory
166
+        $iterator = null; // clear iterator Obj to close file/directory
167 167
         return rmdir($src); // remove the directory & return results
168 168
     }
169 169
 
@@ -196,14 +196,14 @@  discard block
 block discarded – undo
196 196
         $iterator = new DirectoryIterator($src);
197 197
         foreach ($iterator as $fObj) {
198 198
             if ($fObj->isFile()) {
199
-                rename($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
199
+                rename($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
200 200
             } elseif (!$fObj->isDot() && $fObj->isDir()) {
201 201
                 // Try recursively on directory
202
-                self::rmove($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
202
+                self::rmove($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
203 203
                 //                rmdir($fObj->getPath()); // now delete the directory
204 204
             }
205 205
         }
206
-        $iterator = null;   // clear iterator Obj to close file/directory
206
+        $iterator = null; // clear iterator Obj to close file/directory
207 207
         return rmdir($src); // remove the directory & return results
208 208
     }
209 209
 
@@ -239,9 +239,9 @@  discard block
 block discarded – undo
239 239
         $iterator = new DirectoryIterator($src);
240 240
         foreach ($iterator as $fObj) {
241 241
             if ($fObj->isFile()) {
242
-                copy($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
242
+                copy($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
243 243
             } elseif (!$fObj->isDot() && $fObj->isDir()) {
244
-                self::rcopy($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
244
+                self::rcopy($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
245 245
             }
246 246
         }
247 247
 
Please login to merge, or discard this patch.
class/Common/ServerStats.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -36,19 +36,19 @@  discard block
 block discarded – undo
36 36
         //        $sql   .= " WHERE metakey='version' LIMIT 1";
37 37
         //        $query = $GLOBALS['xoopsDB']->query($sql);
38 38
         //        list($meta) = $GLOBALS['xoopsDB']->fetchRow($query);
39
-        $html .= "<fieldset><legend style='font-weight: bold; color: #900;'>" . \constant('CO_' . $moduleDirNameUpper . '_IMAGEINFO') . "</legend>\n";
39
+        $html .= "<fieldset><legend style='font-weight: bold; color: #900;'>".\constant('CO_'.$moduleDirNameUpper.'_IMAGEINFO')."</legend>\n";
40 40
         $html .= "<div style='padding: 8px;'>\n";
41 41
         //        $html .= '<div>' . constant('CO_' . $moduleDirNameUpper . '_METAVERSION') . $meta . "</div>\n";
42 42
         //        $html .= "<br>\n";
43 43
         //        $html .= "<br>\n";
44
-        $html .= '<div>' . \constant('CO_' . $moduleDirNameUpper . '_SPHPINI') . "</div>\n";
44
+        $html .= '<div>'.\constant('CO_'.$moduleDirNameUpper.'_SPHPINI')."</div>\n";
45 45
         $html .= "<ul>\n";
46 46
 
47
-        $gdlib = \function_exists('gd_info') ? '<span style="color: green;">' . \constant('CO_' . $moduleDirNameUpper . '_GDON') . '</span>' : '<span style="color: red;">' . \constant('CO_' . $moduleDirNameUpper . '_GDOFF') . '</span>';
48
-        $html  .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib;
47
+        $gdlib = \function_exists('gd_info') ? '<span style="color: green;">'.\constant('CO_'.$moduleDirNameUpper.'_GDON').'</span>' : '<span style="color: red;">'.\constant('CO_'.$moduleDirNameUpper.'_GDOFF').'</span>';
48
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS').$gdlib;
49 49
         if (\function_exists('gd_info')) {
50 50
             if (true === ($gdlib = gd_info())) {
51
-                $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_GDLIBVERSION') . '<b>' . $gdlib['GD Version'] . '</b>';
51
+                $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_GDLIBVERSION').'<b>'.$gdlib['GD Version'].'</b>';
52 52
             }
53 53
         }
54 54
         //
@@ -58,18 +58,18 @@  discard block
 block discarded – undo
58 58
         //    $registerglobals = (!ini_get('register_globals')) ? "<span style=\"color: green;\">" . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>' : "<span style=\"color: red;\">" . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>';
59 59
         //    $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_REGISTERGLOBALS . $registerglobals;
60 60
         //
61
-        $downloads = \ini_get('file_uploads') ? '<span style="color: green;">' . \constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>' : '<span style="color: red;">' . \constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>';
62
-        $html      .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads;
61
+        $downloads = \ini_get('file_uploads') ? '<span style="color: green;">'.\constant('CO_'.$moduleDirNameUpper.'_ON').'</span>' : '<span style="color: red;">'.\constant('CO_'.$moduleDirNameUpper.'_OFF').'</span>';
62
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS').$downloads;
63 63
 
64
-        $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE') . ' <b><span style="color: blue;">' . \ini_get('upload_max_filesize') . "</span></b>\n";
65
-        $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE') . ' <b><span style="color: blue;">' . \ini_get('post_max_size') . "</span></b>\n";
66
-        $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT') . ' <b><span style="color: blue;">' . \ini_get('memory_limit') . "</span></b>\n";
64
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE').' <b><span style="color: blue;">'.\ini_get('upload_max_filesize')."</span></b>\n";
65
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE').' <b><span style="color: blue;">'.\ini_get('post_max_size')."</span></b>\n";
66
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT').' <b><span style="color: blue;">'.\ini_get('memory_limit')."</span></b>\n";
67 67
         $html .= "</ul>\n";
68 68
         $html .= "<ul>\n";
69
-        $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_SERVERPATH') . ' <b>' . XOOPS_ROOT_PATH . "</b>\n";
69
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_SERVERPATH').' <b>'.XOOPS_ROOT_PATH."</b>\n";
70 70
         $html .= "</ul>\n";
71 71
         $html .= "<br>\n";
72
-        $html .= \constant('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC') . "\n";
72
+        $html .= \constant('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC')."\n";
73 73
         $html .= '</div>';
74 74
         $html .= '</fieldset><br>';
75 75
 
Please login to merge, or discard this patch.
class/Common/Configurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function __construct()
44 44
     {
45
-        $config = require \dirname(\dirname(__DIR__)) . '/config/config.php';
45
+        $config = require \dirname(\dirname(__DIR__)).'/config/config.php';
46 46
 
47 47
         $this->name            = $config->name;
48 48
         $this->paths           = $config->paths;
Please login to merge, or discard this patch.
class/ContactHandler.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -144,34 +144,34 @@  discard block
 block discarded – undo
144 144
         $info          = '';
145 145
         $subjectPrefix = '';
146 146
         if ($GLOBALS['xoopsModuleConfig']['form_dept'] && $GLOBALS['xoopsModuleConfig']['subject_prefix'] && $GLOBALS['xoopsModuleConfig']['contact_dept']) {
147
-            $subjectPrefix = '[' . $GLOBALS['xoopsModuleConfig']['prefix_text'] . ' ' . $contact['contact_department'] . ']: ';
148
-            $info          .= _MD_CONTACT_DEPARTMENT . ': ' . $contact['contact_department'] . "\n";
147
+            $subjectPrefix = '['.$GLOBALS['xoopsModuleConfig']['prefix_text'].' '.$contact['contact_department'].']: ';
148
+            $info .= _MD_CONTACT_DEPARTMENT.': '.$contact['contact_department']."\n";
149 149
         }
150
-        $xoopsMailer->setSubject($subjectPrefix . \html_entity_decode($contact['contact_subject'], \ENT_QUOTES, 'UTF-8'));
150
+        $xoopsMailer->setSubject($subjectPrefix.\html_entity_decode($contact['contact_subject'], \ENT_QUOTES, 'UTF-8'));
151 151
 
152 152
         if ($contact['contact_url']) {
153
-            $info .= _MD_CONTACT_URL . ': ' . $contact['contact_url'] . "\n";
153
+            $info .= _MD_CONTACT_URL.': '.$contact['contact_url']."\n";
154 154
         }
155 155
         if ($contact['contact_icq']) {
156
-            $info .= _MD_CONTACT_ICQ . ': ' . $contact['contact_icq'] . "\n";
156
+            $info .= _MD_CONTACT_ICQ.': '.$contact['contact_icq']."\n";
157 157
         }
158 158
         if ($contact['contact_skype']) {
159
-            $info .= _MD_CONTACT_SKYPE . ': ' . $contact['contact_skype'] . "\n";
159
+            $info .= _MD_CONTACT_SKYPE.': '.$contact['contact_skype']."\n";
160 160
         }
161 161
         if ($contact['contact_phone']) {
162
-            $info .= _MD_CONTACT_PHONE . ': ' . $contact['contact_phone'] . "\n";
162
+            $info .= _MD_CONTACT_PHONE.': '.$contact['contact_phone']."\n";
163 163
         }
164 164
         if ($contact['contact_company']) {
165
-            $info .= _MD_CONTACT_COMPANY . ': ' . $contact['contact_company'] . "\n";
165
+            $info .= _MD_CONTACT_COMPANY.': '.$contact['contact_company']."\n";
166 166
         }
167 167
         if ($contact['contact_location']) {
168
-            $info .= _MD_CONTACT_LOCATION . ': ' . $contact['contact_location'] . "\n";
168
+            $info .= _MD_CONTACT_LOCATION.': '.$contact['contact_location']."\n";
169 169
         }
170 170
         if ($contact['contact_address']) {
171
-            $info .= _MD_CONTACT_ADDRESS . ': ' . $contact['contact_address'] . "\n";
171
+            $info .= _MD_CONTACT_ADDRESS.': '.$contact['contact_address']."\n";
172 172
         }
173 173
         if ('' !== $info) {
174
-            $info = "\n" . $info . "\n";
174
+            $info = "\n".$info."\n";
175 175
         }
176 176
 
177 177
         $body = \str_replace('{BODY}', \html_entity_decode($contact['contact_message'], \ENT_QUOTES, 'UTF-8'), _MD_CONTACT_MAIL_BODY);
@@ -204,28 +204,28 @@  discard block
 block discarded – undo
204 204
 
205 205
         $info = '';
206 206
         if ($contact['contact_url']) {
207
-            $info .= _MD_CONTACT_URL . ': ' . $contact['contact_url'] . "\n";
207
+            $info .= _MD_CONTACT_URL.': '.$contact['contact_url']."\n";
208 208
         }
209 209
         if ($contact['contact_icq']) {
210
-            $info .= _MD_CONTACT_ICQ . ': ' . $contact['contact_icq'] . "\n";
210
+            $info .= _MD_CONTACT_ICQ.': '.$contact['contact_icq']."\n";
211 211
         }
212 212
         if ($contact['contact_skype']) {
213
-            $info .= _MD_CONTACT_SKYPE . ': ' . $contact['contact_skype'] . "\n";
213
+            $info .= _MD_CONTACT_SKYPE.': '.$contact['contact_skype']."\n";
214 214
         }
215 215
         if ($contact['contact_phone']) {
216
-            $info .= _MD_CONTACT_PHONE . ': ' . $contact['contact_phone'] . "\n";
216
+            $info .= _MD_CONTACT_PHONE.': '.$contact['contact_phone']."\n";
217 217
         }
218 218
         if ($contact['contact_company']) {
219
-            $info .= _MD_CONTACT_COMPANY . ': ' . $contact['contact_company'] . "\n";
219
+            $info .= _MD_CONTACT_COMPANY.': '.$contact['contact_company']."\n";
220 220
         }
221 221
         if ($contact['contact_location']) {
222
-            $info .= _MD_CONTACT_LOCATION . ': ' . $contact['contact_location'] . "\n";
222
+            $info .= _MD_CONTACT_LOCATION.': '.$contact['contact_location']."\n";
223 223
         }
224 224
         if ($contact['contact_address']) {
225
-            $info .= _MD_CONTACT_ADDRESS . ': ' . $contact['contact_address'] . "\n";
225
+            $info .= _MD_CONTACT_ADDRESS.': '.$contact['contact_address']."\n";
226 226
         }
227 227
         if ('' !== $info) {
228
-            $info = "\n" . $info . "\n";
228
+            $info = "\n".$info."\n";
229 229
         }
230 230
 
231 231
         $body = \str_replace('{NAME}', \html_entity_decode($contact['contact_name'], \ENT_QUOTES, 'UTF-8'), _MD_CONTACT_MAILCONFIRM_BODY);
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
         $criteria = new \CriteriaCompo();
312 312
         $criteria->add(new \Criteria('contact_cid', $contact_id));
313 313
         $criteria->add(new \Criteria('contact_type', 'Contact'));
314
-        $contacts =& $this->getObjects($criteria, false);
314
+        $contacts = & $this->getObjects($criteria, false);
315 315
         if ($contacts) {
316 316
             $ret = [];
317 317
             /** @var Contact $root */
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         $criteria->setOrder($contact['order']);
343 343
         $criteria->setStart($contact['start']);
344 344
         $criteria->setLimit($contact['limit']);
345
-        $contacts =& $this->getObjects($criteria, false);
345
+        $contacts = & $this->getObjects($criteria, false);
346 346
         if ($contacts) {
347 347
             /** @var Contact $root */
348 348
             foreach ($contacts as $root) {
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
         }
483 483
         $criteria->setSort('contact_create');
484 484
         $criteria->setOrder('DESC');
485
-        $contacts =& $this->getObjects($criteria, false);
485
+        $contacts = & $this->getObjects($criteria, false);
486 486
         if ($contacts) {
487 487
             /** @var Contact $root */
488 488
             foreach ($contacts as $root) {
Please login to merge, or discard this patch.