Skip to content

Commit

Permalink
Rename locale classes. Support PHP 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
romeOz committed May 20, 2015
1 parent 991129a commit 7dccf4e
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions src/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ protected function defaultRules()
'bool' => [
'class' => BoolRule::className(),
'locales' => [
'en' => \rock\validate\locale\en\Bool::className(),
'ru' => \rock\validate\locale\ru\Bool::className(),
'en' => \rock\validate\locale\en\BoolLocale::className(),
'ru' => \rock\validate\locale\ru\BoolLocale::className(),
]
],
'call' => [
Expand Down Expand Up @@ -694,8 +694,8 @@ protected function defaultRules()
'float' => [
'class' => FloatRule::className(),
'locales' => [
'en' => \rock\validate\locale\en\Float::className(),
'ru' => \rock\validate\locale\ru\Float::className(),
'en' => \rock\validate\locale\en\FloatLocale::className(),
'ru' => \rock\validate\locale\ru\FloatLocale::className(),
]
],
'graph' => [
Expand All @@ -715,8 +715,8 @@ protected function defaultRules()
'int' => [
'class' => IntRule::className(),
'locales' => [
'en' => \rock\validate\locale\en\Int::className(),
'ru' => \rock\validate\locale\ru\Int::className(),
'en' => \rock\validate\locale\en\IntLocale::className(),
'ru' => \rock\validate\locale\ru\IntLocale::className(),
]
],
'ip' => [
Expand Down Expand Up @@ -848,8 +848,8 @@ protected function defaultRules()
'string' => [
'class' => \rock\validate\rules\StringRule::className(),
'locales' => [
'en' => \rock\validate\locale\en\String::className(),
'ru' => \rock\validate\locale\ru\String::className(),
'en' => \rock\validate\locale\en\StringLocale::className(),
'ru' => \rock\validate\locale\ru\StringLocale::className(),
]
],
'symbolicLink' => [
Expand Down
2 changes: 1 addition & 1 deletion src/locale/en/Bool.php → src/locale/en/BoolLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use rock\validate\locale\Locale;

class Bool extends Locale
class BoolLocale extends Locale
{
public function defaultTemplates()
{
Expand Down
2 changes: 1 addition & 1 deletion src/locale/en/Float.php → src/locale/en/FloatLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use rock\validate\locale\Locale;

class Float extends Locale
class FloatLocale extends Locale
{
public function defaultTemplates()
{
Expand Down
2 changes: 1 addition & 1 deletion src/locale/en/Int.php → src/locale/en/IntLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use rock\validate\locale\Locale;

class Int extends Locale
class IntLocale extends Locale
{
public function defaultTemplates()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use rock\validate\locale\Locale;

class String extends Locale
class StringLocale extends Locale
{
public function defaultTemplates()
{
Expand Down
2 changes: 1 addition & 1 deletion src/locale/ru/Bool.php → src/locale/ru/BoolLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @codeCoverageIgnore
* @package rock\validate\locale\ru
*/
class Bool extends Locale
class BoolLocale extends Locale
{
public function defaultTemplates()
{
Expand Down
2 changes: 1 addition & 1 deletion src/locale/ru/Float.php → src/locale/ru/FloatLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @codeCoverageIgnore
* @package rock\validate\locale\ru
*/
class Float extends Locale
class FloatLocale extends Locale
{
public function defaultTemplates()
{
Expand Down
2 changes: 1 addition & 1 deletion src/locale/ru/Int.php → src/locale/ru/IntLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @codeCoverageIgnore
* @package rock\validate\locale\ru
*/
class Int extends Locale
class IntLocale extends Locale
{
public function defaultTemplates()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @codeCoverageIgnore
* @package rock\validate\locale\ru
*/
class String extends Locale
class StringLocale extends Locale
{
public function defaultTemplates()
{
Expand Down

0 comments on commit 7dccf4e

Please sign in to comment.