Skip to content

Commit

Permalink
CS Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Apr 20, 2019
1 parent 1400eb9 commit 9edceb2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
language: php

sudo: false

cache:
directories:
- $HOME/.composer/cache
Expand Down
10 changes: 10 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,15 @@
},
"suggest": {
"ext-intl": "Required if you are going to use humanizer with locales different than en_EN"
},
"scripts": {
"cs:php:fix": [
"php-cs-fixer fix --using-cache=no"
],
"test": [
"phpspec run --format=pretty",
"phpunit",
"php-cs-fixer fix -v --dry-run"
]
}
}
4 changes: 2 additions & 2 deletions src/Coduo/PHPHumanizer/StringHumanizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function truncateHtml($text, $charactersCount, $allowedTags = '',
*/
public static function removeShortcodes($text)
{
if (!class_exists('Thunder\Shortcode\Processor\Processor')) {
if (!\class_exists('Thunder\Shortcode\Processor\Processor')) {
throw new \RuntimeException('Please add "thunderer/shortcode": ^0.7 to composer.json first');
}

Expand All @@ -75,7 +75,7 @@ public static function removeShortcodes($text)
*/
public static function removeShortcodeTags($text)
{
if (!class_exists('Thunder\Shortcode\Processor\Processor')) {
if (!\class_exists('Thunder\Shortcode\Processor\Processor')) {
throw new \RuntimeException('Please add "thunderer/shortcode": ^0.7 to composer.json first');
}

Expand Down

0 comments on commit 9edceb2

Please sign in to comment.