@@ -28,6 +28,6 @@ |
||
28 | 28 | */ |
29 | 29 | public static function eventCoreIncludeCommonEnd($args) |
30 | 30 | { |
31 | - require_once __DIR__ . '/autoloader.php'; |
|
31 | + require_once __DIR__.'/autoloader.php'; |
|
32 | 32 | } |
33 | 33 | } |
@@ -4,12 +4,12 @@ discard block |
||
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 = dirname(__DIR__) . '/class/'; |
|
12 | + $baseDir = dirname(__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 |
||
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)) { |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
26 | 26 | |
27 | -require_once __DIR__ . '/preloads/autoloader.php'; |
|
27 | +require_once __DIR__.'/preloads/autoloader.php'; |
|
28 | 28 | |
29 | 29 | $moduleDirName = basename(__DIR__); |
30 | 30 | $moduleDirNameUpper = mb_strtoupper($moduleDirName); |
@@ -176,8 +176,8 @@ discard block |
||
176 | 176 | */ |
177 | 177 | $modversion['config'][] = [ |
178 | 178 | 'name' => 'displaySampleButton', |
179 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', |
|
180 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', |
|
179 | + 'title' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', |
|
180 | + 'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC', |
|
181 | 181 | 'formtype' => 'yesno', |
182 | 182 | 'valuetype' => 'int', |
183 | 183 | 'default' => 1, |
@@ -188,8 +188,8 @@ discard block |
||
188 | 188 | */ |
189 | 189 | $modversion['config'][] = [ |
190 | 190 | 'name' => 'displayDeveloperTools', |
191 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', |
|
192 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', |
|
191 | + 'title' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS', |
|
192 | + 'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC', |
|
193 | 193 | 'formtype' => 'yesno', |
194 | 194 | 'valuetype' => 'int', |
195 | 195 | 'default' => 0, |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | /** @var Xoopsfaq\ContentsHandler $contentsHandler */ |
32 | 32 | /** @var Xoopsfaq\Helper $helper */ |
33 | 33 | |
34 | -require_once __DIR__ . '/header.php'; |
|
34 | +require_once __DIR__.'/header.php'; |
|
35 | 35 | |
36 | 36 | $moduleDirName = basename(__DIR__); |
37 | 37 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | 'answer' => $obj->getVar('contents_contents'), |
80 | 80 | ]; |
81 | 81 | $GLOBALS['xoopsTpl']->append('questions', $question); |
82 | - $bodyWords .= ' ' . $obj->getVar('contents_title') . ' ' . $obj->getVar('contents_contents'); |
|
82 | + $bodyWords .= ' '.$obj->getVar('contents_title').' '.$obj->getVar('contents_contents'); |
|
83 | 83 | } |
84 | 84 | $keywords = Xmf\Metagen::generateKeywords($bodyWords); |
85 | 85 | Xmf\Metagen::assignKeywords($keywords); |
@@ -111,11 +111,11 @@ discard block |
||
111 | 111 | foreach ($objects['list'] as $object) { |
112 | 112 | // only list categories and/or FAQs if user has rights |
113 | 113 | if (false !== $permHelper->checkPermission('viewcat', $object->getVar('category_id'))) { |
114 | - $category = [ |
|
114 | + $category = [ |
|
115 | 115 | 'id' => $object->getVar('category_id'), |
116 | 116 | 'name' => $object->getVar('category_title'), |
117 | 117 | ]; |
118 | - $bodyWords .= ' ' . $object->getVar('category_title'); |
|
118 | + $bodyWords .= ' '.$object->getVar('category_title'); |
|
119 | 119 | $contentsObj = $contentsHandler->getPublished($object->getVar('category_id')); |
120 | 120 | if ($contentsObj['count']) { |
121 | 121 | $category['questions'] = []; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | 'link' => $content->getVar('contents_id'), |
126 | 126 | 'title' => $content->getVar('contents_title'), |
127 | 127 | ]; |
128 | - $bodyWords .= ' ' . $content->getVar('contents_title'); |
|
128 | + $bodyWords .= ' '.$content->getVar('contents_title'); |
|
129 | 129 | } |
130 | 130 | } |
131 | 131 | $GLOBALS['xoopsTpl']->append_by_ref('categories', $category); |
@@ -136,4 +136,4 @@ discard block |
||
136 | 136 | Xmf\Metagen::assignKeywords($keywords); |
137 | 137 | } |
138 | 138 | } |
139 | -require __DIR__ . '/footer.php'; |
|
139 | +require __DIR__.'/footer.php'; |
@@ -23,6 +23,6 @@ |
||
23 | 23 | * @see \XoopsModules\Xoopsfaq\Helper; |
24 | 24 | */ |
25 | 25 | |
26 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
26 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
27 | 27 | |
28 | 28 | $helper = \XoopsModules\Xoopsfaq\Helper::getInstance(); |
@@ -21,5 +21,5 @@ |
||
21 | 21 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License |
22 | 22 | */ |
23 | 23 | |
24 | -require dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
24 | +require dirname(dirname(__DIR__)).'/mainfile.php'; |
|
25 | 25 | require $GLOBALS['xoops']->path('include/comment_delete.php'); |