Test Failed
Push — feature-laravel-5.4 ( 66c6a4...b10da2 )
by Kirill
03:38
created
app/Services/ContentRenderer/LaravelDocsRenderer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * For the full copyright and license information, please view the LICENSE
5 5
  * file that was distributed with this source code.
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace App\Services\ContentRenderer;
10 10
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     private function removeDocumentTitle(): \Closure
46 46
     {
47
-        return function (string $body) {
47
+        return function(string $body) {
48 48
             return preg_replace('/^[\s\n]*?#\s+?.*?\n/isu', '', $body);
49 49
         };
50 50
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     private function removeLeadingNavigation(): \Closure
57 57
     {
58
-        return function (string $body) {
58
+        return function(string $body) {
59 59
             /**
60 60
              * TODO This expression are vulnerable: ReDoS-based exploit. Probably we can improve and fix it?
61 61
              * @see https://en.wikipedia.org/wiki/ReDoS
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $replacement = '<a href="#" style="display: none;" name="$1"></a>';
75 75
 
76
-        return function (string $body) use ($replacement) {
76
+        return function(string $body) use ($replacement) {
77 77
             return preg_replace('/<a.+?name="(.*?)".*?>.*?<\/a>/isu', $replacement, $body);
78 78
         };
79 79
     }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     private function fixDocsNavigationLinks(): \Closure
87 87
     {
88
-        return function (string $body) {
88
+        return function(string $body) {
89 89
             return $body;
90 90
         };
91 91
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $pattern = '/<blockquote>\s*<p>\s*{([a-z]+)}\s*(.*?)<\/p>\s*<\/blockquote>/isu';
100 100
 
101
-        return function (string $body) use ($pattern) {
101
+        return function(string $body) use ($pattern) {
102 102
             return preg_replace(
103 103
                 $pattern,
104 104
                 '<blockquote class="quote-$1"><p>$2</p></blockquote>',
Please login to merge, or discard this patch.