Browse Source

Fixing style errors.

stickler-ci 6 years ago
parent
commit
97b3b25966
2 changed files with 32 additions and 32 deletions
  1. 1 1
      src/I18n/Number.php
  2. 31 31
      tests/TestCase/I18n/NumberTest.php

+ 1 - 1
src/I18n/Number.php

@@ -257,7 +257,7 @@ class Number
             static::setDefaultCurrency(null);
 
             // This doesn't sem like a useful result to return, but it's what the old version did.
-			// Retaining it for backward compatibility.
+            // Retaining it for backward compatibility.
             return null;
         } elseif ($currency !== null) {
             static::setDefaultCurrency($currency);

+ 31 - 31
tests/TestCase/I18n/NumberTest.php

@@ -25,14 +25,14 @@ use Cake\TestSuite\TestCase;
  */
 class NumberTest extends TestCase
 {
-	/**
-	 * Backup the locale property
-	 *
-	 * @var string
-	 */
-	protected $locale;
-
-	/**
+    /**
+     * Backup the locale property
+     *
+     * @var string
+     */
+    protected $locale;
+
+    /**
      * setUp method
      *
      * @return void
@@ -316,43 +316,43 @@ class NumberTest extends TestCase
     /**
      * Test default currency
      *
-	 * @group deprecated
+     * @group deprecated
      * @return void
      */
     public function testDefaultCurrency()
     {
-		$this->deprecated(function () {
-			$this->assertEquals('USD', $this->Number->defaultCurrency());
+        $this->deprecated(function () {
+            $this->assertEquals('USD', $this->Number->defaultCurrency());
 
-			$this->Number->defaultCurrency(false);
-			I18n::setLocale('es_ES');
-			$this->assertEquals('EUR', $this->Number->defaultCurrency());
+            $this->Number->defaultCurrency(false);
+            I18n::setLocale('es_ES');
+            $this->assertEquals('EUR', $this->Number->defaultCurrency());
 
-			$this->Number->defaultCurrency('JPY');
-			$this->assertEquals('JPY', $this->Number->defaultCurrency());
-		});
+            $this->Number->defaultCurrency('JPY');
+            $this->assertEquals('JPY', $this->Number->defaultCurrency());
+        });
     }
 
-	/**
-	 * Test get default currency
-	 *
-	 * @return void
-	 */
-	public function testGetDefaultCurrency()
-	{
-		$this->assertEquals('USD', $this->Number->getDefaultCurrency());
-	}
-
-	/**
+    /**
+     * Test get default currency
+     *
+     * @return void
+     */
+    public function testGetDefaultCurrency()
+    {
+        $this->assertEquals('USD', $this->Number->getDefaultCurrency());
+    }
+
+    /**
      * Test set default currency
      *
      * @return void
      */
     public function testSetDefaultCurrency()
     {
-		$this->Number->setDefaultCurrency();
-		I18n::setLocale('es_ES');
-		$this->assertEquals('EUR', $this->Number->getDefaultCurrency());
+        $this->Number->setDefaultCurrency();
+        I18n::setLocale('es_ES');
+        $this->assertEquals('EUR', $this->Number->getDefaultCurrency());
 
         $this->Number->setDefaultCurrency('JPY');
         $this->assertEquals('JPY', $this->Number->getDefaultCurrency());