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

Commit

Permalink
Merge branch 'cs/various-things' of https://github.com/Maks3w/zf2
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Csrf.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function getSalt()
/**
* Retrieve CSRF token
*
* If no CSRF token currently exists, or should be regenrated,
* If no CSRF token currently exists, or should be regenrated,
* generates one.
*
* @param bool $regenerate default false
Expand Down
6 changes: 3 additions & 3 deletions src/DateStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ protected function convertToDateTime($param)
if (is_int($param)) {
// Convert from timestamp
$dateObj = date_create("@$param");
} else if (is_string($param)) {
} elseif (is_string($param)) {
// Custom week format support
if (strpos($this->getFormat(), 'Y-\WW') === 0
&& preg_match('/^([0-9]{4})\-W([0-9]{2})/', $param, $matches)
Expand Down Expand Up @@ -339,9 +339,9 @@ public function isValid($value)
&& 0 == $diffParts['minutes'] && 0 == $diffParts['seconds']
) {
return true;
} else if ('minutes' === $intervalUnit && 0 == $diffParts['seconds']) {
} elseif ('minutes' === $intervalUnit && 0 == $diffParts['seconds']) {
return true;
} else if ('seconds' === $intervalUnit) {
} elseif ('seconds' === $intervalUnit) {
return true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/StaticValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class StaticValidator

/**
* Set plugin manager to use for locating validators
*
*
* @param ValidatorPluginManager|null $plugins
* @return void
*/
Expand All @@ -38,7 +38,7 @@ public static function setPluginManager(ValidatorPluginManager $plugins = null)

/**
* Get plugin manager for locating validators
*
*
* @return ValidatorPluginManager
*/
public static function getPluginManager()
Expand Down
4 changes: 2 additions & 2 deletions test/DateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public function testUseManualFormat()
$this->assertFalse($this->validator->setFormat('d/m/Y')->isValid('2008/10/22'));
$this->assertTrue($this->validator->setFormat('d/m/Y')->isValid('22/10/08'));
$this->assertFalse($this->validator->setFormat('d/m/Y')->isValid('22/10'));
// Omitting the following assertion, as it varies from 5.3.3 to 5.3.11,
// and there is no indication in the PHP changelog as to when or why it
// Omitting the following assertion, as it varies from 5.3.3 to 5.3.11,
// and there is no indication in the PHP changelog as to when or why it
// may have changed. Leaving for posterity, to indicate original expectation.
// $this->assertFalse($this->validator->setFormat('s')->isValid(0));
}
Expand Down
2 changes: 1 addition & 1 deletion test/StaticValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function testMaximumErrorMessageLength()

$loader = new TestAsset\ArrayTranslator();
$loader->translations = array(
Alpha::INVALID => 'This is the translated message for %value%',
Alpha::INVALID => 'This is the translated message for %value%',
);
$translator = new Translator\Translator();
$translator->getPluginManager()->setService('default', $loader);
Expand Down

0 comments on commit 6467186

Please sign in to comment.