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

Minor spelling fixes #106

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Generator/DocBlockGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function setTags(array $tags)
public function setTag($tag)
{
if (is_array($tag)) {
// use deprecated Tag class for backward compatiblity to old array-keys
// use deprecated Tag class for backward compatibility to old array-keys
$genericTag = new Tag();
$genericTag->setOptions($tag);
$tag = $genericTag;
Expand Down
2 changes: 1 addition & 1 deletion src/Reflection/ClassReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function __toString()
/**
* Creates a new FileScanner instance.
*
* By having this as a seperate method it allows the method to be overridden
* By having this as a separate method it allows the method to be overridden
* if a different FileScanner is needed.
*
* @param string $filename
Expand Down
4 changes: 2 additions & 2 deletions src/Reflection/MethodReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ protected function isValidFunction($haystack, $position, $functionName = null)
$tokenType = (is_array($haystack[$i])) ? token_name($haystack[$i][0]) : $haystack[$i];
$tokenValue = (is_array($haystack[$i])) ? $haystack[$i][1] : $haystack[$i];

//check for occurance of ( or
//check for occurrence of ( or
if ($tokenType == "T_STRING") {
//check to see if function name is passed, if so validate against that
if ($functionName !== null && $tokenValue != $functionName) {
Expand Down Expand Up @@ -481,7 +481,7 @@ public function __toString()
/**
* Creates a new FileScanner instance.
*
* By having this as a seperate method it allows the method to be overridden
* By having this as a separate method it allows the method to be overridden
* if a different FileScanner is needed.
*
* @param string $filename
Expand Down
2 changes: 1 addition & 1 deletion src/Reflection/PropertyReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function toString()
/**
* Creates a new FileScanner instance.
*
* By having this as a seperate method it allows the method to be overridden
* By having this as a separate method it allows the method to be overridden
* if a different FileScanner is needed.
*
* @param string $filename
Expand Down
4 changes: 2 additions & 2 deletions src/Scanner/AnnotationScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ protected function tokenize()
}

// Since we don't know what line endings are used in the file, we check for all scenarios. If we find a
// cariage return (\r), we check the next character for a line feed (\n). If so we consume it and act as
// if the cariage return was a line feed.
// carriage return (\r), we check the next character for a line feed (\n). If so we consume it and act as
// if the carriage return was a line feed.
$lineEnded = $currentChar === "\n";
if ($currentChar === "\r") {
$lineEnded = true;
Expand Down
2 changes: 1 addition & 1 deletion test/Reflection/TestAsset/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function function1()
/**
* Zend Function Two
*
* This is the long description for funciton two
* This is the long description for function two
*
* @param string $one
* @param string $two
Expand Down