Code Duplication    Length = 10-11 lines in 2 locations

src/Result/InterestByCityResult.php 1 location

@@ 81-91 (lines=11) @@
78
    /**
79
     * @inheritDoc
80
     */
81
    public function jsonSerialize(): array
82
    {
83
        return [
84
            'geoName' => $this->getGeoName(),
85
            'value' => $this->getValue(),
86
            'maxValueIndex' => $this->getMaxValueIndex(),
87
            'hasData' => $this->hasData(),
88
            'lat' => $this->getLat(),
89
            'lng' => $this->getLng()
90
        ];
91
    }
92
}
93

src/Result/InterestByRegionResult.php 1 location

@@ 79-88 (lines=10) @@
76
    /**
77
     * @inheritDoc
78
     */
79
    public function jsonSerialize(): array
80
    {
81
        return [
82
            'geoCode' => $this->getGeoCode(),
83
            'geoName' => $this->getGeoName(),
84
            'value' => $this->getValue(),
85
            'maxValueIndex' => $this->getMaxValueIndex(),
86
            'hasData' => $this->hasData(),
87
        ];
88
    }
89
}
90