Skip to content

Commit 838dd70

Browse files
authored
Adding meta files (#601)
* Adding meta files * Minor fix
1 parent 24fc43a commit 838dd70

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.php_cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
/*
4+
* In order to make it work, fabpot/php-cs-fixer and sllh/php-cs-fixer-styleci-bridge must be installed globally
5+
* with composer.
6+
*
7+
* @link https://github.com/Soullivaneuh/php-cs-fixer-styleci-bridge
8+
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer
9+
*/
10+
11+
use SLLH\StyleCIBridge\ConfigBridge;
12+
13+
return ConfigBridge::create();

.styleci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
preset: symfony
2+
3+
finder:
4+
path:
5+
- "src"
6+
- "tests"
7+
8+
enabled:
9+
- short_array_syntax

tests/Provider/GeoIP2Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function testGeoIp2Encoding()
214214
$reader = new Reader(__DIR__ . '/fixtures/GeoLite2-City.mmdb');
215215
$adapter = new GeoIP2Adapter($reader);
216216
$provider = new GeoIP2($adapter);
217-
$locality = $provider->geocode('79.114.34.148')->first()->getLocality();
217+
$locality = $provider->geocodeQuery(GeocodeQuery::create('79.114.34.148'))->first()->getLocality();
218218
$this->assertEquals('Timișoara', $locality);
219219
}
220220

0 commit comments

Comments
 (0)