Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Text Provider - maked static
Browse files Browse the repository at this point in the history
  • Loading branch information
LagunaJavier committed Nov 17, 2015
1 parent 868f04b commit 5387839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Faker/Provider/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ abstract class Text extends Base
protected static $separatorLen = 1;
protected $explodedText;
protected $consecutiveWords = array();
protected $textStartsWithUppercase = true;
protected static $textStartsWithUppercase = true;

/**
* Generate a text string by the Markov chain algorithm.
Expand Down Expand Up @@ -129,7 +129,7 @@ protected static function strlen($text)
protected static function validStart($word)
{
$isValid = true;
if ($this->textStartsWithUppercase) {
if (self::$textStartsWithUppercase) {
$isValid = preg_match('/^\p{Lu}/u', $word);
}
return $isValid;
Expand Down

0 comments on commit 5387839

Please sign in to comment.