Browse Source

start => finish, begin => end. Mixing them is a bad choice.

ever.zet 14 years ago
parent
commit
d4d8576f93
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Symfony/Component/Console/Output/Output.php

+ 3 - 3
src/Symfony/Component/Console/Output/Output.php

@@ -185,7 +185,7 @@ abstract class Output implements OutputInterface
      *
      * @return  string
      */
-    protected function getStartStyleRegex()
+    protected function getBeginStyleRegex()
     {
         return '#<([a-z][a-z0-9\-_=;]+)>#i';
     }
@@ -209,7 +209,7 @@ abstract class Output implements OutputInterface
      */
     protected function format($message)
     {
-        $message = preg_replace_callback($this->getStartStyleRegex(), array($this, 'replaceStartStyle'), $message);
+        $message = preg_replace_callback($this->getBeginStyleRegex(), array($this, 'replaceBeginStyle'), $message);
 
         return preg_replace_callback($this->getEndStyleRegex(), array($this, 'replaceEndStyle'), $message);
     }
@@ -223,7 +223,7 @@ abstract class Output implements OutputInterface
      *
      * @throws \InvalidArgumentException When style is unknown
      */
-    private function replaceStartStyle($match)
+    private function replaceBeginStyle($match)
     {
         if (!$this->decorated) {
             return '';