Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Apr 16, 2015
1 parent ec1e1ef commit c94f663
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Extension/CodeExtension.php
Expand Up @@ -58,7 +58,7 @@ public function abbrClass($class)
$parts = explode('\\', $class);
$short = array_pop($parts);

return sprintf("<abbr title=\"%s\">%s</abbr>", $class, $short);
return sprintf('<abbr title="%s">%s</abbr>', $class, $short);
}

public function abbrMethod($method)
Expand All @@ -67,9 +67,9 @@ public function abbrMethod($method)
list($class, $method) = explode('::', $method, 2);
$result = sprintf('%s::%s()', $this->abbrClass($class), $method);
} elseif ('Closure' === $method) {
$result = sprintf("<abbr title=\"%s\">%s</abbr>", $method, $method);
$result = sprintf('<abbr title="%s">%s</abbr>', $method, $method);
} else {
$result = sprintf("<abbr title=\"%s\">%s</abbr>()", $method, $method);
$result = sprintf('<abbr title="%s">%s</abbr>()', $method, $method);
}

return $result;
Expand All @@ -89,7 +89,7 @@ public function formatArgs($args)
if ('object' === $item[0]) {
$parts = explode('\\', $item[1]);
$short = array_pop($parts);
$formattedValue = sprintf("<em>object</em>(<abbr title=\"%s\">%s</abbr>)", $item[1], $short);
$formattedValue = sprintf('<em>object</em>(<abbr title="%s">%s</abbr>)', $item[1], $short);
} elseif ('array' === $item[0]) {
$formattedValue = sprintf('<em>array</em>(%s)', is_array($item[1]) ? $this->formatArgs($item[1]) : $item[1]);
} elseif ('string' === $item[0]) {
Expand Down

0 comments on commit c94f663

Please sign in to comment.