We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ab60e commit 1ce51e8Copy full SHA for 1ce51e8
src/Str.php
@@ -112,13 +112,12 @@ public static function apa($value)
112
$hyphenatedWords = explode('-', $lowercaseWord);
113
114
$hyphenatedWords = array_map(function ($part) use ($minorWords) {
115
- return (in_array($part, $minorWords) && mb_strlen($part) <= 3) ? $part : ucfirst($part);
+ return (in_array($part, $minorWords)) ? $part : ucfirst($part);
116
}, $hyphenatedWords);
117
118
$words[$i] = implode('-', $hyphenatedWords);
119
} else {
120
if (in_array($lowercaseWord, $minorWords)
121
- && mb_strlen($lowercaseWord) <= 3
122
&& ! ($i === 0 || in_array(mb_substr($words[$i - 1], -1), $endPunctuation))) {
123
$words[$i] = $lowercaseWord;
124
0 commit comments