Skip to content

Commit 35fbe83

Browse files
norkunasNyholm
authored andcommitted
Remove useless phpdocs (#238)
1 parent b8969ff commit 35fbe83

File tree

10 files changed

+1
-65
lines changed

10 files changed

+1
-65
lines changed

Command/GeocodeCommand.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ class GeocodeCommand extends Command
3232
*/
3333
private $geocoder;
3434

35-
/**
36-
* @param ProviderAggregator $geocoder
37-
*/
3835
public function __construct(ProviderAggregator $geocoder)
3936
{
4037
$this->geocoder = $geocoder;

DataCollector/GeocoderDataCollector.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ public function collect(Request $request, Response $response, \Exception $except
6363

6464
/**
6565
* Returns an array of collected requests.
66-
*
67-
* @return array
6866
*/
6967
public function getQueries(): array
7068
{
@@ -73,8 +71,6 @@ public function getQueries(): array
7371

7472
/**
7573
* Returns the execution time of all collected requests in seconds.
76-
*
77-
* @return float
7874
*/
7975
public function getTotalDuration(): float
8076
{
@@ -86,29 +82,18 @@ public function getTotalDuration(): float
8682
return $time;
8783
}
8884

89-
/**
90-
* @return array
91-
*/
9285
public function getProviders(): array
9386
{
9487
return $this->data['providers'];
9588
}
9689

97-
/**
98-
* @param string $provider
99-
*
100-
* @return array
101-
*/
10290
public function getProviderQueries(string $provider): array
10391
{
10492
return array_filter($this->data['queries'], function ($data) use ($provider) {
10593
return $data['providerName'] === $provider;
10694
});
10795
}
10896

109-
/**
110-
* @param ProfilingPlugin $instance
111-
*/
11297
public function addInstance(ProfilingPlugin $instance)
11398
{
11499
$this->instances[] = $instance;

DependencyInjection/BazingaGeocoderExtension.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,6 @@ private function loadProviders(ContainerBuilder $container, array $config)
101101

102102
/**
103103
* Configure plugins for a client.
104-
*
105-
* @param ContainerBuilder $container
106-
* @param array $config
107-
* @param string $providerServiceId
108-
*
109-
* @return array
110104
*/
111105
public function configureProviderPlugins(ContainerBuilder $container, array $config, string $providerServiceId): array
112106
{
@@ -176,11 +170,6 @@ public function getConfiguration(array $config, ContainerBuilder $container)
176170
return new Configuration($container->getParameter('kernel.debug'));
177171
}
178172

179-
/**
180-
* @param array $options
181-
*
182-
* @return array
183-
*/
184173
private function findReferences(array $options): array
185174
{
186175
foreach ($options as $key => $value) {
@@ -196,8 +185,6 @@ private function findReferences(array $options): array
196185

197186
/**
198187
* @param mixed $factoryClass
199-
*
200-
* @return bool
201188
*/
202189
private function implementsProviderFactory($factoryClass): bool
203190
{

DependencyInjection/Compiler/AddProvidersPass.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class AddProvidersPass implements CompilerPassInterface
3030
/**
3131
* Get all providers based on their tag (`bazinga_geocoder.provider`) and
3232
* register them.
33-
*
34-
* @param ContainerBuilder $container
3533
*/
3634
public function process(ContainerBuilder $container)
3735
{

DependencyInjection/Configuration.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
namespace Bazinga\GeocoderBundle\DependencyInjection;
1414

1515
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
16+
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
1617
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
1718
use Symfony\Component\Config\Definition\ConfigurationInterface;
1819

@@ -41,9 +42,6 @@ public function __construct($debug)
4142
/**
4243
* Proxy to get root node for Symfony < 4.2.
4344
*
44-
* @param TreeBuilder $treeBuilder
45-
* @param string $name
46-
*
4745
* @return NodeDefinition
4846
*/
4947
protected function getRootNode(TreeBuilder $treeBuilder, string $name)

Plugin/FakeIpPlugin.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ class FakeIpPlugin implements Plugin
3333
*/
3434
private $replacement;
3535

36-
/**
37-
* @param string $needle
38-
* @param string $replacement
39-
*/
4036
public function __construct(string $needle, string $replacement)
4137
{
4238
$this->needle = $needle;

Plugin/ProfilingPlugin.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ class ProfilingPlugin implements Plugin
3535
*/
3636
private $name;
3737

38-
/**
39-
* @param string $name
40-
*/
4138
public function __construct(string $name)
4239
{
4340
$this->name = $name;
@@ -61,8 +58,6 @@ public function handleQuery(Query $query, callable $next, callable $first)
6158
}
6259

6360
/**
64-
* @param Query $query
65-
* @param float $duration geocoding duration
6661
* @param Collection|Exception $result
6762
*/
6863
private function logQuery(Query $query, float $duration, $result = null)
@@ -85,17 +80,11 @@ private function logQuery(Query $query, float $duration, $result = null)
8580
];
8681
}
8782

88-
/**
89-
* @return array
90-
*/
9183
public function getQueries(): array
9284
{
9385
return $this->queries;
9486
}
9587

96-
/**
97-
* @return string
98-
*/
9988
public function getName(): string
10089
{
10190
return $this->name;

ProviderFactory/AbstractFactory.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ abstract class AbstractFactory implements ProviderFactoryInterface
2626
{
2727
protected static $dependencies = [];
2828

29-
/**
30-
* @param array $config
31-
*
32-
* @return Provider
33-
*/
3429
abstract protected function getProvider(array $config): Provider;
3530

3631
/**
@@ -94,8 +89,6 @@ protected static function verifyDependencies()
9489
/**
9590
* By default we do not have any options to configure. A factory should override this function and confgure
9691
* the options resolver.
97-
*
98-
* @param OptionsResolver $resolver
9992
*/
10093
protected static function configureOptionResolver(OptionsResolver $resolver)
10194
{

ProviderFactory/PluginProviderFactory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ final class PluginProviderFactory
2727
* @param ProviderFactoryInterface|callable $factory
2828
* @param array $config config to the client factory
2929
* @param array $pluginProviderOptions config forwarded to the PluginProvider
30-
*
31-
* @return PluginProvider
3230
*/
3331
public static function createPluginProvider(array $plugins, $factory, array $config, array $pluginProviderOptions = []): PluginProvider
3432
{

ProviderFactory/ProviderFactoryInterface.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
*/
2020
interface ProviderFactoryInterface
2121
{
22-
/**
23-
* @param array $options
24-
*
25-
* @return Provider
26-
*/
2722
public function createProvider(array $options = []): Provider;
2823

2924
/**

0 commit comments

Comments
 (0)