File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11<?php
22class PHPCtags
33{
4+ const VERSION = 0.3 ;
5+
46 private $ mFile ;
57
68 private $ mFiles ;
Original file line number Diff line number Diff line change 1111 );
1212}
1313
14- $ version = <<<'EOF'
15- Version: 0.3
14+ $ version = PHPCtags::VERSION ;
1615
16+ $ copyright = <<<'EOF'
1717Exuberant Ctags compatiable PHP enhancement, Copyright (C) 2012 Techlive Zheng
1818Addresses: <techlivezheng@gmail.com>, https://github.com/techlivezheng/phpctags
1919EOF;
9595}
9696
9797if (isset ($ options ['help ' ])) {
98- echo $ version ;
98+ echo " Version: " . $ version. "\n\n" . $ copyright ;
9999 echo PHP_EOL ;
100100 echo PHP_EOL ;
101101 echo $ options_info ;
104104}
105105
106106if (isset ($ options ['version ' ])) {
107- echo $ version ;
107+ echo " Version: " . $ version. "\n\n" . $ copyright ;
108108 echo PHP_EOL ;
109109 exit ;
110110}
224224!_TAG_PROGRAM_AUTHOR \ttechlivezheng \t/techlivezheng@gmail.com/
225225!_TAG_PROGRAM_NAME \tphpctags \t//
226226!_TAG_PROGRAM_URL \thttps://github.com/techlivezheng/phpctags \t/official site/
227- !_TAG_PROGRAM_VERSION \t 0.3 \t// \n
227+ !_TAG_PROGRAM_VERSION \t $ {version} \t// \n
228228EOF ;
229229
230230fwrite ($ tagfile , $ tagline .$ result );
You can’t perform that action at this time.
0 commit comments