From 37c329d7153b65fd2430fa42e8af8e8a0cbc0a41 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 13 Oct 2018 14:17:28 +0200 Subject: Trim trailing whitespace in source code files --- scripts/dev/find_tested.php | 18 +++++++++--------- scripts/dev/gen_verify_stub | 2 +- scripts/man1/phpize.1.in | 2 +- scripts/phpize.in | 12 ++++++------ 4 files changed, 17 insertions(+), 17 deletions(-) (limited to 'scripts') diff --git a/scripts/dev/find_tested.php b/scripts/dev/find_tested.php index 33d53d8163..c2a223b776 100755 --- a/scripts/dev/find_tested.php +++ b/scripts/dev/find_tested.php @@ -72,7 +72,7 @@ $extension_method_info = mark_methods_as_tested($extension_method_info, $phpt_fi /** * The loop to output the test coverage info * Should output: Extension, Class Name, Method/Function Name, Test Status, Test Files - */ + */ foreach($extension_method_info as $record) { echo $record[EXTENSION_NAME] . ","; echo $record[CLASS_NAME] . ","; @@ -85,7 +85,7 @@ foreach($extension_method_info as $record) { * Marks the "tested" status of methods in $method_info according * to whether they are tested in $phpt_files */ -function mark_methods_as_tested($method_info, $phpt_files) { +function mark_methods_as_tested($method_info, $phpt_files) { foreach($phpt_files as $phpt_file) { $tested_functions = extract_tests($phpt_file); @@ -98,7 +98,7 @@ function mark_methods_as_tested($method_info, $phpt_files) { // matched the method name if ($current_method_record[IS_DUPLICATE] == true) { // we cannot be sure which class this method corresponds to, - // so mark method as needing to be verified + // so mark method as needing to be verified $current_method_record[IS_TESTED] = "verify"; } else { $current_method_record[IS_TESTED] = "yes"; @@ -115,7 +115,7 @@ function mark_methods_as_tested($method_info, $phpt_files) { * returns an array containing a record for each defined method. */ function populate_method_info() { - + $method_info = array(); // get functions @@ -198,21 +198,21 @@ function get_phpt_files($dir, &$phpt_file_count, &$all_phpt) } /** - * Extract tests from a specified file, returns an array of tested function tokens - */ + * Extract tests from a specified file, returns an array of tested function tokens + */ function extract_tests($file) { $code = file_get_contents($file); - + if (!preg_match('/--FILE--\s*(.*)\s*--(EXPECTF|EXPECTREGEX|EXPECT)?--/is', $code, $r)) { //print "Unable to get code in ".$file."\n"; return array(); } - + $tokens = token_get_all($r[1]); $functions = array_filter($tokens, 'filter_functions'); $functions = array_map( 'map_token_value',$functions); $functions = array_unique($functions); - + return $functions; } diff --git a/scripts/dev/gen_verify_stub b/scripts/dev/gen_verify_stub index 1dc3ba0cee..ac6dc4434d 100755 --- a/scripts/dev/gen_verify_stub +++ b/scripts/dev/gen_verify_stub @@ -39,7 +39,7 @@ do done for TARBALL in "$PHPROOT/php-$RELEASE_VER.tar.bz2" "$PHPROOT/php-$RELEASE_VER.tar.gz" "$PHPROOT/php-$RELEASE_VER.tar.xz" -do +do basename $TARBALL echo "SHA256 hash: `sha256sum $TARBALL | cut -d' ' -f1`"; echo PGP signature: diff --git a/scripts/man1/phpize.1.in b/scripts/man1/phpize.1.in index d2852fdcc5..b885326bfe 100644 --- a/scripts/man1/phpize.1.in +++ b/scripts/man1/phpize.1.in @@ -44,5 +44,5 @@ available through the world-wide-web at the following url: .P If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to -.B license@php.net +.B license@php.net so we can mail you a copy immediately. diff --git a/scripts/phpize.in b/scripts/phpize.in index a2ab4b5055..26ecfc6f65 100644 --- a/scripts/phpize.in +++ b/scripts/phpize.in @@ -31,7 +31,7 @@ phpize_no_configm4() echo "Cannot find config.m4. " echo "Make sure that you run '$0$clean' in the top level source directory of the module" - echo + echo } phpize_clean() @@ -107,8 +107,8 @@ phpize_check_shtool() if test ! -x "$builddir/build/shtool"; then cat < aclocal.m4) @@ -164,7 +164,7 @@ phpize_autotools() # Main script -case "$1" in +case "$1" in # Cleanup --clean) phpize_check_configm4 1 -- cgit v1.2.1