File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ public static function autoload($className)
281
281
&& is_file (dirname (self ::$ standardDir ).'/ ' .$ path ) === true
282
282
) {
283
283
// Check standard file locations based on the passed standard directory.
284
- include dirname (self ::$ standardDir ).'/ ' .$ path ;
284
+ include_once dirname (self ::$ standardDir ).'/ ' .$ path ;
285
285
} else {
286
286
// Everything else.
287
287
@include $ path ;
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
39
39
-- Thanks to Maik Penz for the patch
40
40
- Docs added for the entire Generic standard, and many sniffs from other standards are now documented as well
41
41
-- Thanks to Spencer Rinehart for the contribution
42
+ - Clearer error message for when the sniff class name does not match the directory structure
42
43
- Generated HTML docs now correctly show the open PHP tag in code comparison blocks
43
44
- Added Generic InlineHTMLSniff to ensure a file only contains PHP code
44
45
- Added Squiz ShorthandSizeSniff to check that CSS sizes are using shorthand notation only when 1 or 2 values are used
You can’t perform that action at this time.
0 commit comments