mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
fixed CS
This commit is contained in:
@@ -544,7 +544,7 @@ function twig_replace_filter($str, $from, $to = null)
|
||||
|
||||
return strtr($str, $from, $to);
|
||||
} elseif (!is_array($from)) {
|
||||
throw new Twig_Error_Runtime(sprintf('The "replace" filter expects an array or "Traversable" as replace values, got "%s".',is_object($from) ? get_class($from) : gettype($from)));
|
||||
throw new Twig_Error_Runtime(sprintf('The "replace" filter expects an array or "Traversable" as replace values, got "%s".', is_object($from) ? get_class($from) : gettype($from)));
|
||||
}
|
||||
|
||||
return strtr($str, $from);
|
||||
|
||||
@@ -115,7 +115,7 @@ class Twig_Tests_Cache_FilesystemTest extends PHPUnit_Framework_TestCase
|
||||
// Create root directory.
|
||||
@mkdir($this->directory, 0777, true);
|
||||
// Create read-only subdirectory.
|
||||
@mkdir($this->directory.'/cache' , 0555);
|
||||
@mkdir($this->directory.'/cache', 0555);
|
||||
$this->assertTrue(is_dir($this->directory.'/cache'));
|
||||
|
||||
$this->cache->write($key, $content);
|
||||
|
||||
Reference in New Issue
Block a user