Skip to content

Commit

Permalink
change name to LocalizedNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Sep 4, 2014
1 parent 7e3338b commit c3f9f12
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Error/ErrorHandler.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* *
* If you don't want to take control of the exception handling, but want to change how exceptions are * If you don't want to take control of the exception handling, but want to change how exceptions are
* rendered you can use `exceptionRenderer` option to choose a class to render exception pages. By default * rendered you can use `exceptionRenderer` option to choose a class to render exception pages. By default
* `Cake\Error\ExceptionRenderer` is used. Your custom exception renderer class should be placed in app/Error. * `Cake\Error\ExceptionRenderer` is used. Your custom exception renderer class should be placed in src/Error.
* *
* Your custom renderer should expect an exception in its constructor, and implement a render method. * Your custom renderer should expect an exception in its constructor, and implement a render method.
* Failing to do so will cause additional errors. * Failing to do so will cause additional errors.
Expand Down
2 changes: 1 addition & 1 deletion src/I18n/LocaleNumber.php → src/I18n/LocalizedNumber.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* *
* @link http://book.cakephp.org/3.0/en/ * @link http://book.cakephp.org/3.0/en/
*/ */
class LocaleNumber extends Number { class LocalizedNumber extends Number {


/** /**
* Returns a formatted-for-humans file size. * Returns a formatted-for-humans file size.
Expand Down
6 changes: 3 additions & 3 deletions src/View/Helper/NumberHelper.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ class NumberHelper extends Helper {
* @var mixed * @var mixed
*/ */
protected $_defaultConfig = [ protected $_defaultConfig = [
'engine' => 'Cake\I18n\LocaleNumber' 'engine' => 'Cake\I18n\LocalizedNumber'
]; ];


/** /**
* Cake\I18n\LocaleNumber instance * Cake\I18n\LocalizedNumber instance
* *
* @var \Cake\I18n\LocaleNumber * @var \Cake\I18n\LocalizedNumber
*/ */
protected $_engine = null; protected $_engine = null;


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@
namespace Cake\Test\TestCase\I18n; namespace Cake\Test\TestCase\I18n;


use Cake\I18n\I18n; use Cake\I18n\I18n;
use Cake\I18n\LocaleNumber; use Cake\I18n\LocalizedNumber;
use Cake\TestSuite\TestCase; use Cake\TestSuite\TestCase;



/** /**
* NumberTest class * NumberTest class
* *
*/ */
class LocaleNumberTest extends TestCase { class LocalizedNumberTest extends TestCase {


/** /**
* setUp method * setUp method
Expand All @@ -34,7 +33,7 @@ class LocaleNumberTest extends TestCase {
*/ */
public function setUp() { public function setUp() {
parent::setUp(); parent::setUp();
$this->Number = new LocaleNumber(); $this->Number = new LocalizedNumber();
$this->locale = I18n::defaultLocale(); $this->locale = I18n::defaultLocale();
} }


Expand Down

0 comments on commit c3f9f12

Please sign in to comment.