Completed
Pull Request — master (#144)
by Michael
03:03
created
class/Files/Assets/Css/CssSelectors.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,14 +69,14 @@
 block discarded – undo
69 69
     {
70 70
         $ret = '';
71 71
         if (is_array($selector)) {
72
-            $ret .= $t . implode("\n", $selector) . ' {';
72
+            $ret .= $t.implode("\n", $selector).' {';
73 73
         } else {
74
-            $ret .= $selector . ' {';
74
+            $ret .= $selector.' {';
75 75
         }
76 76
         if (is_array($content)) {
77
-            $ret .= $t . implode("\n", $content) . ';';
77
+            $ret .= $t.implode("\n", $content).';';
78 78
         } else {
79
-            $ret .= $content . ';';
79
+            $ret .= $content.';';
80 80
         }
81 81
         $ret = '}';
82 82
 
Please login to merge, or discard this patch.
class/Files/Templates/user/Header.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,10 +81,10 @@
 block discarded – undo
81 81
      */
82 82
     public function getTemplatesUserHeader($moduleDirname)
83 83
     {
84
-        $ret = $this->htmlcode->getSmartyIncludeFile($moduleDirname, 'breadcrumbs', false, true) . PHP_EOL;
84
+        $ret = $this->htmlcode->getSmartyIncludeFile($moduleDirname, 'breadcrumbs', false, true).PHP_EOL;
85 85
         $var = $this->htmlcode->getSmartySingleVar('ads');
86
-        $div = $this->htmlcode->getHtmlDiv($var, 'center') . PHP_EOL;
87
-        $ret .= $this->htmlcode->getSmartyConditions('ads', ' != ', '\'\'', $div) . PHP_EOL;
86
+        $div = $this->htmlcode->getHtmlDiv($var, 'center').PHP_EOL;
87
+        $ret .= $this->htmlcode->getSmartyConditions('ads', ' != ', '\'\'', $div).PHP_EOL;
88 88
 
89 89
         return $ret;
90 90
     }
Please login to merge, or discard this patch.
class/Files/CreateHtmlSmartyCodes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         $str = '';
93 93
         foreach ($attributes as $name => $value) {
94 94
             if ('_' !== $name) {
95
-                $str .= ' ' . $name . '="' . $value . '"';
95
+                $str .= ' '.$name.'="'.$value.'"';
96 96
             }
97 97
         }
98 98
 
Please login to merge, or discard this patch.
class/Files/Language/LanguageHelp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,9 +110,9 @@
 block discarded – undo
110 110
 </div>
111 111
 EOT;
112 112
         if ('english' !== $language) {
113
-            $this->create($moduleDirname, 'language/' . $language . '/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
113
+            $this->create($moduleDirname, 'language/'.$language.'/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
114 114
         }
115
-        $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'] . '/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
115
+        $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'].'/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
116 116
 
117 117
         return $this->renderFile();
118 118
     }
Please login to merge, or discard this patch.
class/Files/Language/LanguageMailTpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
 webmaster
102 102
 {X_ADMINMAIL}
103 103
 EOT;
104
-        $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'] . '/mail_template', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
104
+        $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'].'/mail_template', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
105 105
 
106 106
         return $this->renderFile();
107 107
     }
Please login to merge, or discard this patch.
class/Form/SimpleForm.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,16 +41,16 @@
 block discarded – undo
41 41
      */
42 42
     public function render()
43 43
     {
44
-        $ret = ($this->getTitle() ? '<div class=" center head ">' . $this->getTitle() . '</div>' : '');
45
-        $ret .= '<form name="' . $this->getName() . '" id="' . $this->getName() . '" action="' . $this->getAction() . '" method="' . $this->getMethod() . '"' . $this->getExtra() . '>' . NWLINE;
44
+        $ret = ($this->getTitle() ? '<div class=" center head ">'.$this->getTitle().'</div>' : '');
45
+        $ret .= '<form name="'.$this->getName().'" id="'.$this->getName().'" action="'.$this->getAction().'" method="'.$this->getMethod().'"'.$this->getExtra().'>'.NWLINE;
46 46
         foreach ($this->getElements() as $ele) {
47 47
             if (!$ele->isHidden()) {
48
-                $ret .= '<div class="' . $ele->getClass() . '"><strong>' . $ele->getCaption() . '</strong>' . $ele->render() . '</div>' . NWLINE;
48
+                $ret .= '<div class="'.$ele->getClass().'"><strong>'.$ele->getCaption().'</strong>'.$ele->render().'</div>'.NWLINE;
49 49
             } else {
50 50
                 $ret .= $ele->render();
51 51
             }
52 52
         }
53
-        $ret .= NWLINE . '</form>';
53
+        $ret .= NWLINE.'</form>';
54 54
 
55 55
         return $ret;
56 56
     }
Please login to merge, or discard this patch.
class/Form/FormRadio.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
                 }
52 52
                 $ret .= '<td class="radio">';
53 53
             }
