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

Commit

Permalink
Merge branch 'develop' of git://github.com/zendframework/zf2 into hot…
Browse files Browse the repository at this point in the history
…fix/cache-empty-namespace
  • Loading branch information
Show file tree
Hide file tree
Showing 54 changed files with 1,604 additions and 2,278 deletions.
14 changes: 7 additions & 7 deletions src/AbstractValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ public static function setDefaultTranslator(
Translator $translator = null, $textDomain = null
)
{
self::$defaultTranslator = $translator;
static::$defaultTranslator = $translator;
if (null !== $textDomain) {
self::setDefaultTranslatorTextDomain($textDomain);
}
Expand All @@ -493,7 +493,7 @@ public static function setDefaultTranslator(
*/
public static function getDefaultTranslator()
{
return self::$defaultTranslator;
return static::$defaultTranslator;
}

/**
Expand All @@ -503,7 +503,7 @@ public static function getDefaultTranslator()
*/
public static function hasDefaultTranslator()
{
return (bool) self::$defaultTranslator;
return (bool) static::$defaultTranslator;
}

/**
Expand All @@ -514,7 +514,7 @@ public static function hasDefaultTranslator()
*/
public static function setDefaultTranslatorTextDomain($textDomain = 'default')
{
self::$defaultTranslatorTextDomain = $textDomain;
static::$defaultTranslatorTextDomain = $textDomain;
}

/**
Expand All @@ -524,7 +524,7 @@ public static function setDefaultTranslatorTextDomain($textDomain = 'default')
*/
public static function getDefaultTranslatorTextDomain()
{
return self::$defaultTranslatorTextDomain;
return static::$defaultTranslatorTextDomain;
}

/**
Expand Down Expand Up @@ -556,7 +556,7 @@ public function isTranslatorEnabled()
*/
public static function getMessageLength()
{
return self::$messageLength;
return static::$messageLength;
}

/**
Expand All @@ -566,7 +566,7 @@ public static function getMessageLength()
*/
public static function setMessageLength($length = -1)
{
self::$messageLength = $length;
static::$messageLength = $length;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Barcode/Code128.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ protected function chr128($value, $set)
return -1;
}
} else {
if ($ord <= 106) {
return ($ord + 32);
if ($value <= 106) {
return ($value + 32);
} else {
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Csrf.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function getSessionName()
*/
public function setTimeout($ttl)
{
$this->timeout = ($ttl !== null) ? (int)$ttl : null;
$this->timeout = ($ttl !== null) ? (int) $ttl : null;
return $this;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Db/AbstractDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function getField()
*/
public function setField($field)
{
$this->field = (string)$field;
$this->field = (string) $field;
return $this;
}

Expand All @@ -236,7 +236,7 @@ public function getTable()
*/
public function setTable($table)
{
$this->table = (string)$table;
$this->table = (string) $table;
return $this;
}

Expand Down
6 changes: 3 additions & 3 deletions src/Digits.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ public function isValid($value)
return false;
}

if (null === self::$filter) {
self::$filter = new DigitsFilter();
if (null === static::$filter) {
static::$filter = new DigitsFilter();
}

if ($this->getValue() !== self::$filter->filter($this->getValue())) {
if ($this->getValue() !== static::$filter->filter($this->getValue())) {
$this->error(self::NOT_DIGITS);
return false;
}
Expand Down
252 changes: 0 additions & 252 deletions src/File/Count.php

This file was deleted.

Loading

0 comments on commit b634f09

Please sign in to comment.