// Is the resource located inside a bundle?
if ('@' === $resource[0]) {
- $parts = explode(DIRECTORY_SEPARATOR, $resource);
+ $parts = explode(\DIRECTORY_SEPARATOR, $resource);
$bundle = substr($parts[0], 1);
$message .= sprintf(' Make sure the "%s" bundle is correctly registered and loaded in the application kernel class.', $bundle);
$message .= sprintf(' If the bundle is registered, make sure the bundle path "%s" is not empty.', $resource);
protected function varToString($var)
{
- if (is_object($var)) {
- return sprintf('Object(%s)', get_class($var));
+ if (\is_object($var)) {
+ return sprintf('Object(%s)', \get_class($var));
}
- if (is_array($var)) {
+ if (\is_array($var)) {
$a = array();
foreach ($var as $k => $v) {
$a[] = sprintf('%s => %s', $k, $this->varToString($v));
return sprintf('Array(%s)', implode(', ', $a));
}
- if (is_resource($var)) {
+ if (\is_resource($var)) {
return sprintf('Resource(%s)', get_resource_type($var));
}