Completed
Push — master ( b30145...bf64cd )
by Mark
9s
created
_test/syntax_include_deep.test.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                             1,
89 89
                             pq('#plugin__backlinks', $doc)->length,
90 90
                             'There should be one backlinks element'
91
-                           );
91
+                            );
92 92
 
93 93
         $wikilinks = pq('#plugin__backlinks ul li', $doc);
94 94
         dbglog($wikilinks->text(), 'found backlinks');
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                             1,
97 97
                             $wikilinks->contents()->length,
98 98
                             'There should be 1 backlink'
99
-                           );
99
+                            );
100 100
 
101 101
         $lastlink = pq('a:last',$wikilinks);
102 102
         dbglog($lastlink->text(),"last backlink");
@@ -104,6 +104,6 @@  discard block
 block discarded – undo
104 104
                             $lastlink->text(),
105 105
                             'An included link to Bob Ross',
106 106
                             'The last backlink should be "An included link to Bob Ross"'
107
-                           );
107
+                            );
108 108
     }
109 109
 }
Please login to merge, or discard this 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.