Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ceb78f8

Browse files
authored
Fix StyleCI (#1084)
* Update .styleci.yml * Apply StyleCI fix * Update .styleci.yml * Apply StyleCI fix * Apply StyleCI fix
1 parent f93b5f2 commit ceb78f8

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Plugin/BoundsPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Geocoder\Query\Query;
1919

2020
/**
21-
* Add bounds to each GeocoderQuery
21+
* Add bounds to each GeocoderQuery.
2222
*
2323
* @author Tobias Nyholm <[email protected]>
2424
*/

Plugin/LimitPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Geocoder\Query\Query;
1717

1818
/**
19-
* Add limit on the query
19+
* Add limit on the query.
2020
*
2121
* @author Tobias Nyholm <[email protected]>
2222
*/

Plugin/LocalePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Geocoder\Query\Query;
1717

1818
/**
19-
* Add locale on the query
19+
* Add locale on the query.
2020
*
2121
* @author Tobias Nyholm <[email protected]>
2222
*/

Plugin/LoggerPlugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Psr\Log\LoggerInterface;
1919

2020
/**
21-
* Log all queries and the result/failure
21+
* Log all queries and the result/failure.
2222
*
2323
* @author Tobias Nyholm <[email protected]>
2424
*/
@@ -42,12 +42,12 @@ public function handleQuery(Query $query, callable $next, callable $first)
4242
$startTime = microtime(true);
4343
$logger = $this->logger;
4444

45-
return $next($query)->then(function (Collection $result) use ($logger, $query, $startTime) {
45+
return $next($query)->then(function (Collection $result) use ($query, $startTime) {
4646
$duration = (microtime(true) - $startTime) * 1000;
4747
$this->logger->info(sprintf('[Geocoder] Got %d results in %0.2f ms for query %s', count($result), $duration, $query->__toString()));
4848

4949
return $result;
50-
}, function (Exception $exception) use ($logger, $query, $startTime) {
50+
}, function (Exception $exception) use ($query, $startTime) {
5151
$duration = (microtime(true) - $startTime) * 1000;
5252
$this->logger->error(sprintf('[Geocoder] Failed with %s after %0.2f ms for query %s', get_class($exception), $duration, $query->__toString()));
5353

Plugin/QueryDataPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Geocoder\Query\Query;
1717

1818
/**
19-
* Add arbitrary data to a query
19+
* Add arbitrary data to a query.
2020
*
2121
* @author Tobias Nyholm <[email protected]>
2222
*/

Tests/Plugin/BoundsPluginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testReverse()
4343
$first = function (Query $query) {
4444
$this->fail('Plugin should not restart the chain');
4545
};
46-
$next = function (Query $query) use ($bounds) {
46+
$next = function (Query $query) {
4747
$this->assertTrue(true, 'We should not fail on ReverseQuery');
4848
};
4949

0 commit comments

Comments
 (0)