Test Failed
Push — feature-laravel-5.4 ( efd971...e8f7ac )
by Kirill
03:36
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
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     private function fixDocsNavigationLinks(): \Closure
50 50
     {
51
-        return function (string $body) {
51
+        return function(string $body) {
52 52
             return $body;
53 53
         };
54 54
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $pattern = '/<blockquote>\s*<p>\s*{([a-z]+)}\s*(.*?)<\/p>\s*<\/blockquote>/isu';
64 64
 
65
-        return function (string $body) use ($pattern) {
65
+        return function(string $body) use ($pattern) {
66 66
             return preg_replace($pattern, '<blockquote class="quote-$1">$2</blockquote>', $body);
67 67
         };
68 68
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function removeLeadingNavigation(): \Closure
76 76
     {
77
-        return function (string $body) {
77
+        return function(string $body) {
78 78
             /**
79 79
              * TODO This expression are vulnerable: ReDoS-based exploit. Probably we can improve and fix it?
80 80
              *
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $replacement = '<a href="#" style="display: none;" name="$1"></a>';
96 96
 
97
-        return function (string $body) use ($replacement) {
97
+        return function(string $body) use ($replacement) {
98 98
             return preg_replace('/<a.+?name="(.*?)".*?>.*?<\/a>/isu', $replacement, $body);
99 99
         };
100 100
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     private function removeDocumentTitle(): \Closure
108 108
     {
109
-        return function (string $body) {
109
+        return function(string $body) {
110 110
             return preg_replace('/^[\s\n]*?#\s+?.*?\n/isu', '', $body);
111 111
         };
112 112
     }
Please login to merge, or discard this patch.