Permalink
Browse files

Diff report now produces relative paths on Windows, where possible (f…

…urther fix for bug #20234)
  • Loading branch information...
1 parent a504542 commit 2e2a712fd344f64ae1de498ba081c615283cf9f8 @gsherwood gsherwood committed May 5, 2014
Showing with 2 additions and 1 deletion.
  1. +1 −1 CodeSniffer/Fixer.php
  2. +1 −0 package.xml
View
@@ -192,7 +192,7 @@ public function fixFile()
*/
public function generateDiff()
{
- $cwd = getcwd().'/';
+ $cwd = getcwd().DIRECTORY_SEPARATOR;
$filename = str_replace($cwd, '', $this->_currentFile->getFilename());
$fixedFile = $cwd.'phpcs-fixed.tmp';
$contents = $this->getContents();
View
@@ -29,6 +29,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
- PHPCBF will now fix incorrect newline characters in a file
- PHPCBF now exists cleanly when there are no errors to fix
- Added phpcbf.bat file for Windows
+ - Diff report now produces relative paths on Windows, where possible (further fix for bug #20234)
- Fixed a problem that could occur with line numbers when using HHVM to check files with Windows newline characters
- Fixed bug #20261 : phpcbf has an endless fixing loop
</notes>

0 comments on commit 2e2a712

Please sign in to comment.