Skip to content

Commit

Permalink
removed size property reading FriendsOfSymfony1#128
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Feb 23, 2024
1 parent a7bd78b commit b60674d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Doctrine/Cli/AnsiColorFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ public function formatSection($section, $text, $size = null)
/**
* Truncates a line.
*
* @param string The text
* @param integer The maximum size of the returned string (65 by default)
* @param string The text
* @param integer|null The maximum size of the returned string (65 by default)
*
* @return string The truncated string
* @return string The truncated string
*/
public function excerpt($text, $size = null)
{
if ( ! $size) {
$size = $this->size;
$size = 65;
}

if (strlen($text) < $size) {
Expand Down Expand Up @@ -157,4 +157,4 @@ public function supportsColors($stream)
{
return DIRECTORY_SEPARATOR != '\\' && function_exists('posix_isatty') && @posix_isatty($stream);
}
}
}

0 comments on commit b60674d

Please sign in to comment.