consistently use str_replace to unify directory separators (remaining)
This commit is contained in:
parent
755f3c0223
commit
17ce6492d9
@ -89,7 +89,7 @@ class SetAclCommandTest extends WebTestCase
|
||||
$setAclCommandTester = new CommandTester($setAclCommand);
|
||||
$setAclCommandTester->execute(array(
|
||||
'command' => 'acl:set',
|
||||
'arguments' => array($grantedPermission, sprintf('%s:%s', strtr(self::OBJECT_CLASS, '\\', '/'), $objectId)),
|
||||
'arguments' => array($grantedPermission, sprintf('%s:%s', str_replace('\\', '/', self::OBJECT_CLASS), $objectId)),
|
||||
'--role' => array($role),
|
||||
));
|
||||
|
||||
|
@ -120,7 +120,7 @@ class DumpDataCollector extends DataCollector implements DataDumperInterface
|
||||
}
|
||||
|
||||
if (false === $name) {
|
||||
$name = strtr($file, '\\', '/');
|
||||
$name = str_replace('\\', '/', $file);
|
||||
$name = substr($name, strrpos($name, '/') + 1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user