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

Commit 27f48cc

Browse files
committed
Merge branch 'fix/#106-minor-spelling-fixes' into develop
Close #106
2 parents cbdd655 + bd48b80 commit 27f48cc

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/Generator/DocBlockGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function setTags(array $tags)
183183
public function setTag($tag)
184184
{
185185
if (is_array($tag)) {
186-
// use deprecated Tag class for backward compatiblity to old array-keys
186+
// use deprecated Tag class for backward compatibility to old array-keys
187187
$genericTag = new Tag();
188188
$genericTag->setOptions($tag);
189189
$tag = $genericTag;

src/Reflection/ClassReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public function __toString()
269269
/**
270270
* Creates a new FileScanner instance.
271271
*
272-
* By having this as a seperate method it allows the method to be overridden
272+
* By having this as a separate method it allows the method to be overridden
273273
* if a different FileScanner is needed.
274274
*
275275
* @param string $filename

src/Reflection/MethodReflection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ protected function isValidFunction($haystack, $position, $functionName = null)
444444
$tokenType = (is_array($haystack[$i])) ? token_name($haystack[$i][0]) : $haystack[$i];
445445
$tokenValue = (is_array($haystack[$i])) ? $haystack[$i][1] : $haystack[$i];
446446

447-
//check for occurance of ( or
447+
//check for occurrence of ( or
448448
if ($tokenType == "T_STRING") {
449449
//check to see if function name is passed, if so validate against that
450450
if ($functionName !== null && $tokenValue != $functionName) {
@@ -481,7 +481,7 @@ public function __toString()
481481
/**
482482
* Creates a new FileScanner instance.
483483
*
484-
* By having this as a seperate method it allows the method to be overridden
484+
* By having this as a separate method it allows the method to be overridden
485485
* if a different FileScanner is needed.
486486
*
487487
* @param string $filename

src/Reflection/PropertyReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function toString()
100100
/**
101101
* Creates a new FileScanner instance.
102102
*
103-
* By having this as a seperate method it allows the method to be overridden
103+
* By having this as a separate method it allows the method to be overridden
104104
* if a different FileScanner is needed.
105105
*
106106
* @param string $filename

src/Scanner/AnnotationScanner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ protected function tokenize()
236236
}
237237

238238
// Since we don't know what line endings are used in the file, we check for all scenarios. If we find a
239-
// cariage return (\r), we check the next character for a line feed (\n). If so we consume it and act as
240-
// if the cariage return was a line feed.
239+
// carriage return (\r), we check the next character for a line feed (\n). If so we consume it and act as
240+
// if the carriage return was a line feed.
241241
$lineEnded = $currentChar === "\n";
242242
if ($currentChar === "\r") {
243243
$lineEnded = true;

test/Reflection/TestAsset/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function function1()
2323
/**
2424
* Zend Function Two
2525
*
26-
* This is the long description for funciton two
26+
* This is the long description for function two
2727
*
2828
* @param string $one
2929
* @param string $two

0 commit comments

Comments
 (0)