Skip to content

Commit c6c9f18

Browse files
committed
TASK: Better doc command and type casting
1 parent f204bfe commit c6c9f18

4 files changed

Lines changed: 20 additions & 11 deletions

File tree

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer/Error/BulkIndexingError.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class BulkIndexingError implements ErrorInterface
5151
* @param array $errors
5252
* @throws Exception
5353
*/
54-
public function __construct(array $currentBulkRequest, $errors)
54+
public function __construct(array $currentBulkRequest, array $errors)
5555
{
5656
$this->currentBulkRequest = $currentBulkRequest;
5757
$this->errors = json_decode($errors, true);
@@ -68,6 +68,8 @@ public function __construct(array $currentBulkRequest, $errors)
6868

6969
/**
7070
* Log the error message
71+
*
72+
* @return void
7173
*/
7274
public function log()
7375
{

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer/Error/ErrorInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ interface ErrorInterface
2020
{
2121
/**
2222
* Log the error message
23+
*
24+
* @return void
2325
*/
2426
public function log();
2527

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer/Error/MalformedBulkRequestError.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class MalformedBulkRequestError implements ErrorInterface
3636
protected $tuple;
3737

3838
/**
39-
* MalformedBulkRequestError constructor.
4039
* @param string $message
4140
* @param array $tuple
4241
*/
@@ -48,6 +47,8 @@ public function __construct($message, array $tuple)
4847

4948
/**
5049
* Log the error message
50+
*
51+
* @return void
5152
*/
5253
public function log()
5354
{

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Service/ErrorHandlingService.php

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22
namespace Flowpack\ElasticSearch\ContentRepositoryAdaptor\Service;
33

4-
/* *
5-
* This script belongs to the TYPO3 Flow package "Flowpack.ElasticSearch.ContentRepositoryAdaptor". *
6-
* *
7-
* It is free software; you can redistribute it and/or modify it under *
8-
* the terms of the GNU Lesser General Public License, either version 3 *
9-
* of the License, or (at your option) any later version. *
10-
* *
11-
* The TYPO3 project - inspiring people to share! *
12-
* */
4+
/*
5+
* This file is part of the Flowpack.ElasticSearch.ContentRepositoryAdaptor package.
6+
*
7+
* (c) Contributors of the Neos Project - www.neos.io
8+
*
9+
* This package is Open Source Software. For the full copyright and license
10+
* information, please view the LICENSE file which was distributed with this
11+
* source code.
12+
*/
1313

1414
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Indexer\Error\ErrorInterface;
1515
use TYPO3\Flow\Annotations as Flow;
@@ -21,10 +21,14 @@
2121
*/
2222
class ErrorHandlingService implements \IteratorAggregate
2323
{
24+
/**
25+
* @var array
26+
*/
2427
protected $errors = [];
2528

2629
/**
2730
* @param ErrorInterface $error
31+
* @return void
2832
*/
2933
public function log(ErrorInterface $error)
3034
{

0 commit comments

Comments
 (0)