54
-            $ret .= '<input type="radio" name="' . $ele_name . '" id="' . $ele_name . '[' . $value . ']' . $id_ele . '" title = "' . htmlspecialchars($ele_title, ENT_QUOTES) . '" value="' . htmlspecialchars($value, ENT_QUOTES) . '"';
54
+            $ret .= '<input type="radio" name="'.$ele_name.'" id="'.$ele_name.'['.$value.']'.$id_ele.'" title = "'.htmlspecialchars($ele_title, ENT_QUOTES).'" value="'.htmlspecialchars($value, ENT_QUOTES).'"';
55 55
             if (isset($ele_value) && $value == $ele_value) {
56 56
                 $ret .= ' checked';
57 57
             }
58
-            $ret .= $ele_extra . ' />' . "<label name='xolb_{$ele_name}' for='" . $ele_name . '[' . $value . ']' . $id_ele . "'><span><span></span></span>" . $name . '</label>' . $ele_delimeter;
58
+            $ret .= $ele_extra.' />'."<label name='xolb_{$ele_name}' for='".$ele_name.'['.$value.']'.$id_ele."'><span><span></span></span>".$name.'</label>'.$ele_delimeter;
59 59
             if (!empty($this->columns)) {
60 60
                 $ret .= '</td>';
61 61
                 if (0 == ++$i % $this->columns) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         if (!empty($this->columns)) {
67 67
             $span = $i % $this->columns;
68 68
             if ($span) {
69
-                $ret .= '<td colspan="' . ($this->columns - $span) . '"></td></tr>';
69
+                $ret .= '<td colspan="'.($this->columns - $span).'"></td></tr>';
70 70
             }
71 71
             $ret .= '</table>';
72 72
         }
Please login to merge, or discard this patch.
preloads/autoloader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@  discard block
 block discarded – undo
4 4
  * @see http://www.php-fig.org/psr/psr-4/examples/
5 5
  */
6 6
 spl_autoload_register(
7
-    static function ($class) {
7
+    static function($class) {
8 8
         // project-specific namespace prefix
9
-        $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__)));
9
+        $prefix = 'XoopsModules\\'.ucfirst(basename(dirname(__DIR__)));
10 10
 
11 11
         // base directory for the namespace prefix
12
-        $baseDir = __DIR__ . '/../class/';
12
+        $baseDir = __DIR__.'/../class/';
13 13
 
14 14
         // does the class use the namespace prefix?
15 15
         $len = mb_strlen($prefix);
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         // replace the namespace prefix with the base directory, replace namespace
25 25
         // separators with directory separators in the relative class name, append
26 26
         // with .php
27
-        $file = $baseDir . str_replace('\\', '/', $relativeClass) . '.php';
27
+        $file = $baseDir.str_replace('\\', '/', $relativeClass).'.php';
28 28
 
29 29
         // if the file exists, require it
30 30
         if (file_exists($file)) {
Please login to merge, or discard this patch.
admin/building.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,16 +25,16 @@  discard block
 block discarded – undo
25 25
  */
26 26
 $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_building.tpl';
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 $op        = \Xmf\Request::getString('op', 'default');
30 30
 $mid       = \Xmf\Request::getInt('mod_id');
31 31
 $moduleObj = $helper->getHandler('Modules')->get($mid);
32
-$cachePath = XOOPS_VAR_PATH . '/caches/tdmcreate_cache';
32
+$cachePath = XOOPS_VAR_PATH.'/caches/tdmcreate_cache';
33 33
 // Clear cache
34
-if (file_exists($cache = $cachePath . '/classpaths.cache')) {
34
+if (file_exists($cache = $cachePath.'/classpaths.cache')) {
35 35
     unlink($cache);
36 36
 }
37
-if (!file_exists($indexFile = $cachePath . '/index.html')) {
37
+if (!file_exists($indexFile = $cachePath.'/index.html')) {
38 38
     copy('index.html', $indexFile);
39 39
 }
40 40
 // Switch option
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
         // Get var module dirname
46 46
         $moduleDirname = $moduleObj->getVar('mod_dirname');
47 47
         // Directories for copy from to
48
-        $fromDir = TDMC_UPLOAD_REPOSITORY_PATH . '/' . mb_strtolower($moduleDirname);
49
-        $toDir   = XOOPS_ROOT_PATH . '/modules/' . mb_strtolower($moduleDirname);
48
+        $fromDir = TDMC_UPLOAD_REPOSITORY_PATH.'/'.mb_strtolower($moduleDirname);
49
+        $toDir   = XOOPS_ROOT_PATH.'/modules/'.mb_strtolower($moduleDirname);
50 50
         // include_once TDMC_CLASS_PATH . '/building.php';
51 51
         if (isset($moduleDirname)) {
52 52
             // Clear this module if it's in repository
@@ -108,4 +108,4 @@  discard block
 block discarded – undo
108 108
         $GLOBALS['xoopsTpl']->assign('form', $form->render());
109 109
         break;
110 110
 }
111
-include __DIR__ . '/footer.php';
111
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.