Skip to content

Commit 4fe99dd

Browse files
committed
Some more cleanup
1 parent 94134c3 commit 4fe99dd

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

src/Elastica/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function getIndexTemplate($name): IndexTemplate
104104
/**
105105
* Sets a stopwatch instance for debugging purposes.
106106
*/
107-
public function setStopwatch(?Stopwatch $stopwatch = null)
107+
public function setStopwatch(?Stopwatch $stopwatch = null): void
108108
{
109109
$this->stopwatch = $stopwatch;
110110
}

src/Elastica/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getOriginalName(): string
3737
* While it's technically a regular setter for name property, it's specifically named overrideName, but not setName
3838
* since it's used for a very specific case and normally should not be used
3939
*/
40-
public function overrideName(string $name)
40+
public function overrideName(string $name): void
4141
{
4242
$this->originalName = $this->_name;
4343
$this->_name = $name;

src/Manager/RepositoryManagerInterface.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ interface RepositoryManagerInterface
2525
/**
2626
* Adds index name and its finder.
2727
* Custom repository class name can also be added.
28-
*
29-
* @param string $indexName The type name in "index/type" format
30-
* @param string $repositoryName
3128
*/
3229
public function addIndex(string $indexName, FinderInterface $finder, string $repositoryName = null): void;
3330

@@ -36,10 +33,11 @@ public function addIndex(string $indexName, FinderInterface $finder, string $rep
3633
*
3734
* Returns custom repository if one specified otherwise
3835
* returns a basic repository.
39-
*
40-
* @param $indexName
4136
*/
4237
public function getRepository(string $indexName): Repository;
4338

39+
/**
40+
* Check whether a repository exists for the index.
41+
*/
4442
public function hasRepository(string $indexName): bool;
4543
}

src/Paginator/FantaPaginatorAdapter.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ class FantaPaginatorAdapter implements AdapterInterface
1717
{
1818
private $adapter;
1919

20-
/**
21-
* @param \FOS\ElasticaBundle\Paginator\PaginatorAdapterInterface $adapter
22-
*/
2320
public function __construct(PaginatorAdapterInterface $adapter)
2421
{
2522
$this->adapter = $adapter;

src/Serializer/Callback.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Callback
2323
protected $serializeNull = false;
2424

2525
/**
26-
* @param $serializer
26+
* @param object $serializer
2727
*/
2828
public function setSerializer($serializer)
2929
{
@@ -43,7 +43,7 @@ public function setGroups(array $groups): void
4343
}
4444

4545
/**
46-
* @param $version
46+
* @param mixed $version
4747
*/
4848
public function setVersion($version): void
4949
{

0 commit comments

Comments
 (0)