Test Failed
Branch master (cb46a0)
by Marc
14:28
created
src/Inigo/Parser.php 2 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,6 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
     /**
151 151
      *
152
+     * @param string $name
152 153
      */
153 154
     public function addSetting($name, $value = '')
154 155
     {
@@ -226,6 +227,7 @@  discard block
 block discarded – undo
226 227
 
227 228
     /**
228 229
      *
230
+     * @param string $s
229 231
      */
230 232
     public function parse($s)
231 233
     {
@@ -462,7 +464,7 @@  discard block
 block discarded – undo
462 464
     /**
463 465
      * Formats whole blocks of CDATA
464 466
      *
465
-     * @param  &string $cdata
467
+     * @param  string $cdata
466 468
      * @param  boolean $outline
467 469
      * @return string
468 470
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -454,7 +454,7 @@
 block discarded – undo
454 454
             $last_tag = null;
455 455
         }
456 456
 
457
-        $e = function ($s) { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); };
457
+        $e = function($s) { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); };
458 458
 
459 459
         return $e($s);
460 460
     }
Please login to merge, or discard this patch.
src/Inigo/Tag.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -109,6 +109,7 @@
 block discarded – undo
109 109
 
110 110
     /**
111 111
      *
112
+     * @param integer $tagType
112 113
      * @return boolean
113 114
      */
114 115
     public function isOfType($tagType)
Please login to merge, or discard this patch.
src/Xml/Rule/TocRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
             $node->setAttribute('id', $identifierFormatted);
68 68
 
69 69
             if ($thisDepth > $curDepth) {
70
-                $toc .= "\n".str_repeat('  ', $thisDepth - 1)."<ul>\n";
70
+                $toc .= "\n" . str_repeat('  ', $thisDepth - 1) . "<ul>\n";
71 71
             } elseif ($i > 0) {
72 72
                 $toc .= "</li>\n";
73 73
             }
Please login to merge, or discard this patch.
src/Xml/Rule/AbstractRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             $newList = array();
108 108
 
109 109
             // Traverse the tree
110
-            $rec = function ($node) use (&$rec, &$newList, &$arrayList) {
110
+            $rec = function($node) use (&$rec, &$newList, &$arrayList) {
111 111
                 /* @var $node DOMElement */
112 112
 
113 113
                 foreach ($arrayList as $index => $compareNode) {
Please login to merge, or discard this patch.
src/Xml/Rule/ListingsRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             $caption  = (string) $node->getAttribute('caption');
48 48
 
49 49
             $file = (string) $node->getAttribute('file');
50
-            $from =  $node->getAttribute('from');
50
+            $from = $node->getAttribute('from');
51 51
             $length = $node->getAttribute('length');
52 52
 
53 53
             if ($from === '') {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                     $class = 'line';
178 178
                 }
179 179
 
180
-                $code[$i] = '<span class="'.$class.'" id="hic-svnt-dracones">'
180
+                $code[$i] = '<span class="' . $class . '" id="hic-svnt-dracones">'
181 181
                         . $code[$i]
182 182
                         . '</span>';
183 183
 
Please login to merge, or discard this patch.
src/Xml/Rule/FootnotesRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
 
176 176
             $xml .= '<li id="' . $id . '">';
177 177
             $xml .= $text;
178
-            $xml .= ' <a href="#'.$idRef.'">'."\xE2\x86\x91".'</a>';
178
+            $xml .= ' <a href="#' . $idRef . '">' . "\xE2\x86\x91" . '</a>';
179 179
             $xml .= '</li>';
180 180
 
181 181
             $i++;
Please login to merge, or discard this patch.
src/SyntaxHighlighter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function highlight($source, $language = '')
18 18
     {
19
-        $e = function ($s) {
19
+        $e = function($s) {
20 20
             return htmlspecialchars($s, ENT_QUOTES, 'UTF-8');
21 21
         };
22 22
 
Please login to merge, or discard this patch.
demos/bootstrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@
 block discarded – undo
5 5
 
6 6
 header('Content-Type: text/html; charset=UTF-8');
7 7
 
8
-if ((!$loader = @include __DIR__.'/../../../autoload.php')
9
-        && (!$loader = @include __DIR__.'/../vendor/autoload.php')
8
+if ((!$loader = @include __DIR__ . '/../../../autoload.php')
9
+        && (!$loader = @include __DIR__ . '/../vendor/autoload.php')
10 10
 ) {
11
-    die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
12
-        'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
13
-        'php composer.phar install'.PHP_EOL);
11
+    die('You must set up the project dependencies, run the following commands:' . PHP_EOL .
12
+        'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
13
+        'php composer.phar install' . PHP_EOL);
14 14
 }
Please login to merge, or discard this patch.
demos/renderer/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@
 block discarded – undo
4 4
 
5 5
 require_once __DIR__ . '/../bootstrap.php';
6 6
 
7
-$e = function ($s) { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); };
7
+$e = function($s) { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); };
8 8
 
9 9
 $sets = array();
10 10
 
11 11
 $sets['commonmark'] = array(
12
-    __DIR__  . '/../../README.md'
12
+    __DIR__ . '/../../README.md'
13 13
 );
14 14
 
15 15
 $sets['inigo'] = array(
Please login to merge, or discard this patch.