Skip to content

Commit cfda185

Browse files
authored
Merge pull request #258 from norkunas/fix-cs
Fix CS
2 parents 0a82df2 + ef8803f commit cfda185

File tree

5 files changed

+5
-13
lines changed

5 files changed

+5
-13
lines changed

Mapping/Driver/AnnotationDriver.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ public function loadMetadataFromObject($object)
4040
{
4141
$reflection = new \ReflectionObject($object);
4242
if (!$annotation = $this->reader->getClassAnnotation($reflection, Annotations\Geocodeable::class)) {
43-
throw new Exception\MappingException(sprintf(
44-
'The class %s is not geocodeable', get_class($object)
45-
));
43+
throw new Exception\MappingException(sprintf('The class %s is not geocodeable', get_class($object)));
4644
}
4745

4846
$metadata = new ClassMetadata();

Plugin/ProfilingPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
namespace Bazinga\GeocoderBundle\Plugin;
1414

1515
use Geocoder\Collection;
16+
use Geocoder\Exception\Exception;
1617
use Geocoder\Exception\LogicException;
1718
use Geocoder\Plugin\Plugin;
1819
use Geocoder\Query\GeocodeQuery;
1920
use Geocoder\Query\Query;
2021
use Geocoder\Query\ReverseQuery;
21-
use Geocoder\Exception\Exception;
2222

2323
/**
2424
* @author Tobias Nyholm <[email protected]>

ProviderFactory/AbstractFactory.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,7 @@ protected static function verifyDependencies()
7575
{
7676
foreach (static::$dependencies as $dependency) {
7777
if (!class_exists($dependency['requiredClass'])) {
78-
throw new \LogicException(
79-
sprintf(
80-
'You must install the "%s" package to use the "%s" factory.',
81-
$dependency['packageName'],
82-
static::class
83-
)
84-
);
78+
throw new \LogicException(sprintf('You must install the "%s" package to use the "%s" factory.', $dependency['packageName'], static::class));
8579
}
8680
}
8781
}

ProviderFactory/IpstackFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
namespace Bazinga\GeocoderBundle\ProviderFactory;
1414

15-
use Geocoder\Provider\Provider;
1615
use Geocoder\Provider\Ipstack\Ipstack;
16+
use Geocoder\Provider\Provider;
1717
use Http\Discovery\HttpClientDiscovery;
1818
use Symfony\Component\OptionsResolver\OptionsResolver;
1919

Tests/Validator/Constraint/AddressValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
use Bazinga\GeocoderBundle\Validator\Constraint\Address;
1616
use Bazinga\GeocoderBundle\Validator\Constraint\AddressValidator;
17-
use Http\Client\Curl\Client;
1817
use Geocoder\Provider\Nominatim\Nominatim;
18+
use Http\Client\Curl\Client;
1919
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
2020

2121
class AddressValidatorTest extends ConstraintValidatorTestCase

0 commit comments

Comments
 (0)