diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-05-26 20:23:11 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-05-26 22:00:17 +0200 |
commit | 2788ab9fa6a503c7d51f98a2a544593c5314326d (patch) | |
tree | 996756441a42cdc5b55d374ac85a316474b989ab /ext/ext_skel.php | |
parent | cc98b880874529b3d0c42a04fc5d7b6cda0c72ea (diff) | |
download | php-git-2788ab9fa6a503c7d51f98a2a544593c5314326d.tar.gz |
Enhance the ext_skel.php script file
- File is now executable
- Shebang added on top
- Normal UTF-8 encoding instead of UTF-8 with BOM
- trailing whitespaces trimmed as a CS fix
- Closing PHP tag removed in favor of readability, avoiding possible
issues with whitespaces, and to comply with current CS from the
PHP ecosystem - PSRs etc.
Diffstat (limited to 'ext/ext_skel.php')
-rwxr-xr-x[-rw-r--r--] | ext/ext_skel.php | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/ext/ext_skel.php b/ext/ext_skel.php index adfe76d39c..f796a0d8d6 100644..100755 --- a/ext/ext_skel.php +++ b/ext/ext_skel.php @@ -1,4 +1,5 @@ -<?php +#!/usr/bin/env php +<?php /* +----------------------------------------------------------------------+ | PHP Version 7 | @@ -91,13 +92,13 @@ function print_success() { */ function process_args($argv, $argc) { $options = [ - 'unix' => true, - 'windows' => true, - 'ext' => '', - 'dir' => __DIR__ . DIRECTORY_SEPARATOR, - 'skel' => __DIR__ . DIRECTORY_SEPARATOR . 'skeleton' . DIRECTORY_SEPARATOR, - 'author' => false, - 'experimental' => false, + 'unix' => true, + 'windows' => true, + 'ext' => '', + 'dir' => __DIR__ . DIRECTORY_SEPARATOR, + 'skel' => __DIR__ . DIRECTORY_SEPARATOR . 'skeleton' . DIRECTORY_SEPARATOR, + 'author' => false, + 'experimental' => false, 'std' => false ]; @@ -269,7 +270,7 @@ function copy_sources() { global $options; $files = [ - 'skeleton.c' => $options['ext'] . '.c', + 'skeleton.c' => $options['ext'] . '.c', 'php_skeleton.h' => 'php_' . $options['ext'] . '.h' ]; @@ -359,5 +360,3 @@ task('Copying sources', 'copy_sources'); task('Copying tests', 'copy_tests'); print_success(); - -?>
\ No newline at end of file |