Skip to content

Commit

Permalink
Fix error TitleCaseFrench
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Modat committed Feb 27, 2017
1 parent 64b425a commit 4486905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "jurihub/helpers",
"version": "1.0.6",
"version": "1.0.7",
"dist": {
"url": "https://github.com/jurihub/helpers/archive/1.0.6.zip",
"url": "https://github.com/jurihub/helpers/archive/1.0.7.zip",
"type": "zip"
},
"require": {
Expand Down
2 changes: 1 addition & 1 deletion src/TitleCaseFrench.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static public function capitalizeWord($txt, $index)
$txtWithDash = explode("-", $txt);

if (count($txtWithDash) === 2) {
return self::capitalizeFirst($txtWithDash[0]) . "-" + self::capitalizeFirstIfNeeded($txtWithDash[1]);
return self::capitalizeFirst($txtWithDash[0]) . "-" . self::capitalizeFirstIfNeeded($txtWithDash[1]);
}

// look for .
Expand Down

0 comments on commit 4486905

Please sign in to comment.