Test Failed
Push — master ( 72a6c5...9329b7 )
by Arun
03:52
created
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Generic.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,9 +81,9 @@
 block discarded – undo
81 81
      */
82 82
     private function validateTagName($name)
83 83
     {
84
-        if (! preg_match('/^' . StandardTagFactory::REGEX_TAGNAME . '$/u', $name)) {
84
+        if (!preg_match('/^'.StandardTagFactory::REGEX_TAGNAME.'$/u', $name)) {
85 85
             throw new \InvalidArgumentException(
86
-                'The tag name "' . $name . '" is not wellformed. Tags may only consist of letters, underscores, '
86
+                'The tag name "'.$name.'" is not wellformed. Tags may only consist of letters, underscores, '
87 87
                 . 'hyphens and backslashes.'
88 88
             );
89 89
         }
Please login to merge, or discard this patch.
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Serializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $comment = "{$firstIndent}/**\n{$indent} * {$text}\n{$indent} *\n";
79 79
         $comment = $this->addTagBlock($docblock, $wrapLength, $indent, $comment);
80
-        $comment .= $indent . ' */';
80
+        $comment .= $indent.' */';
81 81
 
82 82
         return $comment;
83 83
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     private function getSummaryAndDescriptionTextBlock(DocBlock $docblock, $wrapLength)
111 111
     {
112
-        $text = $docblock->getSummary() . ((string)$docblock->getDescription() ? "\n\n" . $docblock->getDescription()
112
+        $text = $docblock->getSummary().((string) $docblock->getDescription() ? "\n\n".$docblock->getDescription()
113 113
                 : '');
114 114
         if ($wrapLength !== null) {
115 115
             $text = wordwrap($text, $wrapLength);
Please login to merge, or discard this patch.
phpdocumentor/reflection-docblock/src/DocBlock/StandardTagFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function create($tagLine, TypeContext $context = null)
109 109
     {
110
-        if (! $context) {
110
+        if (!$context) {
111 111
             $context = new TypeContext('');
112 112
         }
113 113
 
@@ -161,9 +161,9 @@  discard block
 block discarded – undo
161 161
     private function extractTagParts($tagLine)
162 162
     {
163 163
         $matches = array();
164
-        if (! preg_match('/^@(' . self::REGEX_TAGNAME . ')(?:\s*([^\s].*)|$)?/us', $tagLine, $matches)) {
164
+        if (!preg_match('/^@('.self::REGEX_TAGNAME.')(?:\s*([^\s].*)|$)?/us', $tagLine, $matches)) {
165 165
             throw new \InvalidArgumentException(
166
-                'The tag "' . $tagLine . '" does not seem to be wellformed, please check it for errors'
166
+                'The tag "'.$tagLine.'" does not seem to be wellformed, please check it for errors'
167 167
             );
168 168
         }
169 169
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
      */
262 262
     private function fetchParametersForHandlerFactoryMethod($handlerClassName)
263 263
     {
264
-        if (! isset($this->tagHandlerParameterCache[$handlerClassName])) {
264
+        if (!isset($this->tagHandlerParameterCache[$handlerClassName])) {
265 265
             $methodReflection                                  = new \ReflectionMethod($handlerClassName, 'create');
266 266
             $this->tagHandlerParameterCache[$handlerClassName] = $methodReflection->getParameters();
267 267
         }
Please login to merge, or discard this patch.
phpdocumentor/reflection-docblock/src/DocBlock/DescriptionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 
125 125
         for ($i = 1; $i < $count; $i += 2) {
126 126
             $tags[] = $this->tagFactory->create($tokens[$i], $context);
127
-            $tokens[$i] = '%' . ++$tagCount . '$s';
127
+            $tokens[$i] = '%'.++$tagCount.'$s';
128 128
         }
129 129
 
130 130
         //In order to allow "literal" inline tags, the otherwise invalid
Please login to merge, or discard this patch.
vendor/phpdocumentor/reflection-docblock/src/DocBlock/ExampleFinder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     private function getExamplePathFromExampleDirectory($file)
137 137
     {
138
-        return getcwd() . DIRECTORY_SEPARATOR . 'examples' . DIRECTORY_SEPARATOR . $file;
138
+        return getcwd().DIRECTORY_SEPARATOR.'examples'.DIRECTORY_SEPARATOR.$file;
139 139
     }
140 140
 
141 141
     /**
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     private function constructExamplePath($directory, $file)
150 150
     {
151
-        return rtrim($directory, '\\/') . DIRECTORY_SEPARATOR . $file;
151
+        return rtrim($directory, '\\/').DIRECTORY_SEPARATOR.$file;
152 152
     }
153 153
 
154 154
     /**
Please login to merge, or discard this patch.
reflection-docblock/tests/integration/ReconstitutingADocBlockTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
          * @var string $docComment
29 29
          * @var string $reconstitutedDocComment
30 30
          */
31
-        include(__DIR__ . '/../../examples/03-reconstituting-a-docblock.php');
31
+        include(__DIR__.'/../../examples/03-reconstituting-a-docblock.php');
32 32
 
33 33
         $this->assertSame($docComment, $reconstitutedDocComment);
34 34
     }
Please login to merge, or discard this patch.
reflection-docblock/tests/integration/InterpretingDocBlocksTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
          * @var string      $summary
30 30
          * @var Description $description
31 31
          */
32
-        include(__DIR__ . '/../../examples/01-interpreting-a-simple-docblock.php');
32
+        include(__DIR__.'/../../examples/01-interpreting-a-simple-docblock.php');
33 33
 
34 34
         $descriptionText = <<<DESCRIPTION
35 35
 This is a Description. A Summary and Description are separated by either
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
          * @var Tag[]    $tags
54 54
          * @var See[]    $seeTags
55 55
          */
56
-        include(__DIR__ . '/../../examples/02-interpreting-tags.php');
56
+        include(__DIR__.'/../../examples/02-interpreting-tags.php');
57 57
 
58 58
         $this->assertTrue($hasSeeTag);
59 59
         $this->assertCount(1, $tags);
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
         $this->assertInstanceOf(See::class, $seeTags[0]);
64 64
 
65 65
         $seeTag = $seeTags[0];
66
-        $this->assertSame('\\' . StandardTagFactory::class, (string)$seeTag->getReference());
67
-        $this->assertSame('', (string)$seeTag->getDescription());
66
+        $this->assertSame('\\'.StandardTagFactory::class, (string) $seeTag->getReference());
67
+        $this->assertSame('', (string) $seeTag->getDescription());
68 68
     }
69 69
 
70 70
     public function testDescriptionsCanEscapeAtSignsAndClosingBraces()
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
          * @var string      $foundDescription
78 78
          */
79 79
 
80
-        include(__DIR__ . '/../../examples/playing-with-descriptions/02-escaping.php');
80
+        include(__DIR__.'/../../examples/playing-with-descriptions/02-escaping.php');
81 81
         $this->assertSame(<<<'DESCRIPTION'
82 82
 You can escape the @-sign by surrounding it with braces, for example: @. And escape a closing brace within an
83 83
 inline tag by adding an opening brace in front of it like this: }.
Please login to merge, or discard this patch.
phpdocumentor/reflection-docblock/tests/integration/UsingTagsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
          * @var string   $docComment
30 30
          * @var string   $reconstitutedDocComment
31 31
          */
32
-        include(__DIR__ . '/../../examples/04-adding-your-own-tag.php');
32
+        include(__DIR__.'/../../examples/04-adding-your-own-tag.php');
33 33
 
34 34
         $this->assertInstanceOf(\MyTag::class, $customTagObjects[0]);
35 35
         $this->assertSame('my-tag', $customTagObjects[0]->getName());
36
-        $this->assertSame('I have a description', (string)$customTagObjects[0]->getDescription());
36
+        $this->assertSame('I have a description', (string) $customTagObjects[0]->getDescription());
37 37
         $this->assertSame($docComment, $reconstitutedDocComment);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
phpdocumentor/reflection-docblock/tests/unit/DocBlock/DescriptionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
         $fixture = new Description($body, $tags);
63 63
 
64
-        $this->assertSame($expected, (string)$fixture);
64
+        $this->assertSame($expected, (string) $fixture);
65 65
     }
66 66
 
67 67
     /**
Please login to merge, or discard this patch.