Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit ebead1b

Browse files
committed
#109 applying phpcbf automatic fixes
1 parent 48cae20 commit ebead1b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/Generator/DocBlock/Tag/VarTag.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public function getVariableName() : ?string
6161
public function generate() : string
6262
{
6363
return '@var'
64-
. ((!empty($this->types)) ? ' ' . $this->getTypesAsString() : '')
64+
. ((! empty($this->types)) ? ' ' . $this->getTypesAsString() : '')
6565
. (null !== $this->variableName ? ' $' . $this->variableName : '')
66-
. ((!empty($this->description)) ? ' ' . $this->description : '');
66+
. ((! empty($this->description)) ? ' ' . $this->description : '');
6767
}
6868
}

src/Generator/ParameterGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function getName()
212212
*/
213213
public function setDefaultValue($defaultValue)
214214
{
215-
if (!$defaultValue instanceof ValueGenerator) {
215+
if (! $defaultValue instanceof ValueGenerator) {
216216
$defaultValue = new ValueGenerator($defaultValue);
217217
}
218218
$this->defaultValue = $defaultValue;

src/Generator/PropertyGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function setDefaultValue(
173173
$defaultValueType = PropertyValueGenerator::TYPE_AUTO,
174174
$defaultValueOutputMode = PropertyValueGenerator::OUTPUT_MULTIPLE_LINE
175175
) {
176-
if (!$defaultValue instanceof PropertyValueGenerator) {
176+
if (! $defaultValue instanceof PropertyValueGenerator) {
177177
$defaultValue = new PropertyValueGenerator($defaultValue, $defaultValueType, $defaultValueOutputMode);
178178
}
179179

src/Reflection/DocBlock/Tag/VarTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function initialize($tagDocblockLine) : void
4141
{
4242
$match = [];
4343

44-
if (!preg_match('#^(.+)?(\$[\S]+)\s*(.*)$#m', $tagDocblockLine, $match)) {
44+
if (! preg_match('#^(.+)?(\$[\S]+)\s*(.*)$#m', $tagDocblockLine, $match)) {
4545
return;
4646
}
4747

test/Reflection/ReflectionDocBlockTagTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public function testAllowsMultipleSpacesInDocBlockTagLine()
8080
$paramTag = $classReflection->getMethod('doSomething')->getDocBlock()->getTag('param');
8181

8282

83-
self::assertEquals('int',$paramTag->getType(), 'Second Match Failed');
84-
self::assertEquals('$var',$paramTag->getVariableName(), 'Third Match Failed');
85-
self::assertEquals( 'Description of $var', $paramTag->getDescription(),'Final Match Failed');
83+
self::assertEquals('int', $paramTag->getType(), 'Second Match Failed');
84+
self::assertEquals('$var', $paramTag->getVariableName(), 'Third Match Failed');
85+
self::assertEquals('Description of $var', $paramTag->getDescription(), 'Final Match Failed');
8686
}
8787

8888
/**

0 commit comments

Comments
 (0)