diff --git a/src/Helper/Gravatar.php b/src/Helper/Gravatar.php index 5ac34a17..4e0e1542 100644 --- a/src/Helper/Gravatar.php +++ b/src/Helper/Gravatar.php @@ -59,7 +59,7 @@ class Gravatar extends AbstractHtmlElement ); /** - * Email Adress + * Email Address * * @var string */ @@ -77,13 +77,13 @@ class Gravatar extends AbstractHtmlElement * * $options may include the following: * - 'img_size' int height of img to return - * - 'default_img' string img to return if email adress has not found + * - 'default_img' string img to return if email address has not found * - 'rating' string rating parameter for avatar * - 'secure' bool load from the SSL or Non-SSL location * * @see http://pl.gravatar.com/site/implement/url * @see http://pl.gravatar.com/site/implement/url More information about gravatar's service. - * @param string|null $email Email adress. + * @param string|null $email Email address. * @param null|array $options Options * @param array $attribs Attributes for image tag (title, alt etc.) * @return Zend\View\Helper\Gravatar @@ -204,7 +204,7 @@ public function getRating() } /** - * Set email adress + * Set email address * * @param string $email * @return Gravatar @@ -216,7 +216,7 @@ public function setEmail( $email ) } /** - * Get email adress + * Get email address * * @return string */ @@ -292,7 +292,7 @@ protected function getGravatarUrl() } /** - * Get avatar url (including size, rating and default image oprions) + * Get avatar url (including size, rating and default image options) * * @return string */ diff --git a/src/Helper/HeadLink.php b/src/Helper/HeadLink.php index 733f6fc9..3cda1544 100644 --- a/src/Helper/HeadLink.php +++ b/src/Helper/HeadLink.php @@ -330,7 +330,7 @@ public function createData(array $attributes) * Create item for stylesheet link item * * @param array $args - * @return stdClass|false Returns fals if stylesheet is a duplicate + * @return stdClass|false Returns false if stylesheet is a duplicate */ public function createDataStylesheet(array $args) { diff --git a/src/Helper/HeadMeta.php b/src/Helper/HeadMeta.php index 45390dfc..86015b07 100644 --- a/src/Helper/HeadMeta.php +++ b/src/Helper/HeadMeta.php @@ -79,7 +79,7 @@ public function __invoke($content = null, $keyValue = null, $keyType = 'name', $ } /** - * Normalize type attribut of meta + * Normalize type attribute of meta * * @param $type type in CamelCase * @return string @@ -107,11 +107,11 @@ protected function normalizeType($type) * * Allows the following 'virtual' methods: * - appendName($keyValue, $content, $modifiers = array()) - * - offsetGetName($index, $keyValue, $content, $modifers = array()) + * - offsetGetName($index, $keyValue, $content, $modifiers = array()) * - prependName($keyValue, $content, $modifiers = array()) * - setName($keyValue, $content, $modifiers = array()) * - appendHttpEquiv($keyValue, $content, $modifiers = array()) - * - offsetGetHttpEquiv($index, $keyValue, $content, $modifers = array()) + * - offsetGetHttpEquiv($index, $keyValue, $content, $modifiers = array()) * - prependHttpEquiv($keyValue, $content, $modifiers = array()) * - setHttpEquiv($keyValue, $content, $modifiers = array()) * - appendProperty($keyValue, $content, $modifiers = array()) diff --git a/src/Helper/HeadScript.php b/src/Helper/HeadScript.php index 10eb562a..27fadc9f 100644 --- a/src/Helper/HeadScript.php +++ b/src/Helper/HeadScript.php @@ -22,7 +22,7 @@ class HeadScript extends Placeholder\Container\AbstractStandalone { /**#@+ - * Script type contants + * Script type constants * @const string */ const FILE = 'FILE'; diff --git a/src/Helper/Navigation/AbstractHelper.php b/src/Helper/Navigation/AbstractHelper.php index 3f7dda96..ce87945f 100644 --- a/src/Helper/Navigation/AbstractHelper.php +++ b/src/Helper/Navigation/AbstractHelper.php @@ -74,7 +74,7 @@ abstract class AbstractHelper extends View\Helper\AbstractHtmlElement implements protected $acl; /** - * Wheter invisible items should be rendered by this helper + * Whether invisible items should be rendered by this helper * * @var bool */ diff --git a/src/Helper/Navigation/Menu.php b/src/Helper/Navigation/Menu.php index 7f2cb609..de8ab149 100644 --- a/src/Helper/Navigation/Menu.php +++ b/src/Helper/Navigation/Menu.php @@ -311,7 +311,7 @@ protected function normalizeOptions(array $options = array()) // Render methods: /** - * Renders the deepest active menu within [$minDepth, $maxDeth], (called + * Renders the deepest active menu within [$minDepth, $maxDepth], (called * from {@link renderMenu()}) * * @param AbstractContainer $container container to render @@ -407,7 +407,7 @@ protected function renderNormalMenu(AbstractContainer $container, $depth = $iterator->getDepth(); $isActive = $page->isActive(true); if ($depth < $minDepth || !$this->accept($page)) { - // page is below minDepth or not accepted by acl/visibilty + // page is below minDepth or not accepted by acl/visibility continue; } elseif ($onlyActive && !$isActive) { // page is not active itself, but might be in the active branch diff --git a/src/Helper/Navigation/Sitemap.php b/src/Helper/Navigation/Sitemap.php index 62d17bfe..84df02db 100644 --- a/src/Helper/Navigation/Sitemap.php +++ b/src/Helper/Navigation/Sitemap.php @@ -125,7 +125,7 @@ public function getFormatOutput() /** * Sets whether the XML declaration should be used in output * - * @param bool $useXmlDecl whether XML delcaration should be rendered + * @param bool $useXmlDecl whether XML declaration should be rendered * @returnSitemap fluent interface, returns self */ public function setUseXmlDeclaration($useXmlDecl) diff --git a/src/Helper/Placeholder/Container/AbstractStandalone.php b/src/Helper/Placeholder/Container/AbstractStandalone.php index 1d0c2020..4cf6c065 100644 --- a/src/Helper/Placeholder/Container/AbstractStandalone.php +++ b/src/Helper/Placeholder/Container/AbstractStandalone.php @@ -14,7 +14,7 @@ use Zend\View\Helper\Placeholder\Registry; /** - * Base class for targetted placeholder helpers + * Base class for targeted placeholder helpers * * @package Zend_View * @subpackage Helper @@ -40,8 +40,8 @@ abstract class AbstractStandalone protected $regKey; /** - * Flag wheter to automatically escape output, must also be - * enforced in the child class if __toString/toString is overriden + * Flag whether to automatically escape output, must also be + * enforced in the child class if __toString/toString is overridden * @var book */ protected $autoEscape = true; diff --git a/test/Helper/HeadStyleTest.php b/test/Helper/HeadStyleTest.php index 326e9605..77f606f7 100644 --- a/test/Helper/HeadStyleTest.php +++ b/test/Helper/HeadStyleTest.php @@ -347,7 +347,7 @@ public function testMediaAttributeAsArray() } - public function testMediaAttributeAsCommaSeperatedString() + public function testMediaAttributeAsCommaSeparatedString() { $this->helper->setIndent(4); $this->helper->appendStyle(' diff --git a/test/PhpRendererTest.php b/test/PhpRendererTest.php index 348e23e2..2f5d977c 100644 --- a/test/PhpRendererTest.php +++ b/test/PhpRendererTest.php @@ -183,7 +183,7 @@ public function testCanSpecifyArrayForVarsAndGetAlwaysArrayObject() /** * @group ZF2-68 */ - public function testPassingVariablesObjectToSetVarsShouldUseItDirectoy() + public function testPassingVariablesObjectToSetVarsShouldUseItDirectory() { $vars = new Variables(array('foo' => '

Bar

')); $this->renderer->setVars($vars);