Skip to content

Cvetomird91/closing-tag-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tool to check the current directory for PHP scripts with a closing tag.

I used the PHP Tokenizer functions to scan for the T_CLOSE_TAG token.

Portability was added because of different token ids for T_CLOSE_TAG inbetween different PHP versions.

The script prints an array with the files containing a closing PHP tag at EOF.

Files who contain an opening and a closing tag on the last line will not be printed.

Sample files have been added for demonstrational purposes.

Basic usage:

	$ php tags.php project-directory/

If a directory name isn't passed to the script as first argument, it will scan the current directory.

The actual tag checker is the tags.php script. The rest of the files are added for various test cases.

About

A PHP script to check for files with a closing tag in the current directory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages