diff --git a/core/modules/color/color.js b/core/modules/color/color.js
index 62eab38..7a91cf3 100644
--- a/core/modules/color/color.js
+++ b/core/modules/color/color.js
@@ -142,14 +142,14 @@
           // Update locked values.
           if (propagate) {
             i = input.i;
-            for (j = i + 1; ; ++j) {
+            for (j = i + 1; true; ++j) {
               if (!locks[j - 1] || $(locks[j - 1]).is('.unlocked')) {
                 break;
               }
               matched = shift_color(color, reference[input.key], reference[inputs[j].key]);
               callback(inputs[j], matched, false);
             }
-            for (j = i - 1; ; --j) {
+            for (j = i - 1; true; --j) {
               if (!locks[j] || $(locks[j]).is('.unlocked')) {
                 break;
               }
diff --git a/core/modules/color/lib/Drupal/color/Tests/ColorTest.php b/core/modules/color/lib/Drupal/color/Tests/ColorTest.php
index 2e14d68..9181781 100644
--- a/core/modules/color/lib/Drupal/color/Tests/ColorTest.php
+++ b/core/modules/color/lib/Drupal/color/Tests/ColorTest.php
@@ -21,10 +21,13 @@ class ColorTest extends WebTestBase {
    */
   public static $modules = array('color', 'color_test');
 
-  protected $big_user;
+  protected $bigUser;
   protected $themes;
   protected $colorTests;
 
+  /**
+   * Tests the Color module functionality.
+   */
   public static function getInfo() {
     return array(
       'name' => 'Color functionality',
@@ -33,11 +36,14 @@ public static function getInfo() {
     );
   }
 
-  function setUp() {
+  /**
+   * Tests the Color module functionality.
+   */
+  public function setUp() {
     parent::setUp();
 
     // Create users.
-    $this->big_user = $this->drupalCreateUser(array('administer themes'));
+    $this->bigUser = $this->drupalCreateUser(array('administer themes'));
 
     // This tests the color module in Bartik.
     $this->themes = array(
@@ -54,7 +60,7 @@ function setUp() {
     );
     theme_enable(array_keys($this->themes));
 
-    // Array filled with valid and not valid color values
+    // Array filled with valid and not valid color values.
     $this->colorTests = array(
       '#000' => TRUE,
       '#123456' => TRUE,
@@ -71,22 +77,22 @@ function setUp() {
   /**
    * Tests the Color module functionality.
    */
-  function testColor() {
+  public function testColor() {
     foreach ($this->themes as $theme => $test_values) {
-      $this->_testColor($theme, $test_values);
+      $this->themetestColor($theme, $test_values);
     }
   }
 
   /**
    * Tests the Color module functionality using the given theme.
    */
-  function _testColor($theme, $test_values) {
+  public function themetestColor($theme, $test_values) {
     \Drupal::config('system.theme')
       ->set('default', $theme)
       ->save();
     $settings_path = 'admin/appearance/settings/' . $theme;
 
-    $this->drupalLogin($this->big_user);
+    $this->drupalLogin($this->bigUser);
     $this->drupalGet($settings_path);
     $this->assertResponse(200);
     $edit['scheme'] = '';
@@ -97,11 +103,9 @@ function _testColor($theme, $test_values) {
     $stylesheets = \Drupal::config('color.' . $theme)->get('stylesheets');
     foreach ($stylesheets as $stylesheet) {
       $this->assertPattern('|' . file_create_url($stylesheet) . '|', 'Make sure the color stylesheet is included in the content. (' . $theme . ')');
-      $stylesheet_content = join("\n", file($stylesheet));
+      $stylesheet_content = implode("\n", file($stylesheet));
       $this->assertTrue(strpos($stylesheet_content, 'color: #123456') !== FALSE, 'Make sure the color we changed is in the color stylesheet. (' . $theme . ')');
     }
-
-
     $this->drupalGet($settings_path);
     $this->assertResponse(200);
     $edit['scheme'] = $test_values['scheme'];
@@ -110,7 +114,7 @@ function _testColor($theme, $test_values) {
     $this->drupalGet('<front>');
     $stylesheets = \Drupal::config('color.' . $theme)->get('stylesheets');
     foreach ($stylesheets as $stylesheet) {
-      $stylesheet_content = join("\n", file($stylesheet));
+      $stylesheet_content = implode("\n", file($stylesheet));
       $this->assertTrue(strpos($stylesheet_content, 'color: ' . $test_values['scheme_color']) !== FALSE, 'Make sure the color we changed is in the color stylesheet. (' . $theme . ')');
     }
 
@@ -122,7 +126,7 @@ function _testColor($theme, $test_values) {
     $stylesheets = \Drupal::state()->get('drupal_css_cache_files') ?: array();
     $stylesheet_content = '';
     foreach ($stylesheets as $uri) {
-      $stylesheet_content .= join("\n", file(drupal_realpath($uri)));
+      $stylesheet_content .= implode("\n", file(drupal_realpath($uri)));
     }
     $this->assertTrue(strpos($stylesheet_content, 'public://') === FALSE, 'Make sure the color paths have been translated to local paths. (' . $theme . ')');
     $config->set('css.preprocess', 0);
@@ -132,20 +136,19 @@ function _testColor($theme, $test_values) {
   /**
    * Tests whether the provided color is valid.
    */
-  function testValidColor() {
+  public function testValidColor() {
     \Drupal::config('system.theme')
       ->set('default', 'bartik')
       ->save();
     $settings_path = 'admin/appearance/settings/bartik';
 
-    $this->drupalLogin($this->big_user);
+    $this->drupalLogin($this->bigUser);
     $edit['scheme'] = '';
 
     foreach ($this->colorTests as $color => $is_valid) {
       $edit['palette[bg]'] = $color;
       $this->drupalPostForm($settings_path, $edit, t('Save configuration'));
-
-      if($is_valid) {
+      if ($is_valid) {
         $this->assertText('The configuration options have been saved.');
       }
       else {
