Completed
Branch master (927119)
by Michael
02:05
created
session.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,25 +21,25 @@  discard block
 block discarded – undo
21 21
 use Xmf\Module\Helper\Session;
22 22
 
23 23
 // code end
24
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
24
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
25 25
 
26
-include __DIR__ . '/include/header.php';
26
+include __DIR__.'/include/header.php';
27 27
 
28 28
 describeThis(basename(__FILE__, '.php'));
29 29
 
30 30
 // code marker
31
-echo '<h3>' . _MA_XMFDEMO_SESSION_VAR_TOGGLE . '</h3>';
31
+echo '<h3>'._MA_XMFDEMO_SESSION_VAR_TOGGLE.'</h3>';
32 32
 // toggle a session variable
33 33
 $varName = 'widget';
34 34
 $sessionHelper = new Session();
35 35
 
36 36
 $var = $sessionHelper->get($varName);
37 37
 if ($var) {
38
-    echo sprintf(_MA_XMFDEMO_SESSION_VAR_GET, $var) . '<br />';
38
+    echo sprintf(_MA_XMFDEMO_SESSION_VAR_GET, $var).'<br />';
39 39
     $sessionHelper->del($varName);
40 40
 } else {
41 41
     $var = date('Y-m-d H:i:s');
42
-    echo sprintf(_MA_XMFDEMO_SESSION_VAR_SET, $var) . '<br />';
42
+    echo sprintf(_MA_XMFDEMO_SESSION_VAR_SET, $var).'<br />';
43 43
     $sessionHelper->set($varName, $var);
44 44
 }
45 45
 
@@ -52,4 +52,4 @@  discard block
 block discarded – undo
52 52
 
53 53
 codeDump(__FILE__);
54 54
 
55
-include __DIR__ . '/include/footer.php';
55
+include __DIR__.'/include/footer.php';
Please login to merge, or discard this patch.
metagen.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,16 +21,16 @@  discard block
 block discarded – undo
21 21
 use Xmf\Metagen;
22 22
 use Xmf\Module\Helper;
23 23
 // code end
24
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
24
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
25 25
 
26
-include __DIR__ . '/include/header.php';
26
+include __DIR__.'/include/header.php';
27 27
 
28 28
 describeThis(basename(__FILE__, '.php'));
29 29
 
30 30
 // code marker
31 31
 // define some dummy content
32
-$title="xmf - the XOOPS Module Framework";
33
-$article =<<<EOT
32
+$title = "xmf - the XOOPS Module Framework";
33
+$article = <<<EOT
34 34
 XMF is Copyright © 2011-2016 The XOOPS Project
35 35
 
36 36
 This program is free software; you can redistribute it and/or modify
@@ -89,4 +89,4 @@  discard block
 block discarded – undo
89 89
 
90 90
 codeDump(__FILE__);
91 91
 
92
-include __DIR__ . '/include/footer.php';
92
+include __DIR__.'/include/footer.php';
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@  discard block
 block discarded – undo
15 15
  * @author          Richard Griffith <[email protected]>
16 16
  * @author          trabis <[email protected]>
17 17
  */
18
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
18
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
19 19
 
20
-include __DIR__ . '/include/header.php';
20
+include __DIR__.'/include/header.php';
21 21
 
22 22
 describeThis(basename(__FILE__, '.php'));
23 23
 
24 24
 $files = getFileList(__DIR__);
25 25
 
26
-echo '<h3>' . _MA_XMFDEMO_EXAMPLES . '</h3>';
26
+echo '<h3>'._MA_XMFDEMO_EXAMPLES.'</h3>';
27 27
 
28 28
 echo "<ul>\n";
29 29
 foreach ($files as $file) {
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         continue;
32 32
     }
33 33
     $name = strtoupper(basename($file, '.php'));
34
-    $defTitle = '_MA_XMFDEMO_PAGE_TITLE_' . $name;
34
+    $defTitle = '_MA_XMFDEMO_PAGE_TITLE_'.$name;
35 35
     if (defined($defTitle)) {
36 36
         $title = constant($defTitle);
37 37
         echo "<li> <a href=\"{$file}\">{$title}</a></li>\n";
@@ -39,4 +39,4 @@  discard block
 block discarded – undo
39 39
 }
40 40
 echo "</ul>\n";
41 41
 
42
-include __DIR__ . '/include/footer.php';
42
+include __DIR__.'/include/footer.php';
Please login to merge, or discard this patch.
test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 
19 19
 use Xmf\Debug;
20 20
 
21
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
22
-include __DIR__ . '/include/header.php';
21
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
22
+include __DIR__.'/include/header.php';
23 23
 describeThis(basename(__FILE__, '.php'));
24 24
 
25 25
 
@@ -27,4 +27,4 @@  discard block
 block discarded – undo
27 27
 
28 28
 
29 29
 codeDump(__FILE__);
30
-include __DIR__ . '/include/footer.php';
30
+include __DIR__.'/include/footer.php';
Please login to merge, or discard this patch.
helper.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
 use Xmf\Debug;
20 20
 use Xmf\Module\Helper;
21 21
 // code end
22
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
22
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
23 23
 
24
-include __DIR__ . '/include/header.php';
24
+include __DIR__.'/include/header.php';
25 25
 
26 26
 describeThis(basename(__FILE__, '.php'));
27 27
 
@@ -34,28 +34,28 @@  discard block
 block discarded – undo
34 34
 $helper->loadLanguage('badmanifesto'); //throws error on log because language file was not found
35 35
 
36 36
 $helper->addLog(_MA_XMFDEMO_MANIFESTO_HI);
