Completed
Pull Request — master (#44)
by
unknown
18s
created
_test/syntax_include_deep.test.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         global $conf;
34 34
         $conf['allowdebug'] = 1;
35 35
 
36
-        TestUtils::rcopy(TMP_DIR, dirname(__FILE__) . '/data/');
36
+        TestUtils::rcopy(TMP_DIR, dirname(__FILE__).'/data/');
37 37
 
38 38
         dbglog("\nset up class syntax_plugin_backlinks_test");
39 39
     }
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 
53 53
         $verbose = false;
54 54
         $force   = false;
55
-        foreach($data as $val) {
55
+        foreach ($data as $val) {
56 56
             idx_addPage($val['id'], $verbose, $force);
57 57
         }
58 58
 
59
-        if($conf['allowdebug']) {
60
-            touch(DOKU_TMP_DATA . 'cache/debug.log');
59
+        if ($conf['allowdebug']) {
60
+            touch(DOKU_TMP_DATA.'cache/debug.log');
61 61
         }
62 62
     }
63 63
 
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
 
67 67
         global $conf;
68 68
         // try to get the debug log after running the test, print and clear
69
-        if($conf['allowdebug']) {
69
+        if ($conf['allowdebug']) {
70 70
             print "\n";
71
-            readfile(DOKU_TMP_DATA . 'cache/debug.log');
72
-            unlink(DOKU_TMP_DATA . 'cache/debug.log');
71
+            readfile(DOKU_TMP_DATA.'cache/debug.log');
72
+            unlink(DOKU_TMP_DATA.'cache/debug.log');
73 73
         }
74 74
     }
75 75
 
Please login to merge, or discard this patch.
_test/general.test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * Simple test to make sure the plugin.info.txt is in correct format
30 30
      */
31 31
     public function test_plugininfo(): void {
32
-        $file = __DIR__ . '/../plugin.info.txt';
32
+        $file = __DIR__.'/../plugin.info.txt';
33 33
         $this->assertFileExists($file);
34 34
 
35 35
         $info = confToHash($file);
Please login to merge, or discard this patch.
_test/syntax.test.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         global $conf;
34 34
         $conf['allowdebug'] = 1;
35 35
 
36
-        TestUtils::rcopy(TMP_DIR, dirname(__FILE__) . '/data/');
36
+        TestUtils::rcopy(TMP_DIR, dirname(__FILE__).'/data/');
37 37
 
38 38
         dbglog("\nset up class syntax_plugin_backlinks_test");
39 39
     }
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
 
53 53
         $verbose = false;
54 54
         $force   = false;
55
-        foreach($data as $val) {
55
+        foreach ($data as $val) {
56 56
             idx_addPage($val['id'], $verbose, $force);
57 57
         }
58 58
         //idx_addPage('bob_ross_says', $verbose, $force);
59 59
         //idx_addPage('link', $verbose, $force);
60 60
         //idx_addPage('backlinks_syntax', $verbose, $force);
61
-        if($conf['allowdebug']) {
62
-            touch(DOKU_TMP_DATA . 'cache/debug.log');
61
+        if ($conf['allowdebug']) {
62
+            touch(DOKU_TMP_DATA.'cache/debug.log');
63 63
         }
64 64
     }
65 65
 
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
 
69 69
         global $conf;
70 70
         // try to get the debug log after running the test, print and clear
71
-        if($conf['allowdebug']) {
71
+        if ($conf['allowdebug']) {
72 72
             print "\n";
73
-            readfile(DOKU_TMP_DATA . 'cache/debug.log');
74
-            unlink(DOKU_TMP_DATA . 'cache/debug.log');
73
+            readfile(DOKU_TMP_DATA.'cache/debug.log');
74
+            unlink(DOKU_TMP_DATA.'cache/debug.log');
75 75
         }
76 76
     }
77 77
 
Please login to merge, or discard this patch.
_test/syntax_exclude.test.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         global $conf;
34 34
         $conf['allowdebug'] = 1;
35 35
 
36
-        TestUtils::rcopy(TMP_DIR, dirname(__FILE__) . '/data/');
36
+        TestUtils::rcopy(TMP_DIR, dirname(__FILE__).'/data/');
37 37
 
38 38
         dbglog("\nset up class syntax_plugin_backlinks_test");
39 39
     }
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 
53 53
         $verbose = false;
54 54
         $force   = false;
55
-        foreach($data as $val) {
55
+        foreach ($data as $val) {
56 56
             idx_addPage($val['id'], $verbose, $force);
57 57
         }
58 58
 
59
-        if($conf['allowdebug']) {
60
-            touch(DOKU_TMP_DATA . 'cache/debug.log');
59
+        if ($conf['allowdebug']) {
60
+            touch(DOKU_TMP_DATA.'cache/debug.log');
61 61
         }
62 62
     }
63 63
 
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
 
67 67
         global $conf;
68 68
         // try to get the debug log after running the test, print and clear
69
-        if($conf['allowdebug']) {
69
+        if ($conf['allowdebug']) {
70 70
             print "\n";
71
-            readfile(DOKU_TMP_DATA . 'cache/debug.log');
72
-            unlink(DOKU_TMP_DATA . 'cache/debug.log');
71
+            readfile(DOKU_TMP_DATA.'cache/debug.log');
72
+            unlink(DOKU_TMP_DATA.'cache/debug.log');
73 73
         }
74 74
     }
75 75
 
Please login to merge, or discard this patch.
_test/syntax_include.test.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         global $conf;
34 34
         $conf['allowdebug'] = 1;
35 35
 
36
-        TestUtils::rcopy(TMP_DIR, dirname(__FILE__) . '/data/');
36
+        TestUtils::rcopy(TMP_DIR, dirname(__FILE__).'/data/');
37 37
 
38 38
         dbglog("\nset up class syntax_plugin_backlinks_test");
39 39
     }
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 
53 53
         $verbose = false;
54 54
         $force   = false;
55
-        foreach($data as $val) {
55
+        foreach ($data as $val) {
56 56
             idx_addPage($val['id'], $verbose, $force);
57 57
         }
58 58
 
59
-        if($conf['allowdebug']) {
60
-            touch(DOKU_TMP_DATA . 'cache/debug.log');
59
+        if ($conf['allowdebug']) {
60
+            touch(DOKU_TMP_DATA.'cache/debug.log');
61 61
         }
62 62
     }
63 63
 
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
 
67 67
         global $conf;
68 68
         // try to get the debug log after running the test, print and clear
69
-        if($conf['allowdebug']) {
69
+        if ($conf['allowdebug']) {
70 70
             print "\n";
71
-            readfile(DOKU_TMP_DATA . 'cache/debug.log');
72
-            unlink(DOKU_TMP_DATA . 'cache/debug.log');
71
+            readfile(DOKU_TMP_DATA.'cache/debug.log');
72
+            unlink(DOKU_TMP_DATA.'cache/debug.log');
73 73
         }
74 74
     }
75 75
 
Please login to merge, or discard this patch.
syntax.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $excludeNS = '';
75 75
         if (strstr($match, "#")) {
76 76
             [$includeNS, $excludeNS] = explode('!', substr(strstr($match, "#", false), 1).'!');
77
-            $match     = strstr($match, "#", true);
77
+            $match = strstr($match, "#", true);
78 78
         }
79 79
 
80 80
         return ([$match, $includeNS, $excludeNS]);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
             dbglog($backlinks, "backlinks: all backlinks to: $match");
111 111
 
112
-            $renderer->doc .= '<div id="plugin__backlinks">' . "\n";
112
+            $renderer->doc .= '<div id="plugin__backlinks">'."\n";
113 113
 
114 114
             $filterNS = $data[1];
115 115
             if (!empty($backlinks) && !empty($filterNS)) {
@@ -141,16 +141,16 @@  discard block
 block discarded – undo
141 141
                         $name = $backlink;
142 142
                     }
143 143
                     $renderer->doc .= '<li><div class="li">';
144
-                    $renderer->doc .= html_wikilink(':' . $backlink, $name);
145
-                    $renderer->doc .= '</div></li>' . "\n";
144
+                    $renderer->doc .= html_wikilink(':'.$backlink, $name);
145
+                    $renderer->doc .= '</div></li>'."\n";
146 146
                 }
147 147
 
148
-                $renderer->doc .= '</ul>' . "\n";
148
+                $renderer->doc .= '</ul>'."\n";
149 149
             } else {
150
-                $renderer->doc .= "<strong>Plugin Backlinks: " . $lang['nothingfound'] . "</strong>" . "\n";
150
+                $renderer->doc .= "<strong>Plugin Backlinks: ".$lang['nothingfound']."</strong>"."\n";
151 151
             }
152 152
 
153
-            $renderer->doc .= '</div>' . "\n";
153
+            $renderer->doc .= '</div>'."\n";
154 154
 
155 155
             return true;
156 156
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,8 +121,9 @@
 block discarded – undo
121 121
             }
122 122
             $excludeNS = $data[2];
123 123
             if (!empty($backlinks) && !empty($excludeNS)) {
124
-                if ($excludeNS == '.')
125
-                    $excludeNS = cleanID(getID());
124
+                if ($excludeNS == '.') {
125
+                                    $excludeNS = cleanID(getID());
126
+                }
126 127
                 dbglog($filterNS, "backlinks: exluding all of namespace: $excludeNS");
127 128
                 $backlinks = array_filter(
128 129
                     $backlinks,
Please login to merge, or discard this patch.