Remove phpstan from dependancies - want to keep this compatible with php 7.0 as per github build steps
This commit is contained in:
parent
7cebbfc06a
commit
a84cdd8917
2 changed files with 32 additions and 34 deletions
|
@ -19,8 +19,7 @@
|
|||
"php": ">=5.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.36 || ^9.0",
|
||||
"phpstan/phpstan": "^1.3"
|
||||
"phpunit/phpunit": "^4.8.36 || ^9.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
@ -32,4 +31,4 @@
|
|||
"joshtronic\\Tests\\": "tests/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -312,8 +312,7 @@ class LoremIpsum
|
|||
private function punctuate(&$sentences)
|
||||
{
|
||||
foreach ($sentences as $key => $sentence) {
|
||||
$words = count($sentences);
|
||||
|
||||
$words = count($sentence);
|
||||
// Only worry about commas on sentences longer than 4 words
|
||||
if ($words > 4) {
|
||||
$mean = log($words, 6);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue