This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
23
{
24
use BucketingTrait;
25
26
/**
27
* Defines how many results will be received from each shard
28
* @param string $shardSize
29
*/
30
private $shardSize;
31
32
/**
33
* Inner aggregations container init.
34
*
35
* @param string $name
36
* @param string $field
37
* @param int $shardSize
38
*/
39
public function __construct($name, $field = null, $shardSize = null)
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.