diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-05-10 06:55:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-05-10 06:55:09 +0000 |
commit | bdf980c40b7a3f92dd7ac291699e1435592b1301 (patch) | |
tree | c8e373b58ba2136ab286a154b371363e84e03b33 /modules/simpletest/simpletest.install | |
parent | a96ffc1185146676a05579471fb66d2ef1395284 (diff) | |
download | brdo-bdf980c40b7a3f92dd7ac291699e1435592b1301.tar.gz brdo-bdf980c40b7a3f92dd7ac291699e1435592b1301.tar.bz2 |
- Patch by boombatower: fixed code style of simpletests.
Diffstat (limited to 'modules/simpletest/simpletest.install')
-rw-r--r-- | modules/simpletest/simpletest.install | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/simpletest/simpletest.install b/modules/simpletest/simpletest.install index 25b828698..074d250a6 100644 --- a/modules/simpletest/simpletest.install +++ b/modules/simpletest/simpletest.install @@ -29,10 +29,10 @@ function simpletest_install() { // Copy other test files for consistency. $files = file_scan_directory($path, '(html|image|javascript|php|sql)-.*'); if (count($files) == 0) { - $original = drupal_get_path('module', 'simpletest') .'/files'; + $original = drupal_get_path('module', 'simpletest') . '/files'; $files = file_scan_directory($original, '(html|image|javascript|php|sql)-.*'); foreach ($files as $file) { - file_copy($file->filename, $path .'/'. $file->basename); + file_copy($file->filename, $path . '/' . $file->basename); } $generated = TRUE; } @@ -70,7 +70,7 @@ function simpletest_generate_file($filename, $width, $lines, $type = 'binary-tex // Create filename. $path = file_directory_path() . '/simpletest/'; $count = simpletest_get_file_count($path, $filename); - file_put_contents($path . $filename .'-'. ($count + 1) .'.txt', $text); + file_put_contents($path . $filename . '-' . ($count + 1) . '.txt', $text); } /** @@ -80,7 +80,7 @@ function simpletest_get_file_count($directory, $filename) { $files = scandir($directory); $count = 0; foreach ($files as $file) { - if (preg_match('/'. $filename .'.*?/', $file)) { + if (preg_match('/' . $filename . '.*?/', $file)) { $count++; } } |