Remove phpstan from dependancies - want to keep this compatible with php 7.0 as per github build steps

This commit is contained in:
Roy Verrips 2022-01-07 18:19:11 -06:00 committed by Josh Sherman
parent 7cebbfc06a
commit a84cdd8917
2 changed files with 32 additions and 34 deletions

View file

@ -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": {

View file

@ -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);