@@ -34,7 +34,7 @@ |
||
34 | 34 | public static function eventCoreServiceLocateQrcode(Provider $provider) |
35 | 35 | { |
36 | 36 | if (is_a($provider, '\Xoops\Core\Service\Provider')) { |
37 | - $path = dirname(__DIR__) . '/class/QrcodeProvider.php'; |
|
37 | + $path = dirname(__DIR__).'/class/QrcodeProvider.php'; |
|
38 | 38 | require $path; |
39 | 39 | $object = new QrcodeProvider(); |
40 | 40 | $provider->register($object); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | */ |
22 | 22 | |
23 | 23 | // this is located in include, otherwise normal/anon users do not have authority to run |
24 | -include dirname(dirname(dirname(__DIR__))) . '/mainfile.php'; |
|
24 | +include dirname(dirname(dirname(__DIR__))).'/mainfile.php'; |
|
25 | 25 | |
26 | 26 | $xoops = Xoops::getInstance(); |
27 | 27 | $xoops->logger()->quiet(); |
@@ -69,11 +69,11 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | $mimetype = \Xoops\Core\MimeTypes::findType('png'); |
72 | -$expires = 60*60*24*15; // seconds, minutes, hours, days |
|
73 | -header("Cache-Control: public, max-age=" . $expires); |
|
74 | -header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $expires) . ' GMT'); |
|
72 | +$expires = 60 * 60 * 24 * 15; // seconds, minutes, hours, days |
|
73 | +header("Cache-Control: public, max-age=".$expires); |
|
74 | +header('Expires: '.gmdate('D, d M Y H:i:s', time() + $expires).' GMT'); |
|
75 | 75 | //header('Last-Modified: ' . gmdate('D, d M Y H:i:s T', $mtime)); |
76 | -header('Content-type: ' . $mimetype); |
|
76 | +header('Content-type: '.$mimetype); |
|
77 | 77 | echo $qrData; |
78 | 78 | exit; |
79 | 79 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | { |
64 | 64 | $xoops = \Xoops::getInstance(); |
65 | 65 | $params = array( |
66 | - 'text' => (string) $qrText, |
|
66 | + 'text' => (string)$qrText, |
|
67 | 67 | ); |
68 | 68 | $url = $xoops->buildUrl($xoops->url($this->renderScript), $params); |
69 | 69 | return $url; |
@@ -17,10 +17,10 @@ |
||
17 | 17 | * @author XOOPS Development Team |
18 | 18 | */ |
19 | 19 | |
20 | -include_once __DIR__ . '/admin_header.php'; |
|
20 | +include_once __DIR__.'/admin_header.php'; |
|
21 | 21 | |
22 | 22 | $moduleAdmin = new \Xoops\Module\Admin(); |
23 | 23 | $moduleAdmin->displayNavigation('about.php'); |
24 | 24 | $moduleAdmin->displayAbout(true); |
25 | 25 | |
26 | -include_once __DIR__ . '/admin_footer.php'; |
|
26 | +include_once __DIR__.'/admin_footer.php'; |
@@ -17,22 +17,22 @@ |
||
17 | 17 | * @author XOOPS Development Team |
18 | 18 | */ |
19 | 19 | |
20 | -$adminmenu=array(); |
|
20 | +$adminmenu = array(); |
|
21 | 21 | |
22 | 22 | $adminmenu[] = array( |
23 | - 'title' => _MI_MONOLOG_ADMENU1 , |
|
24 | - 'link' => 'admin/index.php' , |
|
23 | + 'title' => _MI_MONOLOG_ADMENU1, |
|
24 | + 'link' => 'admin/index.php', |
|
25 | 25 | 'icon' => 'home.png' |
26 | -) ; |
|
26 | +); |
|
27 | 27 | |
28 | 28 | $adminmenu[] = array( |
29 | - 'title' => _MI_MONOLOG_ADMENU2 , |
|
30 | - 'link' => 'admin/about.php' , |
|
29 | + 'title' => _MI_MONOLOG_ADMENU2, |
|
30 | + 'link' => 'admin/about.php', |
|
31 | 31 | 'icon' => 'about.png' |
32 | -) ; |
|
32 | +); |
|
33 | 33 | |
34 | 34 | $adminmenu[] = array( |
35 | - 'title' => _MI_MONOLOG_ADMENU3 , |
|
36 | - 'link' => 'admin/permissions.php' , |
|
35 | + 'title' => _MI_MONOLOG_ADMENU3, |
|
36 | + 'link' => 'admin/permissions.php', |
|
37 | 37 | 'icon' => 'permissions.png' |
38 | -) ; |
|
38 | +); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | use Xmf\Module\Helper; |
22 | 22 | use Xmf\Module\Helper\Permission; |
23 | 23 | |
24 | -include_once __DIR__ . '/admin_header.php'; |
|
24 | +include_once __DIR__.'/admin_header.php'; |
|
25 | 25 | |
26 | 26 | $moduleAdmin = new \Xoops\Module\Admin(); |
27 | 27 | $moduleAdmin->displayNavigation('permissions.php'); |
@@ -30,13 +30,13 @@ discard block |
||
30 | 30 | $permHelper = new Permission(); |
31 | 31 | if ($permHelper) { |
32 | 32 | // this is the name and item we are going to work with |
33 | - $gperm_name='use_monolog'; |
|
34 | - $gperm_itemid=0; |
|
33 | + $gperm_name = 'use_monolog'; |
|
34 | + $gperm_itemid = 0; |
|
35 | 35 | |
36 | 36 | // if this is a post operation get our variables |
37 | - if ('POST'===Request::getMethod()) { |
|
38 | - $name=$permHelper->defaultFieldName($gperm_name, $gperm_itemid); |
|
39 | - $groups=Request::getVar($name, array(), 'POST'); |
|
37 | + if ('POST' === Request::getMethod()) { |
|
38 | + $name = $permHelper->defaultFieldName($gperm_name, $gperm_itemid); |
|
39 | + $groups = Request::getVar($name, array(), 'POST'); |
|
40 | 40 | $permHelper->savePermissionForItem($gperm_name, $gperm_itemid, $groups); |
41 | 41 | echo $xoops->alert('success', _MA_MONOLOG_FORM_PROCESSED, _MA_MONOLOG_PERMISSION_FORM); |
42 | 42 | } |
@@ -56,4 +56,4 @@ discard block |
||
56 | 56 | echo $form->render(); |
57 | 57 | } |
58 | 58 | |
59 | -include_once __DIR__ . '/admin_footer.php'; |
|
59 | +include_once __DIR__.'/admin_footer.php'; |
@@ -17,6 +17,6 @@ |
||
17 | 17 | * @author XOOPS Development Team |
18 | 18 | */ |
19 | 19 | |
20 | -require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
20 | +require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
|
21 | 21 | $xoops = Xoops::getInstance(); |
22 | 22 | $xoops->header(); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team |
18 | 18 | */ |
19 | 19 | |
20 | -include_once __DIR__ . '/admin_header.php'; |
|
20 | +include_once __DIR__.'/admin_header.php'; |
|
21 | 21 | |
22 | 22 | $moduleAdmin = new \Xoops\Module\Admin(); |
23 | 23 | $moduleAdmin->displayNavigation('index.php'); |
@@ -25,4 +25,4 @@ discard block |
||
25 | 25 | $moduleAdmin->addConfigBoxLine($path, 'folder'); |
26 | 26 | $moduleAdmin->displayIndex(); |
27 | 27 | |
28 | -include_once __DIR__ . '/admin_footer.php'; |
|
28 | +include_once __DIR__.'/admin_footer.php'; |
@@ -154,7 +154,7 @@ |
||
154 | 154 | 'description' => '', |
155 | 155 | 'formtype' => 'textbox', |
156 | 156 | 'valuetype' => 'text', |
157 | - 'default' => \XoopsBaseConfig::get('var-path') . '/logs/xoops_monolog.log', |
|
157 | + 'default' => \XoopsBaseConfig::get('var-path').'/logs/xoops_monolog.log', |
|
158 | 158 | 'options' => array(), |
159 | 159 | ); |
160 | 160 |