Completed
Pull Request — master (#10)
by Mark
01:59
created
_test/syntax_include_deep.test.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * copy data and add pages to the index.
30 30
      */
31
-    public static function setUpBeforeClass(){
31
+    public static function setUpBeforeClass() {
32 32
         parent::setUpBeforeClass();
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,13 +52,13 @@  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']) {
61
+        if ($conf['allowdebug']) {
62 62
             touch(DOKU_TMP_DATA.'cache/debug.log');
63 63
         }
64 64
     }
@@ -68,7 +68,7 @@  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 73
             readfile(DOKU_TMP_DATA.'cache/debug.log');
74 74
             unlink(DOKU_TMP_DATA.'cache/debug.log');
@@ -137,8 +137,8 @@  discard block
 block discarded – undo
137 137
                             'There should be 4 backlinks'
138 138
                            );
139 139
 
140
-        $lastlink = pq('a:last',$wikilinks);
141
-        dbglog($lastlink->text(),"last backlink");
140
+        $lastlink = pq('a:last', $wikilinks);
141
+        dbglog($lastlink->text(), "last backlink");
142 142
         $this->assertEquals(
143 143
                             $lastlink->text(),
144 144
                             'A link to Bob Ross',
Please login to merge, or discard this patch.