37
-echo _MA_XMFDEMO_MANIFESTO_LOOK_AT_LOG . '<br />';
37
+echo _MA_XMFDEMO_MANIFESTO_LOOK_AT_LOG.'<br />';
38 38
 
39
-echo '<h3>' . _MA_XMFDEMO_HELPER_MODULE . '</h3>';
39
+echo '<h3>'._MA_XMFDEMO_HELPER_MODULE.'</h3>';
40 40
 Debug::dump($helper->getModule());
41
-echo 'name: ' . $helper->getModule()->getVar('name') . '<br />';
42
-echo 'mid: ' . $helper->getModule()->getVar('mid') . '<br />';
43
-echo 'version: ' . $helper->getModule()->getVar('version') . '<br />';
41
+echo 'name: '.$helper->getModule()->getVar('name').'<br />';
42
+echo 'mid: '.$helper->getModule()->getVar('mid').'<br />';
43
+echo 'version: '.$helper->getModule()->getVar('version').'<br />';
44 44
 
45
-echo '<h3>' . _MA_XMFDEMO_HELPER_CONFIG . '</h3>';
45
+echo '<h3>'._MA_XMFDEMO_HELPER_CONFIG.'</h3>';
46 46
 Debug::dump($helper->getConfig());
47 47
 
48 48
 // does not use default since it exists
49
-echo 'config1: ' . $helper->getConfig('config1', 'unused default') . '<br />';
50
-echo 'config2: ' . $helper->getConfig('config2') . '<br />';
49
+echo 'config1: '.$helper->getConfig('config1', 'unused default').'<br />';
50
+echo 'config2: '.$helper->getConfig('config2').'<br />';
51 51
 
52 52
 // throws an error on log cause config3 is missing
53
-echo 'config3: ' . $helper->getConfig('config3') . '<br />';
53
+echo 'config3: '.$helper->getConfig('config3').'<br />';
54 54
 
55 55
 // uses default this time
56
-echo 'config3: ' . $helper->getConfig('config3', 'my default') . '<br />';
56
+echo 'config3: '.$helper->getConfig('config3', 'my default').'<br />';
57 57
 
58
-echo '<h3>' . _MA_XMFDEMO_HELPER_OTHER_MODULE . '</h3>';
58
+echo '<h3>'._MA_XMFDEMO_HELPER_OTHER_MODULE.'</h3>';
59 59
 if ($otherHelper = Helper::getHelper('pm')) {
60 60
     Debug::dump($otherHelper);
61 61
     Debug::dump($otherHelper->getHandler('message'));
@@ -69,4 +69,4 @@  discard block
 block discarded – undo
69 69
 
70 70
 codeDump(__FILE__);
71 71
 
72
-include __DIR__ . '/include/footer.php';
72
+include __DIR__.'/include/footer.php';
Please login to merge, or discard this patch.
permission.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
 use Xmf\Module\Helper;
22 22
 use Xmf\Module\Helper\Permission;
23 23
 // code end
24
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
24
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
25 25
 
26
-include __DIR__ . '/include/header.php';
26
+include __DIR__.'/include/header.php';
27 27
 
28 28
 describeThis(basename(__FILE__, '.php'));
29 29
 
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
 
34 34
 if ($permHelper) {
35 35
     // this is the name and item we are going to work with
36
-    $gperm_name='xmfdemo-perm';
37
-    $gperm_itemid=1;
36
+    $gperm_name = 'xmfdemo-perm';
37
+    $gperm_itemid = 1;
38 38
 
39 39
     // if this is a post operation get and save our variables
40 40
     if ('POST' == Request::getMethod()) {
@@ -66,4 +66,4 @@  discard block
 block discarded – undo
66 66
 
67 67
 codeDump(__FILE__);
68 68
 
69
-include __DIR__ . '/include/footer.php';
69
+include __DIR__.'/include/footer.php';
Please login to merge, or discard this patch.
jwtajax.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 use Xmf\Module\Helper;
7 7
 use Xmf\Request;
8 8
 
9
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
9
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
10 10
 
11 11
 // claims we want to assert (verify)
12 12
 $assertClaims = array('aud' => basename(__FILE__));
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 }
33 33
 
34 34
 // handle normal user requests
35
-include __DIR__ . '/include/header.php';
35
+include __DIR__.'/include/header.php';
36 36
 
37 37
 $url = basename(__FILE__);
38 38
 
@@ -76,4 +76,4 @@  discard block
 block discarded – undo
76 76
 
77 77
 codeDump(__FILE__);
78 78
 
79
-include __DIR__ . '/include/footer.php';
79
+include __DIR__.'/include/footer.php';
Please login to merge, or discard this patch.
include/header.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 if (class_exists('Xoops', false)) {
4 4
     \Xoops::getInstance()->header();
5 5
 } else {
6
-    require_once XOOPS_ROOT_PATH . '/header.php';
7
-    include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
6
+    require_once XOOPS_ROOT_PATH.'/header.php';
7
+    include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
8 8
 }
9
-include __DIR__ . '/common.php';
9
+include __DIR__.'/common.php';
Please login to merge, or discard this patch.
include/footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,5 +3,5 @@
 block discarded – undo
3 3
 if (class_exists('Xoops', false)) {
4 4
     \Xoops::getInstance()->footer();
5 5
 } else {
6
-    require_once XOOPS_ROOT_PATH . '/footer.php';
6
+    require_once XOOPS_ROOT_PATH.'/footer.php';
7 7
 }
Please login to merge, or discard this patch.