Code Duplication    Length = 12-12 lines in 2 locations

src/ReportingCloud.php 2 locations

@@ 79-90 (lines=12) @@
76
     *
77
     * @return array|null
78
     */
79
    public function getAvailableDictionaries()
80
    {
81
        $ret = null;
82
83
        $dictionaries = $this->get('/proofing/availabledictionaries');
84
85
        if (is_array($dictionaries) && count($dictionaries) > 0) {
86
            $ret = array_map('trim', $dictionaries);
87
        }
88
89
        return $ret;
90
    }
91
92
    /**
93
     * Return an array of suggestions for a misspelled word.
@@ 276-287 (lines=12) @@
273
     *
274
     * @return array|null
275
     */
276
    public function getFontList()
277
    {
278
        $ret = null;
279
280
        $fonts = $this->get('/fonts/list');
281
282
        if (is_array($fonts) && count($fonts) > 0) {
283
            $ret = array_map('trim', $fonts);
284
        }
285
286
        return $ret;
287
    }
288
289
    /**
290
     * Return an array properties for the ReportingCloud account