Skip to content

Commit 9edceb2

Browse files
committed
CS Fixes
1 parent 1400eb9 commit 9edceb2

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
language: php
22

3-
sudo: false
4-
53
cache:
64
directories:
75
- $HOME/.composer/cache

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,15 @@
4242
},
4343
"suggest": {
4444
"ext-intl": "Required if you are going to use humanizer with locales different than en_EN"
45+
},
46+
"scripts": {
47+
"cs:php:fix": [
48+
"php-cs-fixer fix --using-cache=no"
49+
],
50+
"test": [
51+
"phpspec run --format=pretty",
52+
"phpunit",
53+
"php-cs-fixer fix -v --dry-run"
54+
]
4555
}
4656
}

src/Coduo/PHPHumanizer/StringHumanizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static function truncateHtml($text, $charactersCount, $allowedTags = '',
6060
*/
6161
public static function removeShortcodes($text)
6262
{
63-
if (!class_exists('Thunder\Shortcode\Processor\Processor')) {
63+
if (!\class_exists('Thunder\Shortcode\Processor\Processor')) {
6464
throw new \RuntimeException('Please add "thunderer/shortcode": ^0.7 to composer.json first');
6565
}
6666

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

0 commit comments

Comments
 (0)