We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 33c6012 + f1d063f commit 6609b10Copy full SHA for 6609b10
CodeSniffer/Reports/Gitblame.php
@@ -87,13 +87,13 @@ protected function getBlameContent($filename)
87
echo 'Getting GIT blame info for '.basename($filename).'... ';
88
}
89
90
- $fileParts = explode('/', $filename);
+ $fileParts = explode(DIRECTORY_SEPARATOR, $filename);
91
$found = false;
92
$location = '';
93
while (empty($fileParts) === false) {
94
array_pop($fileParts);
95
- $location = implode($fileParts, '/');
96
- if (is_dir($location.'/.git') === true) {
+ $location = implode($fileParts, DIRECTORY_SEPARATOR);
+ if (is_dir($location . DIRECTORY_SEPARATOR.'.git') === true) {
97
$found = true;
98
break;
99
0 commit comments