Permalink
Browse files

Fix problem with French locale and documentor

Closes #97
  • Loading branch information...
fzaninotto committed Jan 1, 2013
1 parent 4a1e258 commit b502129bd10799c15eae4e991bdb44b6f6500d8b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Faker/Provider/fr_FR/Company.php
@@ -92,7 +92,7 @@ public function catchPhrase()
$format = static::randomElement(static::$catchPhraseFormats);
$catchPhrase = ucfirst($this->generator->parse($format));
- if (static::isCatchPhraseValid($catchPhrase)) {
+ if ($this->isCatchPhraseValid($catchPhrase)) {
break;
}
} while (true);
@@ -204,7 +204,7 @@ public static function siren()
*
* @return boolean (true if valid, false otherwise)
*/
- public static function isCatchPhraseValid($catchPhrase)
+ protected static function isCatchPhraseValid($catchPhrase)
{
foreach (static::$wordsWhichShouldNotAppearTwice as $word) {
// Fastest way to check if a piece of word does not appear twice.

0 comments on commit b502129

Please sign in to comment.