├── tests ├── FileValidator │ ├── fixtures │ │ ├── source │ │ │ ├── keep.txt │ │ │ ├── email │ │ │ │ ├── invalid_sig.txt │ │ │ │ ├── crlf_sig.txt │ │ │ │ └── email.txt │ │ │ ├── help │ │ │ │ ├── valid.php │ │ │ │ └── invalid_help.php │ │ │ ├── css │ │ │ │ ├── invalid.css │ │ │ │ ├── invalid2.css │ │ │ │ └── valid.css │ │ │ └── language │ │ │ │ ├── lang_output.php │ │ │ │ ├── lang.php │ │ │ │ └── lang2.php │ │ └── origin │ │ │ ├── index │ │ │ ├── empty_index.htm │ │ │ ├── default_index.htm │ │ │ └── invalid_index.htm │ │ │ ├── iso │ │ │ ├── fewer_iso.txt │ │ │ ├── valid_iso.txt │ │ │ └── more_iso.txt │ │ │ ├── line_endings │ │ │ ├── invalid.php │ │ │ └── valid.php │ │ │ ├── help │ │ │ ├── invalid_help_var.php │ │ │ ├── no_help.php │ │ │ ├── invalid_help.php │ │ │ ├── valid.php │ │ │ └── additional_variable.php │ │ │ ├── license │ │ │ ├── invalid1.txt │ │ │ └── valid_gnu_gplv2.txt │ │ │ ├── in_phpbb │ │ │ ├── valid.php │ │ │ └── invalid.php │ │ │ ├── email │ │ │ ├── crlf_sig.txt │ │ │ ├── invalid_sig.txt │ │ │ └── email.txt │ │ │ ├── language │ │ │ ├── lang2.php │ │ │ ├── lang_output.php │ │ │ └── lang.php │ │ │ ├── nophpclosingtag │ │ │ ├── shortarraysyntax.php │ │ │ ├── withoutnewline.php │ │ │ ├── withcrlf.php │ │ │ ├── withouttag.php │ │ │ └── withtag.php │ │ │ ├── css │ │ │ ├── invalid.css │ │ │ ├── invalid2.css │ │ │ └── valid.css │ │ │ └── utf8withoutbom │ │ │ ├── with.php │ │ │ └── without.php │ ├── ValidateNoPhpClosingTagTest.php │ ├── ValidateLineEndingsTest.php │ ├── ValidateDefinedInPhpbbTest.php │ ├── ValidateIndexTest.php │ ├── ValidateLicenseTest.php │ ├── ValidateUtf8withoutbomTest.php │ ├── TestBase.php │ ├── ValidateCSSFileTest.php │ ├── ValidateEmailTest.php │ └── ValidateLangTest.php ├── FileListValidator │ ├── fixtures │ │ ├── 4.0 │ │ │ ├── origin │ │ │ │ ├── file.php │ │ │ │ ├── additional.php │ │ │ │ ├── additional.txt │ │ │ │ ├── subdir │ │ │ │ │ ├── file.php │ │ │ │ │ └── additional.php │ │ │ │ └── language │ │ │ │ │ └── origin │ │ │ │ │ ├── AUTHORS │ │ │ │ │ ├── README │ │ │ │ │ ├── VERSION │ │ │ │ │ ├── AUTHORS.md │ │ │ │ │ ├── CHANGELOG │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ ├── README.md │ │ │ │ │ ├── VERSION.md │ │ │ │ │ ├── index.htm │ │ │ │ │ └── composer.json │ │ │ └── source │ │ │ │ ├── file.php │ │ │ │ ├── missing.php │ │ │ │ ├── missing.txt │ │ │ │ ├── subdir │ │ │ │ ├── file.php │ │ │ │ └── missing.php │ │ │ │ └── language │ │ │ │ └── source │ │ │ │ └── composer.json │ │ └── origin │ │ │ └── language │ │ │ └── origin │ │ │ └── common.php │ └── FileListTest.php ├── bootstrap.php ├── TestBase.php ├── LangKeyValidator │ ├── TestBase.php │ ├── ValidateAclTest.php │ ├── ValidateTest.php │ ├── ValidateDateformatsTest.php │ ├── ValidateArrayKeyTest.php │ ├── ValidatePluralKeysTest.php │ ├── ValidateHtmlTest.php │ └── ValidateStringTest.php └── Mock │ └── Output.php ├── .gitignore ├── phpunit.xml ├── translation.php ├── src └── Phpbb │ └── TranslationValidator │ ├── Cli.php │ ├── Output │ ├── OutputFormatter.php │ ├── OutputInterface.php │ ├── Message.php │ └── Output.php │ ├── Command │ ├── DownloadCommand.php │ └── ValidateCommand.php │ └── Validator │ ├── FileListValidator.php │ ├── ValidatorRunner.php │ ├── LangKeyValidator.php │ └── FileValidator.php ├── .github └── workflows │ └── phpunit.yaml ├── composer.json ├── README.md └── license.txt /tests/FileValidator/fixtures/source/keep.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/file.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/source/file.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor/ 2 | /.idea/ 3 | /bin/ 4 | /4.0/ 5 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/additional.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/additional.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/source/missing.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/source/missing.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/index/empty_index.htm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/subdir/file.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/source/subdir/file.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/source/subdir/missing.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/language/origin/AUTHORS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/language/origin/README: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/language/origin/VERSION: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/subdir/additional.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/language/origin/AUTHORS.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/language/origin/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/language/origin/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/language/origin/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/language/origin/VERSION.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileListValidator/fixtures/4.0/origin/language/origin/index.htm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/iso/fewer_iso.txt: -------------------------------------------------------------------------------- 1 | English 2 | Origin missing author -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/iso/valid_iso.txt: -------------------------------------------------------------------------------- 1 | English 2 | Origin 3 | Copyright owners -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/line_endings/invalid.php: -------------------------------------------------------------------------------- 1 | 'Kakao', 5 | ]; 6 | -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/help/no_help.php: -------------------------------------------------------------------------------- 1 | '--', 6 | 1 => 'foo' 7 | ), 8 | ); 9 | -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/nophpclosingtag/withoutnewline.php: -------------------------------------------------------------------------------- 1 | '1 day', 5 | )); -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/nophpclosingtag/withcrlf.php: -------------------------------------------------------------------------------- 1 | '1 day', 5 | )); 6 | -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/nophpclosingtag/withouttag.php: -------------------------------------------------------------------------------- 1 | '1 day', 5 | )); 6 | -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/nophpclosingtag/withtag.php: -------------------------------------------------------------------------------- 1 | '1 day', 5 | )); 6 | 7 | ?> -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/css/invalid.css: -------------------------------------------------------------------------------- 1 | /* Icon images */ 2 | .invalid-inline { invalid: in{line; } 3 | .invalid-inline2 invalid: inline2; } 4 | -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/email/invalid_sig.txt: -------------------------------------------------------------------------------- 1 | Original does not contain sig 2 | 3 | also this file is UTF8 WITH BOM 4 | {YEHAA} 5 | {EMAIL_SIG} 6 | -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/source/css/invalid.css: -------------------------------------------------------------------------------- 1 | /* Icon images */ 2 | .invalid-inline { invalid: inline; } 3 | .invalid-inline2 { invalid: inline2; } 4 | -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/source/css/invalid2.css: -------------------------------------------------------------------------------- 1 | /* Icon images */ 2 | .missing-rule { missing: rule; } 3 | 4 | /* EN Language Pack */ 5 | .additional-block { 6 | padding-top: 20px; 7 | } 8 | -------------------------------------------------------------------------------- /tests/FileValidator/fixtures/origin/css/invalid2.css: -------------------------------------------------------------------------------- 1 | /* Icon images */ 2 | .additional-rule { additional: rule; } 3 | 4 | /* EN Language Pack */ 5 | .additional-block { 6 | padding-top: 20px; 7 | } 8 | 9 | Output after rules 10 | -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |