Skip to content

Commit beb71b6

Browse files
committed
php-cs-fixer run
1 parent 7d5153f commit beb71b6

File tree

7 files changed

+6
-8
lines changed

7 files changed

+6
-8
lines changed

src/collector/project/AbstractVariableObject.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function setConstant($const): void {
6161
}
6262

6363
public function isInternalType($type) {
64-
return \in_array(\mb_strtolower( (string)$type), $this->types);
64+
return \in_array(\mb_strtolower((string)$type), $this->types);
6565
}
6666

6767
/**

src/collector/project/IndexCollection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function addTrait(TraitObject $trait): void {
4747
}
4848

4949
public function findUnitNodesBySrcFile(string $path): \DOMNodeList {
50-
$src = \mb_substr($path, \mb_strlen( (string)$this->srcDir) + 1);
50+
$src = \mb_substr($path, \mb_strlen((string)$this->srcDir) + 1);
5151

5252
return $this->getRootElement()->query(\sprintf('//*[@src="%s"]', $src));
5353
}

src/collector/project/SourceCollection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function export($collapse = false) {
105105

106106
foreach ($this->collection as $path => $file) {
107107
$pathInfo = new FileInfo($path);
108-
$dirs = \explode('/', \dirname( (string)$pathInfo->getRelative($this->srcDir)));
108+
$dirs = \explode('/', \dirname((string)$pathInfo->getRelative($this->srcDir)));
109109
$dirs[0] = $this->srcDir->getRealPath();
110110
$ctx = $root;
111111

src/generator/engine/AbstractEngine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function getXSLTProcessor($template) {
2020

2121
protected function clearDirectory($path): void {
2222
$cleaner = new DirectoryCleaner();
23-
$cleaner->process(new FileInfo( (string)$path));
23+
$cleaner->process(new FileInfo((string)$path));
2424
}
2525

2626
protected function saveDomDocument(\DOMDocument $dom, $filename, $format = true) {

src/generator/project/Project.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php declare(strict_types = 1);
22
namespace TheSeer\phpDox\Generator;
33

4-
use DOMNodeList;
54
use TheSeer\fDOM\fDOMDocument;
65
use TheSeer\phpDox\FileInfo;
76

@@ -52,7 +51,7 @@ public function hasNamespaces(): bool {
5251
return $this->index->query('count(//phpdox:namespace[not(@name="/")])') > 0;
5352
}
5453

55-
public function getNamespaces(): NamespaceCollection {
54+
public function getNamespaces(): NamespaceCollection {
5655
return new NamespaceCollection($this->index->query('//phpdox:namespace'));
5756
}
5857

src/shared/FileInfo.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
namespace TheSeer\phpDox;
33

44
class FileInfo extends \SplFileInfo {
5-
65
public function __toString(): string {
76
return $this->getPathname();
87
}

tests/Integration/docblock/ParserTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
use PHPUnit\Framework\TestCase;
55
use TheSeer\fDOM\fDOMDocument;
6+
use TheSeer\phpDox\DocBlock\DocBlock;
67
use TheSeer\phpDox\DocBlock\Factory;
78
use TheSeer\phpDox\DocBlock\Parser;
8-
use TheSeer\phpDox\DocBlock\DocBlock;
99

1010
/**
1111
* Class ParserTest

0 commit comments

Comments
 (0)