@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | { |
122 | 122 | $fixture = new Var_('myVariable', new String_(), new Description('Description')); |
123 | 123 | |
124 | - $this->assertSame('string $myVariable Description', (string)$fixture); |
|
124 | + $this->assertSame('string $myVariable Description', (string) $fixture); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | |
143 | 143 | $fixture = Var_::create('string $myVariable My Description', $typeResolver, $descriptionFactory, $context); |
144 | 144 | |
145 | - $this->assertSame('string $myVariable My Description', (string)$fixture); |
|
145 | + $this->assertSame('string $myVariable My Description', (string) $fixture); |
|
146 | 146 | $this->assertSame('myVariable', $fixture->getVariableName()); |
147 | 147 | $this->assertInstanceOf(String_::class, $fixture->getType()); |
148 | 148 | $this->assertSame($description, $fixture->getDescription()); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | { |
102 | 102 | $fixture = new Deprecated('1.0', new Description('Description')); |
103 | 103 | |
104 | - $this->assertSame('1.0 Description', (string)$fixture); |
|
104 | + $this->assertSame('1.0 Description', (string) $fixture); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | $fixture = Deprecated::create('1.0 My Description', $descriptionFactory, $context); |
125 | 125 | |
126 | - $this->assertSame('1.0 My Description', (string)$fixture); |
|
126 | + $this->assertSame('1.0 My Description', (string) $fixture); |
|
127 | 127 | $this->assertSame($version, $fixture->getVersion()); |
128 | 128 | $this->assertSame($description, $fixture->getDescription()); |
129 | 129 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | |
143 | 143 | $fixture = Deprecated::create('', $descriptionFactory, new Context('')); |
144 | 144 | |
145 | - $this->assertSame('', (string)$fixture); |
|
145 | + $this->assertSame('', (string) $fixture); |
|
146 | 146 | $this->assertSame(null, $fixture->getVersion()); |
147 | 147 | $this->assertSame(null, $fixture->getDescription()); |
148 | 148 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | $fixture = new Generic('generic', new Description('Description')); |
91 | 91 | |
92 | - $this->assertSame('Description', (string)$fixture); |
|
92 | + $this->assertSame('Description', (string) $fixture); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | |
112 | 112 | $fixture = Generic::create('My Description', 'generic', $descriptionFactory, $context); |
113 | 113 | |
114 | - $this->assertSame('My Description', (string)$fixture); |
|
114 | + $this->assertSame('My Description', (string) $fixture); |
|
115 | 115 | $this->assertSame($generics, $fixture->getName()); |
116 | 116 | $this->assertSame($description, $fixture->getDescription()); |
117 | 117 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | { |
104 | 104 | $fixture = new Return_(new String_(), new Description('Description')); |
105 | 105 | |
106 | - $this->assertSame('string Description', (string)$fixture); |
|
106 | + $this->assertSame('string Description', (string) $fixture); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | $fixture = Return_::create('string My Description', $resolver, $descriptionFactory, $context); |
129 | 129 | |
130 | - $this->assertSame('string My Description', (string)$fixture); |
|
130 | + $this->assertSame('string My Description', (string) $fixture); |
|
131 | 131 | $this->assertEquals($type, $fixture->getType()); |
132 | 132 | $this->assertSame($description, $fixture->getDescription()); |
133 | 133 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | { |
104 | 104 | $fixture = new Throws(new String_(), new Description('Description')); |
105 | 105 | |
106 | - $this->assertSame('string Description', (string)$fixture); |
|
106 | + $this->assertSame('string Description', (string) $fixture); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | $fixture = Throws::create('string My Description', $resolver, $descriptionFactory, $context); |
129 | 129 | |
130 | - $this->assertSame('string My Description', (string)$fixture); |
|
130 | + $this->assertSame('string My Description', (string) $fixture); |
|
131 | 131 | $this->assertEquals($type, $fixture->getType()); |
132 | 132 | $this->assertSame($description, $fixture->getDescription()); |
133 | 133 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | { |
102 | 102 | $fixture = new Link('http://this.is.my/link', new Description('Description')); |
103 | 103 | |
104 | - $this->assertSame('http://this.is.my/link Description', (string)$fixture); |
|
104 | + $this->assertSame('http://this.is.my/link Description', (string) $fixture); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | $fixture = Link::create('http://this.is.my/link My Description', $descriptionFactory, $context); |
125 | 125 | |
126 | - $this->assertSame('http://this.is.my/link My Description', (string)$fixture); |
|
126 | + $this->assertSame('http://this.is.my/link My Description', (string) $fixture); |
|
127 | 127 | $this->assertSame($links, $fixture->getLink()); |
128 | 128 | $this->assertSame($description, $fixture->getDescription()); |
129 | 129 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | |
143 | 143 | $fixture = Link::create('', $descriptionFactory, new Context('')); |
144 | 144 | |
145 | - $this->assertSame('', (string)$fixture); |
|
145 | + $this->assertSame('', (string) $fixture); |
|
146 | 146 | $this->assertSame('', $fixture->getLink()); |
147 | 147 | $this->assertSame(null, $fixture->getDescription()); |
148 | 148 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | { |
122 | 122 | $fixture = new Source(1, 10, new Description('Description')); |
123 | 123 | |
124 | - $this->assertSame('1 10 Description', (string)$fixture); |
|
124 | + $this->assertSame('1 10 Description', (string) $fixture); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | |
142 | 142 | $fixture = Source::create('1 10 My Description', $descriptionFactory, $context); |
143 | 143 | |
144 | - $this->assertSame('1 10 My Description', (string)$fixture); |
|
144 | + $this->assertSame('1 10 My Description', (string) $fixture); |
|
145 | 145 | $this->assertSame(1, $fixture->getStartingLine()); |
146 | 146 | $this->assertSame(10, $fixture->getLineCount()); |
147 | 147 | $this->assertSame($description, $fixture->getDescription()); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $tagFactory->addService($descriptionFactory, DescriptionFactory::class); |
58 | 58 | |
59 | 59 | /** @var Generic $tag */ |
60 | - $tag = $tagFactory->create('@' . $expectedTagName . ' This is a description', $context); |
|
60 | + $tag = $tagFactory->create('@'.$expectedTagName.' This is a description', $context); |
|
61 | 61 | |
62 | 62 | $this->assertInstanceOf(Generic::class, $tag); |
63 | 63 | $this->assertSame($expectedTagName, $tag->getName()); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $tag = $tagFactory->create('@see Tag'); |
110 | 110 | |
111 | 111 | $this->assertInstanceOf(See::class, $tag); |
112 | - $this->assertSame($fqsen, (string)$tag->getReference()); |
|
112 | + $this->assertSame($fqsen, (string) $tag->getReference()); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | */ |
336 | 336 | public function testReturntagIsMappedCorrectly() |
337 | 337 | { |
338 | - $context = new Context(''); |
|
338 | + $context = new Context(''); |
|
339 | 339 | |
340 | 340 | $descriptionFactory = m::mock(DescriptionFactory::class); |
341 | 341 | $descriptionFactory |
@@ -13,10 +13,10 @@ |
||
13 | 13 | $context = $contextFactory->createForNamespace('My\Example', file_get_contents('Classy.php')); |
14 | 14 | |
15 | 15 | // Class named: \phpDocumentor\Reflection\Types\Resolver |
16 | -var_dump((string)$typeResolver->resolve('Types\Resolver', $context)); |
|
16 | +var_dump((string) $typeResolver->resolve('Types\Resolver', $context)); |
|
17 | 17 | |
18 | 18 | // String |
19 | -var_dump((string)$typeResolver->resolve('string', $context)); |
|
19 | +var_dump((string) $typeResolver->resolve('string', $context)); |
|
20 | 20 | |
21 | 21 | // Property named: \phpDocumentor\Reflection\Types\Resolver::$keyWords |
22 | -var_dump((string)$fqsenResolver->resolve('Types\Resolver::$keyWords', $context)); |
|
22 | +var_dump((string) $fqsenResolver->resolve('Types\Resolver::$keyWords', $context)); |