Skip to content

Commit 2215d07

Browse files
committed
Merge pull request #818 from merk/cs-fixes-30
php-cs-fixer for 3.0.x
2 parents cf9f7c6 + e796d61 commit 2215d07

File tree

88 files changed

+529
-534
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+529
-534
lines changed

Command/PopulateCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use FOS\ElasticaBundle\Provider\ProviderInterface;
1414

1515
/**
16-
* Populate the search index
16+
* Populate the search index.
1717
*/
1818
class PopulateCommand extends ContainerAwareCommand
1919
{
@@ -118,7 +118,7 @@ private function populateIndex(OutputInterface $output, $index, $reset, $options
118118
$providers = $this->providerRegistry->getIndexProviders($index);
119119

120120
foreach ($providers as $type => $provider) {
121-
$loggerClosure = function($message) use ($output, $index, $type) {
121+
$loggerClosure = function ($message) use ($output, $index, $type) {
122122
$output->writeln(sprintf('<info>Populating</info> %s/%s, %s', $index, $type, $message));
123123
};
124124

@@ -146,7 +146,7 @@ private function populateIndexType(OutputInterface $output, $index, $type, $rese
146146
$this->resetter->resetIndexType($index, $type);
147147
}
148148

149-
$loggerClosure = function($message) use ($output, $index, $type) {
149+
$loggerClosure = function ($message) use ($output, $index, $type) {
150150
$output->writeln(sprintf('<info>Populating</info> %s/%s, %s', $index, $type, $message));
151151
};
152152

Command/ResetCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use FOS\ElasticaBundle\Resetter;
1111

1212
/**
13-
* Reset search indexes
13+
* Reset search indexes.
1414
*/
1515
class ResetCommand extends ContainerAwareCommand
1616
{

Command/SearchCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Elastica\Result;
1212

1313
/**
14-
* Searches a type
14+
* Searches a type.
1515
*/
1616
class SearchCommand extends ContainerAwareCommand
1717
{

Configuration/IndexConfig.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ class IndexConfig
5353
/**
5454
* Constructor expects an array as generated by the Container Configuration builder.
5555
*
56-
* @param string $name
56+
* @param string $name
5757
* @param TypeConfig[] $types
58-
* @param array $config
58+
* @param array $config
5959
*/
6060
public function __construct($name, array $types, array $config)
6161
{
@@ -92,7 +92,9 @@ public function getSettings()
9292

9393
/**
9494
* @param string $typeName
95+
*
9596
* @return TypeConfig
97+
*
9698
* @throws \InvalidArgumentException
9799
*/
98100
public function getType($typeName)

Configuration/ManagerInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ interface ManagerInterface
2020
* Returns configuration for an index.
2121
*
2222
* @param $index
23+
*
2324
* @return IndexConfig
2425
*/
2526
public function getIndexConfiguration($index);
@@ -36,6 +37,7 @@ public function getIndexNames();
3637
*
3738
* @param string $index
3839
* @param string $type
40+
*
3941
* @return TypeConfig
4042
*/
4143
public function getTypeConfiguration($index, $type);

Configuration/Search.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
* Annotation class for setting search repository.
1818
*
1919
* @Annotation
20+
*
2021
* @deprecated Use FOS\ElasticaBundle\Annotation\Search instead
2122
* @Target("CLASS")
2223
*/
2324
class Search extends BaseSearch
2425
{
25-
}
26+
}

Configuration/Source/ContainerSource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function getConfiguration()
5757
* Builds TypeConfig objects for each type.
5858
*
5959
* @param array $config
60+
*
6061
* @return array
6162
*/
6263
protected function getTypes($config)

Configuration/Source/SourceInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ interface SourceInterface
2323
* @return \FOS\ElasticaBundle\Configuration\IndexConfig[]
2424
*/
2525
public function getConfiguration();
26-
}
26+
}

DependencyInjection/Compiler/ConfigSourcePass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ public function process(ContainerBuilder $container)
3333

3434
$container->getDefinition('fos_elastica.config_manager')->replaceArgument(0, $sources);
3535
}
36-
}
36+
}

DependencyInjection/Compiler/RegisterProvidersPass.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function process(ContainerBuilder $container)
5555
* Returns whether the class implements ProviderInterface.
5656
*
5757
* @param string $class
58+
*
5859
* @return boolean
5960
*/
6061
private function isProviderImplementation($class)

0 commit comments

Comments
 (0)