@@ -12,8 +12,6 @@ |
||
12 | 12 | |
13 | 13 | namespace phpDocumentor\Reflection\DocBlock\Tags; |
14 | 14 | |
15 | -use phpDocumentor\Reflection\DocBlock\Tag; |
|
16 | - |
|
17 | 15 | /** |
18 | 16 | * Reflection class for a {@}example tag in a Docblock. |
19 | 17 | */ |
@@ -36,14 +36,14 @@ discard block |
||
36 | 36 | public function getContent() |
37 | 37 | { |
38 | 38 | if (null === $this->description) { |
39 | - $filePath = '"' . $this->filePath . '"'; |
|
39 | + $filePath = '"'.$this->filePath.'"'; |
|
40 | 40 | if ($this->isURI) { |
41 | 41 | $filePath = $this->isUriRelative($this->filePath) |
42 | 42 | ? str_replace('%2F', '/', rawurlencode($this->filePath)) |
43 | 43 | :$this->filePath; |
44 | 44 | } |
45 | 45 | |
46 | - $this->description = $filePath . ' ' . parent::getContent(); |
|
46 | + $this->description = $filePath.' '.parent::getContent(); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | return $this->description; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | public static function create($body) |
56 | 56 | { |
57 | 57 | // File component: File path in quotes or File URI / Source information |
58 | - if (! preg_match('/^(?:\"([^\"]+)\"|(\S+))(?:\s+(.*))?$/sux', $body, $matches)) { |
|
58 | + if (!preg_match('/^(?:\"([^\"]+)\"|(\S+))(?:\s+(.*))?$/sux', $body, $matches)) { |
|
59 | 59 | return null; |
60 | 60 | } |
61 | 61 | |
@@ -73,9 +73,9 @@ discard block |
||
73 | 73 | |
74 | 74 | // Starting line / Number of lines / Description |
75 | 75 | if (preg_match('/^([1-9]\d*)\s*(?:((?1))\s+)?(.*)$/sux', $matches[3], $matches)) { |
76 | - $startingLine = (int)$matches[1]; |
|
76 | + $startingLine = (int) $matches[1]; |
|
77 | 77 | if (isset($matches[2]) && $matches[2] !== '') { |
78 | - $lineCount = (int)$matches[2]; |
|
78 | + $lineCount = (int) $matches[2]; |
|
79 | 79 | } |
80 | 80 | $description = $matches[3]; |
81 | 81 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | public function setFileURI($uri) |
126 | 126 | { |
127 | - $this->isURI = true; |
|
127 | + $this->isURI = true; |
|
128 | 128 | $this->description = null; |
129 | 129 | |
130 | 130 | $this->filePath = $this->isUriRelative($uri) |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | public function __toString() |
143 | 143 | { |
144 | - return $this->filePath . ($this->description ? ' ' . $this->description->render() : ''); |
|
144 | + return $this->filePath.($this->description ? ' '.$this->description->render() : ''); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | /** |
@@ -12,11 +12,6 @@ |
||
12 | 12 | |
13 | 13 | namespace phpDocumentor\Reflection; |
14 | 14 | |
15 | -use phpDocumentor\Reflection\DocBlock\Description; |
|
16 | -use phpDocumentor\Reflection\DocBlock\StandardTagFactory; |
|
17 | -use phpDocumentor\Reflection\DocBlock\Tag; |
|
18 | -use phpDocumentor\Reflection\DocBlock\Tags\See; |
|
19 | - |
|
20 | 15 | /** |
21 | 16 | * @coversNothing |
22 | 17 | */ |
@@ -28,7 +28,7 @@ |
||
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 | } |
@@ -12,11 +12,6 @@ |
||
12 | 12 | |
13 | 13 | namespace phpDocumentor\Reflection; |
14 | 14 | |
15 | -use phpDocumentor\Reflection\DocBlock\Description; |
|
16 | -use phpDocumentor\Reflection\DocBlock\StandardTagFactory; |
|
17 | -use phpDocumentor\Reflection\DocBlock\Tag; |
|
18 | -use phpDocumentor\Reflection\DocBlock\Tags\See; |
|
19 | - |
|
20 | 15 | /** |
21 | 16 | * @coversNothing |
22 | 17 | */ |
@@ -29,11 +29,11 @@ |
||
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 | } |
@@ -12,7 +12,6 @@ |
||
12 | 12 | |
13 | 13 | namespace phpDocumentor\Reflection\DocBlock; |
14 | 14 | |
15 | -use Mockery as m; |
|
16 | 15 | use phpDocumentor\Reflection\DocBlock; |
17 | 16 | |
18 | 17 | /** |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace My\Example; |
4 | 4 | |
5 | -use Mockery as m; |
|
6 | 5 | use phpDocumentor\Reflection\Types; |
7 | 6 | |
8 | 7 | class Classy |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | // autoload.php @generated by Composer |
4 | 4 | |
5 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
5 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
6 | 6 | |
7 | 7 | return ComposerAutoloaderInitbd4ffaa7f635a9733a3203fa90210d4e::getLoader(); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function setFile($file) |
58 | 58 | { |
59 | - $distFile = $file . '.dist'; |
|
59 | + $distFile = $file.'.dist'; |
|
60 | 60 | |
61 | 61 | if (file_exists($file)) { |
62 | 62 | $this->template = file_get_contents($file); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $keys = array(); |
99 | 99 | |
100 | 100 | foreach ($this->values as $key => $value) { |
101 | - $keys[] = $this->openDelimiter . $key . $this->closeDelimiter; |
|
101 | + $keys[] = $this->openDelimiter.$key.$this->closeDelimiter; |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | return str_replace($keys, $this->values, $this->template); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | return $this->copyArray($var); |
108 | 108 | } |
109 | 109 | // Scalar |
110 | - if (! is_object($var)) { |
|
110 | + if (!is_object($var)) { |
|
111 | 111 | return $var; |
112 | 112 | } |
113 | 113 | // Object |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | $filter->apply( |
190 | 190 | $object, |
191 | 191 | $property->getName(), |
192 | - function ($object) { |
|
192 | + function($object) { |
|
193 | 193 | return $this->recursiveCopy($object); |
194 | 194 | } |
195 | 195 | ); |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | { |
217 | 217 | $matched = $this->first( |
218 | 218 | $filterRecords, |
219 | - function (array $record) use ($var) { |
|
219 | + function(array $record) use ($var) { |
|
220 | 220 | /* @var TypeMatcher $matcher */ |
221 | 221 | $matcher = $record['matcher']; |
222 | 222 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $oldCollection = $reflectionProperty->getValue($object); |
22 | 22 | |
23 | 23 | $newCollection = $oldCollection->map( |
24 | - function ($item) use ($objectCopier) { |
|
24 | + function($item) use ($objectCopier) { |
|
25 | 25 | return $objectCopier($item); |
26 | 26 | } |
27 | 27 | ); |