Passed
Branch master (363d37)
by Cristiano
10:11
created
Category
src/Docblock.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	 *
36 36
 	 * @return $this
37 37
 	 */
38
-	public static function create(ReflectionFunctionAbstract|ReflectionClass|ReflectionProperty|string $docblock = ''): self {
38
+	public static function create(ReflectionFunctionAbstract | ReflectionClass | ReflectionProperty | string $docblock = ''): self {
39 39
 		return new static($docblock);
40 40
 	}
41 41
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	 * 
45 45
 	 * @param ReflectionFunctionAbstract|ReflectionClass|ReflectionProperty|string $docblock a docblock to parse
46 46
 	 */
47
-	final public function __construct(ReflectionFunctionAbstract|ReflectionClass|ReflectionProperty|string $docblock = '') {
47
+	final public function __construct(ReflectionFunctionAbstract | ReflectionClass | ReflectionProperty | string $docblock = '') {
48 48
 		$this->tags = new ArrayList();
49 49
 		$this->parse($docblock);
50 50
 	}
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	 *
57 57
 	 * @throws InvalidArgumentException if there is no getDocComment() method available
58 58
 	 */
59
-	protected function parse(ReflectionFunctionAbstract|ReflectionClass|ReflectionProperty|string $docblock): void {
59
+	protected function parse(ReflectionFunctionAbstract | ReflectionClass | ReflectionProperty | string $docblock): void {
60 60
 		$docblock = is_object($docblock) ? $docblock->getDocComment() : $docblock;
61 61
 		$docblock = $this->cleanInput($docblock);
62 62
 
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 	 * @param string $tagName
295 295
 	 */
296 296
 	public function removeTags(string $tagName = ''): void {
297
-		$this->tags = $this->tags->filter(function (AbstractTag $tag) use ($tagName): bool {
297
+		$this->tags = $this->tags->filter(function(AbstractTag $tag) use ($tagName): bool {
298 298
 			return $tagName !== $tag->getTagName();
299 299
 		});
300 300
 	}
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 	 */
309 309
 	public function hasTag(string $tagName): bool {
310 310
 		return $this->tags->search($tagName,
311
-			fn (AbstractTag $tag, string $query): bool => $tag->getTagName() === $query
311
+			fn(AbstractTag $tag, string $query): bool => $tag->getTagName() === $query
312 312
 		);
313 313
 	}
314 314
 
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 	 */
322 322
 	public function getTags(string $tagName = ''): ArrayList {
323 323
 		return $tagName === '' ? $this->tags : $this->tags->filter(
324
-			fn (AbstractTag $tag): bool => $tag->getTagName() === $tagName
324
+			fn(AbstractTag $tag) : bool => $tag->getTagName() === $tagName
325 325
 		);
326 326
 	}
327 327
 
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 		}
392 392
 
393 393
 		// tags
394
-		$tags = $this->getSortedTags()->map(function (AbstractTag $tag): string {
394
+		$tags = $this->getSortedTags()->map(function(AbstractTag $tag): string {
395 395
 			return (string) $tag;
396 396
 		});
397 397
 
Please login to merge, or discard this patch.