Skip to content

Commit 0f77ca3

Browse files
norkunasNyholm
authored andcommitted
Fix method name (#231)
* Fix method name * Add missing @author tag
1 parent 78c3dc7 commit 0f77ca3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

DependencyInjection/BazingaGeocoderExtension.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
use Symfony\Component\HttpKernel\Kernel;
3535

3636
/**
37-
* William Durand <[email protected]>.
37+
* @author William Durand <[email protected]>.
3838
*/
3939
class BazingaGeocoderExtension extends Extension
4040
{
@@ -67,7 +67,7 @@ private function loadProviders(ContainerBuilder $container, array $config)
6767
try {
6868
$factoryService = $container->getDefinition($providerConfig['factory']);
6969
$factoryClass = $factoryService->getClass() ?: $providerConfig['factory'];
70-
if (!$this->implementsPoviderFactory($factoryClass)) {
70+
if (!$this->implementsProviderFactory($factoryClass)) {
7171
throw new \LogicException(sprintf('Provider factory "%s" must implement ProviderFactoryInterface', $providerConfig['factory']));
7272
}
7373
// See if any option has a service reference
@@ -199,12 +199,12 @@ private function findReferences(array $options): array
199199
*
200200
* @return bool
201201
*/
202-
private function implementsPoviderFactory($factoryClass): bool
202+
private function implementsProviderFactory($factoryClass): bool
203203
{
204204
if (false === $interfaces = class_implements($factoryClass)) {
205205
return false;
206206
}
207207

208-
return in_array(ProviderFactoryInterface::class, $interfaces);
208+
return in_array(ProviderFactoryInterface::class, $interfaces, true);
209209
}
210210
}

0 commit comments

Comments
 (0)