Skip to content

Commit d1ed7e3

Browse files
committed
TASK: Fix property/parameter type in docblocks
1 parent 74465ee commit d1ed7e3

11 files changed

Lines changed: 23 additions & 23 deletions

Classes/AssetExtraction/IngestAttachmentAssetExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected function getAssetContent(AssetInterface $asset): string
134134
}
135135

136136
/**
137-
* @param $extractedAsset
137+
* @param ?array $extractedAsset
138138
* @return AssetContent
139139
*/
140140
protected function buildAssetContentObject(?array $extractedAsset): AssetContent

Classes/Driver/AbstractNodeTypeMappingBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ abstract class AbstractNodeTypeMappingBuilder implements NodeTypeMappingBuilderI
5454
/**
5555
* Called by the Flow object framework after creating the object and resolving all dependencies.
5656
*
57-
* @param integer $cause Creation cause
57+
* @param int $cause Creation cause
5858
* @throws InvalidConfigurationTypeException
5959
*/
6060
public function initializeObject($cause): void

Classes/Driver/AbstractQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ protected function prepareRequest(): array
278278
* All methods are considered safe
279279
*
280280
* @param string $methodName
281-
* @return boolean
281+
* @return bool
282282
*/
283283
public function allowsCallOfMethod($methodName)
284284
{

Classes/Driver/QueryInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function addSortFilter(array $configuration): void;
5656
/**
5757
* Set the size (limit) of the request
5858
*
59-
* @param integer $size
59+
* @param int $size
6060
* @return void
6161
* @api
6262
*/
@@ -65,7 +65,7 @@ public function size(int $size): void;
6565
/**
6666
* Set the from (offset) of the request
6767
*
68-
* @param integer $size
68+
* @param int $size
6969
* @return void
7070
* @api
7171
*/
@@ -95,7 +95,7 @@ public function simpleQueryStringFulltext(string $searchWord, array $options = [
9595
* Configure Result Highlighting. Only makes sense in combination with fulltext(). By default, highlighting is enabled.
9696
* It can be disabled by calling "highlight(FALSE)".
9797
*
98-
* @param integer|boolean $fragmentSize The result fragment size for highlight snippets. If this parameter is FALSE, highlighting will be disabled.
98+
* @param int|bool $fragmentSize The result fragment size for highlight snippets. If this parameter is FALSE, highlighting will be disabled.
9999
* @param int|null $fragmentCount The number of highlight fragments to show.
100100
* @param int $noMatchSize
101101
* @param string $field

Classes/Driver/Version6/Query/FunctionScoreQuery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function boostMode(string $boostMode): void
6565
}
6666

6767
/**
68-
* @param integer|float $boost
68+
* @param int|float $boost
6969
* @return void
7070
* @throws Exception\QueryBuildingException
7171
*/
@@ -78,7 +78,7 @@ public function maxBoost($boost): void
7878
}
7979

8080
/**
81-
* @param integer|float $score
81+
* @param int|float $score
8282
* @return void
8383
* @throws Exception\QueryBuildingException
8484
*/

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ElasticSearchQueryBuilder implements QueryBuilderInterface, ProtectedConte
6161
protected $throwableStorage;
6262

6363
/**
64-
* @var boolean
64+
* @var bool
6565
*/
6666
protected $logThisQuery = false;
6767

@@ -71,12 +71,12 @@ class ElasticSearchQueryBuilder implements QueryBuilderInterface, ProtectedConte
7171
protected $logMessage;
7272

7373
/**
74-
* @var integer
74+
* @var int
7575
*/
7676
protected $limit;
7777

7878
/**
79-
* @var integer
79+
* @var int
8080
*/
8181
protected $from;
8282

@@ -188,7 +188,7 @@ public function sort($configuration): ElasticSearchQueryBuilder
188188
*
189189
* This algorithm can be re-checked when https://github.com/elasticsearch/elasticsearch/issues/3300 is merged.
190190
*
191-
* @param integer $limit
191+
* @param int $limit
192192
* @return ElasticSearchQueryBuilder
193193
* @throws IllegalObjectTypeException
194194
* @api
@@ -217,7 +217,7 @@ public function limit($limit): QueryBuilderInterface
217217
/**
218218
* output records starting at $from
219219
*
220-
* @param integer $from
220+
* @param int $from
221221
* @return ElasticSearchQueryBuilder
222222
* @api
223223
*/
@@ -648,7 +648,7 @@ public function executeUncached(): ElasticSearchQueryResult
648648
/**
649649
* Return the total number of hits for the query.
650650
*
651-
* @return integer
651+
* @return int
652652
* @throws Exception
653653
* @throws \Flowpack\ElasticSearch\Exception
654654
* @throws \Neos\Flow\Http\Exception

Classes/Eel/ElasticSearchQueryResult.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ElasticSearchQueryResult implements QueryResultInterface, ProtectedContext
3737
protected $nodes;
3838

3939
/**
40-
* @var integer
40+
* @var int
4141
*/
4242
protected $count;
4343

@@ -280,7 +280,7 @@ public function getSortValuesForNode(NodeInterface $node): array
280280

281281
/**
282282
* @param string $methodName
283-
* @return boolean
283+
* @return bool
284284
*/
285285
public function allowsCallOfMethod($methodName)
286286
{

Classes/Eel/SearchResultHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function didYouMean(ElasticSearchQueryResult $searchResult, float $scoreT
6161

6262
/**
6363
* @param string $methodName
64-
* @return boolean
64+
* @return bool
6565
*/
6666
public function allowsCallOfMethod($methodName)
6767
{

Classes/Factory/AbstractDriverSpecificObjectFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class AbstractDriverSpecificObjectFactory
3838
protected $mapping;
3939

4040
/**
41-
* @var int
41+
* @var string
4242
* @Flow\InjectConfiguration(path="driver.version")
4343
*/
4444
protected $driverVersion;

Classes/Indexer/WorkspaceIndexer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ final class WorkspaceIndexer
5353

5454
/**
5555
* @param string $workspaceName
56-
* @param integer $limit
57-
* @param callable $callback
58-
* @return integer
56+
* @param ?int $limit
57+
* @param ?callable $callback
58+
* @return int
5959
*/
6060
public function index(string $workspaceName, $limit = null, ?callable $callback = null): int
6161
{

0 commit comments

Comments
 (0)