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

Commit

Permalink
Merge pull request zendframework/zendframework#2101 from pborreli/typos
Browse files Browse the repository at this point in the history
Fixed few typos
  • Loading branch information
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/Pattern/CaptureCache.php
Expand Up @@ -351,7 +351,7 @@ protected function createDirectoryStructure($pathname)
foreach ($parts as $part) {
$path.= \DIRECTORY_SEPARATOR . $part;

// create a single directory, set and reset umask immediatly
// create a single directory, set and reset umask immediately
$umask = ($umask !== false) ? umask($umask) : false;
$res = mkdir($path, ($perm === false) ? 0777 : $perm, false);
if ($umask !== false) {
Expand Down
2 changes: 1 addition & 1 deletion src/Pattern/OutputCache.php
Expand Up @@ -72,7 +72,7 @@ public function start($key)
}

/**
* Stops bufferung output, write buffered data to cache using the given key on start()
* Stops buffering output, write buffered data to cache using the given key on start()
* and displays the buffer.
*
* @return boolean TRUE on success, FALSE on failure writing to cache
Expand Down
2 changes: 1 addition & 1 deletion src/Pattern/PatternOptions.php
Expand Up @@ -641,7 +641,7 @@ public function setPublicDir($publicDir)

if (!is_dir($publicDir)) {
throw new Exception\InvalidArgumentException(
"Public directory '{$publicDir}' not found or not a directoy"
"Public directory '{$publicDir}' not found or not a directory"
);
} elseif (!is_writable($publicDir)) {
throw new Exception\InvalidArgumentException(
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Adapter/AbstractAdapter.php
Expand Up @@ -1569,7 +1569,7 @@ protected function normalizeKeys(array & $keys)
}

/**
* Validates and normalizes an array of key-value paírs
* Validates and normalizes an array of key-value pairs
*
* @param array $keyValuePairs
* @return void
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Adapter/ApcIterator.php
Expand Up @@ -22,7 +22,7 @@ class ApcIterator implements IteratorInterface
{

/**
* The apc storage intance
* The apc storage instance
*
* @var Apc
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Adapter/Dba.php
Expand Up @@ -509,7 +509,7 @@ protected function _open()
}

/**
* Close database file if opend
* Close database file if opened
*
* @return void
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Adapter/DbaIterator.php
Expand Up @@ -21,7 +21,7 @@
class DbaIterator implements IteratorInterface
{
/**
* The apc storage intance
* The apc storage instance
*
* @var Apc
*/
Expand Down Expand Up @@ -184,7 +184,7 @@ public function valid()
public function rewind()
{
if ($this->currentInternalKey === false) {
throw new Exception\RuntimeException("Iterater is on an invalid state");
throw new Exception\RuntimeException("Iterator is on an invalid state");
}

$this->currentInternalKey = dba_firstkey($this->handle);
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Adapter/Filesystem.php
Expand Up @@ -1444,7 +1444,7 @@ protected function prepareDirectoryStructure($file)
foreach ($parts as $part) {
$path.= \DIRECTORY_SEPARATOR . $part;

// create a single directory, set and reset umask immediatly
// create a single directory, set and reset umask immediately
$umask = ($umask !== false) ? umask($umask) : false;
$res = mkdir($path, ($perm === false) ? 0777 : $perm, false);
if ($umask !== false) {
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Adapter/FilesystemIterator.php
Expand Up @@ -22,7 +22,7 @@ class FilesystemIterator implements IteratorInterface
{

/**
* The apc storage intance
* The apc storage instance
*
* @var Apc
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Storage/Adapter/FilesystemOptions.php
Expand Up @@ -132,7 +132,7 @@ public function setCacheDir($cacheDir)
if ($cacheDir !== null) {
if (!is_dir($cacheDir)) {
throw new Exception\InvalidArgumentException(
"Cache directory '{$cacheDir}' not found or not a directoy"
"Cache directory '{$cacheDir}' not found or not a directory"
);
} elseif (!is_writable($cacheDir)) {
throw new Exception\InvalidArgumentException(
Expand Down Expand Up @@ -339,14 +339,14 @@ public function getFilePermission()
/**
* Set namespace separator
*
* @param string $namespaceSeperator
* @param string $namespaceSeparator
* @return FilesystemOptions
*/
public function setNamespaceSeparator($namespaceSeperator)
public function setNamespaceSeparator($namespaceSeparator)
{
$namespaceSeperator = (string) $namespaceSeperator;
$this->triggerOptionEvent('namespace_separator', $namespaceSeperator);
$this->namespaceSeparator = $namespaceSeperator;
$namespaceSeparator = (string) $namespaceSeparator;
$this->triggerOptionEvent('namespace_separator', $namespaceSeparator);
$this->namespaceSeparator = $namespaceSeparator;
return $this;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Capabilities.php
Expand Up @@ -433,7 +433,7 @@ public function getMaxKeyLength()
}

/**
* Set maximum key lenth
* Set maximum key length
*
* @param stdClass $marker
* @param int $maxKeyLength
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Plugin/PluginOptions.php
Expand Up @@ -105,7 +105,7 @@ public function getClearingFactor()
* Used by:
* - ExceptionHandler
*
* @param callable EexceptionCallback
* @param callable ExceptionCallback
* @return PluginOptions
*/
public function setExceptionCallback($exceptionCallback)
Expand Down

0 comments on commit e9d78fe

Please sign in to comment.