Skip to content

Commit 2810e2e

Browse files
committed
minor #14367 CS fixes (keradus)
This PR was merged into the 2.3 branch. Discussion ---------- CS fixes | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A Update before releasing PHP CS Fixer 1.7. To keep fabbot.io happy ;) Commits ------- cfa3e95 CS fixes
2 parents b58229a + f6d8747 commit 2810e2e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Templating/Helper/CodeHelper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function abbrClass($class)
5555
$parts = explode('\\', $class);
5656
$short = array_pop($parts);
5757

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

6161
public function abbrMethod($method)
@@ -64,9 +64,9 @@ public function abbrMethod($method)
6464
list($class, $method) = explode('::', $method, 2);
6565
$result = sprintf('%s::%s()', $this->abbrClass($class), $method);
6666
} elseif ('Closure' === $method) {
67-
$result = sprintf("<abbr title=\"%s\">%s</abbr>", $method, $method);
67+
$result = sprintf('<abbr title="%s">%s</abbr>', $method, $method);
6868
} else {
69-
$result = sprintf("<abbr title=\"%s\">%s</abbr>()", $method, $method);
69+
$result = sprintf('<abbr title="%s">%s</abbr>()', $method, $method);
7070
}
7171

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

0 commit comments

Comments
 (0)