Skip to content

Commit aa53f8d

Browse files
authored
Merge pull request #371 from szepeviktor/typos
Fix typos
2 parents 65a1ca1 + ab86695 commit aa53f8d

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

src/DocBlock/StandardTagFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ final class StandardTagFactory implements TagFactory
102102
];
103103

104104
/**
105-
* @var array<class-string<Tag>> An array with a anotation s a key, and an
105+
* @var array<class-string<Tag>> An array with an annotation as a key, and an
106106
* FQCN to a class that handles it as an array value.
107107
*/
108108
private array $annotationMappings = [];
@@ -323,7 +323,7 @@ private function fetchParametersForHandlerFactoryMethod($handler): array
323323
* Returns a copy of this class' Service Locator with added dynamic parameters,
324324
* such as the tag's name, body and Context.
325325
*
326-
* @param TypeContext $context The Context (namespace and aliasses) that may be
326+
* @param TypeContext $context The Context (namespace and aliases) that may be
327327
* passed and is used to resolve FQSENs.
328328
* @param string $tagName The name of the tag that may be
329329
* passed onto the factory method of the Tag class.

src/DocBlock/Tags/InvalidTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* we cannot simply throw exceptions at all time because the exceptions will break the creation of a
2828
* docklock. Just silently ignore the exceptions is not an option because the user as an issue to fix.
2929
*
30-
* This tag holds that error information until a using application is able to display it. The object wil just behave
30+
* This tag holds that error information until a using application is able to display it. The object will just behave
3131
* like any normal tag. So the normal application flow will not break.
3232
*/
3333
final class InvalidTag implements Tag

src/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class Utils
2626
*
2727
* This function is inspired by {@link https://github.com/thecodingmachine/safe/blob/master/generated/pcre.php}. But
2828
* since this library is all about performance we decided to strip everything we don't need. Reducing the amount
29-
* of files that have to be loaded, ect.
29+
* of files that have to be loaded, etc.
3030
*
3131
* @param string $pattern The pattern to search for, as a string.
3232
* @param string $subject The input string.

tests/integration/InterpretingDocBlocksTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function testDescriptionsCanEscapeAtSignsAndClosingBraces(): void
169169

170170
public function testMultilineTags(): void
171171
{
172-
$docCommment = <<<DOC
172+
$docComment = <<<DOC
173173
/**
174174
* This is an example of a summary.
175175
*
@@ -180,7 +180,7 @@ public function testMultilineTags(): void
180180
*/
181181
DOC;
182182
$factory = DocBlockFactory::createInstance();
183-
$docblock = $factory->create($docCommment);
183+
$docblock = $factory->create($docComment);
184184

185185
self::assertEquals(
186186
[
@@ -201,15 +201,15 @@ public function testMultilineTags(): void
201201

202202
public function testMethodRegression(): void
203203
{
204-
$docCommment = <<<DOC
204+
$docComment = <<<DOC
205205
/**
206206
* This is an example of a summary.
207207
*
208208
* @method void setInteger(integer \$integer)
209209
*/
210210
DOC;
211211
$factory = DocBlockFactory::createInstance();
212-
$docblock = $factory->create($docCommment);
212+
$docblock = $factory->create($docComment);
213213

214214
self::assertEquals(
215215
[
@@ -231,15 +231,15 @@ public function testMethodRegression(): void
231231

232232
public function testInvalidTypeParamResultsInInvalidTag(): void
233233
{
234-
$docCommment = '
234+
$docComment = '
235235
/**
236236
* This is an example of a summary.
237237
*
238238
* @param array\Foo> $test
239239
*/
240240
';
241241
$factory = DocBlockFactory::createInstance();
242-
$docblock = $factory->create($docCommment);
242+
$docblock = $factory->create($docComment);
243243

244244
self::assertEquals(
245245
[
@@ -257,14 +257,14 @@ public function testInvalidTypeParamResultsInInvalidTag(): void
257257

258258
public function testConstantReferenceTypes(): void
259259
{
260-
$docCommment = <<<DOC
260+
$docComment = <<<DOC
261261
/**
262262
* @return self::STATUS_*
263263
*/
264264
DOC;
265265

266266
$factory = DocBlockFactory::createInstance();
267-
$docblock = $factory->create($docCommment);
267+
$docblock = $factory->create($docComment);
268268

269269
self::assertEquals(
270270
[
@@ -276,7 +276,7 @@ public function testConstantReferenceTypes(): void
276276

277277
public function testRegressionWordpressDocblocks(): void
278278
{
279-
$docCommment = <<<DOC
279+
$docComment = <<<DOC
280280
/**
281281
* Install a package.
282282
*
@@ -311,7 +311,7 @@ public function testRegressionWordpressDocblocks(): void
311311
DOC;
312312

313313
$factory = DocBlockFactory::createInstance();
314-
$docblock = $factory->create($docCommment);
314+
$docblock = $factory->create($docComment);
315315

316316
self::assertEquals(
317317
new DocBlock(

tests/unit/DocBlock/StandardTagFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ public function validTagProvider(): array
505505
'tag',
506506
'@tag some text',
507507
],
508-
'tag body starting with sqare brackets is allowed' => [
508+
'tag body starting with square brackets is allowed' => [
509509
'@tag [is valid]',
510510
'tag',
511511
'@tag [is valid]',

tests/unit/DocBlock/Tags/AuthorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function testStringRepresentationIsReturnedWithoutName(): void
139139
* @covers ::__construct
140140
* @covers ::__toString
141141
*/
142-
public function testStringRepresentationWithEmtpyEmail(): void
142+
public function testStringRepresentationWithEmptyEmail(): void
143143
{
144144
$fixture = new Author('Mike van Riel', '');
145145

tests/unit/DocBlock/Tags/ExampleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testStartlineIsParsed(): void
6767
* @covers ::getStartingLine
6868
* @covers ::getDescription
6969
*/
70-
public function testAllowOmitingLineCount(): void
70+
public function testAllowOmittingLineCount(): void
7171
{
7272
$tag = Example::create('"example1.php" 10 some text');
7373
$this->assertEquals('example1.php', $tag->getFilePath());

tests/unit/DocBlock/Tags/VarTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function testIfCorrectTagNameIsReturned(): void
5656
*
5757
* @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::render
5858
*/
59-
public function testIfVariableNameIsOmmitedIfEmpty(): void
59+
public function testIfVariableNameIsOmittedIfEmpty(): void
6060
{
6161
$fixture = new Var_('', null, null);
6262

0 commit comments

Comments
 (0)