From 120111a9569799475bfe7378476d6154d1251da6 Mon Sep 17 00:00:00 2001 From: xjm Date: Fri, 23 Oct 2015 20:26:25 -0700 Subject: [PATCH] Issue #2588529 by David_Rothstein, cilefen, kikoalonsob: Code indentation is incorrect in simpletest_generate_file() --- core/modules/simpletest/simpletest.module | 32 +++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module index 7a0638695aa5..b99435222f1e 100644 --- a/core/modules/simpletest/simpletest.module +++ b/core/modules/simpletest/simpletest.module @@ -534,24 +534,24 @@ function simpletest_classloader_register() { */ function simpletest_generate_file($filename, $width, $lines, $type = 'binary-text') { $text = ''; - for ($i = 0; $i < $lines; $i++) { - // Generate $width - 1 characters to leave space for the "\n" character. - for ($j = 0; $j < $width - 1; $j++) { - switch ($type) { - case 'text': - $text .= chr(rand(32, 126)); - break; - case 'binary': - $text .= chr(rand(0, 31)); - break; - case 'binary-text': - default: - $text .= rand(0, 1); - break; - } + for ($i = 0; $i < $lines; $i++) { + // Generate $width - 1 characters to leave space for the "\n" character. + for ($j = 0; $j < $width - 1; $j++) { + switch ($type) { + case 'text': + $text .= chr(rand(32, 126)); + break; + case 'binary': + $text .= chr(rand(0, 31)); + break; + case 'binary-text': + default: + $text .= rand(0, 1); + break; } - $text .= "\n"; } + $text .= "\n"; + } // Create filename. file_put_contents('public://' . $filename . '.txt', $text);