Permalink
Browse files

[CS Fix] Consistent coding-style of concatenation operator usage

  • Loading branch information...
1 parent 414e4f7 commit 1b01f1efbb2fd3e2f00a412deb49921fafee49b3 @canni canni committed Apr 2, 2013
Showing with 6 additions and 6 deletions.
  1. +1 −1 Filesystem.php
  2. +5 −5 Tests/FilesystemTest.php
View
@@ -321,7 +321,7 @@ public function makePathRelative($endPath, $startPath)
$endPathRemainder = implode('/', array_slice($endPathArr, $index));
// Construct $endPath from traversing to the common path, then to the remaining $endPath
- $relativePath = $traverser . (strlen($endPathRemainder) > 0 ? $endPathRemainder . '/' : '');
+ $relativePath = $traverser.(strlen($endPathRemainder) > 0 ? $endPathRemainder.'/' : '');
return (strlen($relativePath) === 0) ? './' : $relativePath;
}
View
@@ -531,7 +531,7 @@ public function testChownSymlinkFails()
$this->filesystem->symlink($file, $link);
- $this->filesystem->chown($link, 'user' . time() . mt_rand(1000, 9999));
+ $this->filesystem->chown($link, 'user'.time().mt_rand(1000, 9999));
}
/**
@@ -544,7 +544,7 @@ public function testChownFail()
$dir = $this->workspace.DIRECTORY_SEPARATOR.'dir';
mkdir($dir);
- $this->filesystem->chown($dir, 'user' . time() . mt_rand(1000, 9999));
+ $this->filesystem->chown($dir, 'user'.time().mt_rand(1000, 9999));
}
public function testChgrp()
@@ -597,7 +597,7 @@ public function testChgrpSymlinkFails()
$this->filesystem->symlink($file, $link);
- $this->filesystem->chgrp($link, 'user' . time() . mt_rand(1000, 9999));
+ $this->filesystem->chgrp($link, 'user'.time().mt_rand(1000, 9999));
}
/**
@@ -610,7 +610,7 @@ public function testChgrpFail()
$dir = $this->workspace.DIRECTORY_SEPARATOR.'dir';
mkdir($dir);
- $this->filesystem->chgrp($dir, 'user' . time() . mt_rand(1000, 9999));
+ $this->filesystem->chgrp($dir, 'user'.time().mt_rand(1000, 9999));
}
public function testRename()
@@ -843,7 +843,7 @@ public function testMirrorCopiesLinkedDirectoryContents()
$sourcePath = $this->workspace.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR;
- mkdir($sourcePath . 'nested/', 0777, true);
+ mkdir($sourcePath.'nested/', 0777, true);
file_put_contents($sourcePath.'/nested/file1.txt', 'FILE1');
// Note: We symlink directory, not file
symlink($sourcePath.'nested', $sourcePath.'link1');

0 comments on commit 1b01f1e

Please sign in to comment.