Skip to content
This repository was archived by the owner on Oct 28, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer export-ignore
/.styleci.yml export-ignore
/.travis.yml export-ignore
/.php_cs export-ignore
/phpunit.xml export-ignore
/tests export-ignore
5 changes: 5 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

use SLLH\StyleCIBridge\ConfigBridge;

return ConfigBridge::create();
6 changes: 6 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
filter:
paths: [src/*]
checks:
php: true
tools:
external_code_coverage: true
3 changes: 3 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
preset: symfony
disabled:
- empty_return
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

before_install:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
}
],
"require": {
"zenstruck/string": "~0.1",
"twig/twig": "~1.12"
"zenstruck/string": "^1.0",
"twig/twig": "^1.12"
},
"autoload": {
"psr-4": { "Zenstruck\\String\\Bridge\\Twig\\": "src/" }
Expand Down
2 changes: 1 addition & 1 deletion src/StringExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function getFilters()
return array(
new \Twig_SimpleFilter('remove_whitespace', '\zenstruck\string\remove_whitespace'),
new \Twig_SimpleFilter('null_trim', '\zenstruck\string\null_trim'),
new \Twig_SimpleFilter('truncate_word', '\zenstruck\string\truncate_word')
new \Twig_SimpleFilter('truncate_word', '\zenstruck\string\truncate_word'),
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/StringExtensionIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class StringExtensionIntegrationTest extends \Twig_Test_IntegrationTestCase
protected function getExtensions()
{
return array(
new StringExtension()
new StringExtension(),
);
}

Expand Down