Skip to content

Commit 8e19752

Browse files
committed
Merge pull request #1 from jeremykendall/Saeven-develop
Saeven develop
2 parents 4a4678f + 88a36ab commit 8e19752

21 files changed

+12615
-332
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
tags
2-
data/*.txt
32
composer.lock
43
vendor
54
*.swp
65
docs
76
*~
87
build
8+
.idea

.php_cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ $finder = \Symfony\CS\Finder\DefaultFinder::create()
99
return \Symfony\CS\Config\Config::create()
1010
->setUsingCache(true)
1111
->fixers([
12+
'-pre_increment',
1213
'-concat_without_spaces',
1314
'concat_with_spaces',
1415
'ordered_use',
16+
'long_array_syntax',
1517
])
1618
->finder($finder);

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ php:
55
- 5.4
66
- 5.5
77
- 5.6
8+
- 7.0
89
- hhvm
910

1011
script: phpunit

bin/parse

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ try {
2323
$manager = new \Pdp\PublicSuffixListManager();
2424
$parser = new Pdp\Parser($manager->getList());
2525
$url = $parser->parseUrl($domain);
26-
$suffixValid = ($parser->isSuffixValid((string) $url->host)) ? 'IS' : 'IS NOT';
26+
$suffixValid = ($parser->isSuffixValid((string) $url->getHost())) ? 'IS' : 'IS NOT';
2727

2828
print_r($url->toArray());
2929
echo sprintf('Host: %s', $url) . PHP_EOL;
3030
echo sprintf(
3131
"'%s' %s a valid public suffix.",
32-
$url->host->publicSuffix,
32+
$url->getHost()->getPublicSuffix(),
3333
$suffixValid
3434
) . PHP_EOL;
3535
} catch (\Exception $e) {

build.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
<exec
1515
passthru="${passthru}"
1616
dir="${project.basedir}"
17-
command="phpunit" />
17+
command="./vendor/bin/phpunit" />
1818
</target>
1919

2020
<target name="php-cs-fixer" description="PHP Codings Standards fixer">
2121
<exec
2222
passthru="${passthru}"
23-
command="php-cs-fixer --verbose fix" />
23+
command="./vendor/bin/php-cs-fixer fix --config-file=.php_cs --verbose" />
2424
</target>
2525

2626
<target name="phpdoc" description="Generate API documentation">
@@ -39,6 +39,5 @@
3939
<phingCall target="clean" />
4040
<phingCall target="php-cs-fixer" />
4141
<phingCall target="phpunit" />
42-
<phingCall target="phpdoc" />
4342
</target>
4443
</project>

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434
"ext-mbstring": "*"
3535
},
3636
"require-dev": {
37-
"mikey179/vfsStream": "~1.4",
38-
"phpunit/phpunit": "~4.4",
39-
"jeremykendall/debug-die": "0.0.1.*"
37+
"mikey179/vfsStream": "~1.6",
38+
"phpunit/phpunit": "~4.8",
39+
"jeremykendall/debug-die": "0.0.1.*",
40+
"phing/phing": "^2.13",
41+
"fabpot/php-cs-fixer": "^1.11"
4042
},
4143
"autoload": {
4244
"psr-0": {

0 commit comments

Comments
 (0)