Code Duplication    Length = 12-12 lines in 2 locations

src/GetTrait.php 2 locations

@@ 99-110 (lines=12) @@
96
     *
97
     * @return array|null
98
     */
99
    public function getAvailableDictionaries()
100
    {
101
        $ret = null;
102
103
        $dictionaries = $this->get('/proofing/availabledictionaries');
104
105
        if (is_array($dictionaries) && count($dictionaries) > 0) {
106
            $ret = array_map('trim', $dictionaries);
107
        }
108
109
        return $ret;
110
    }
111
112
    /**
113
     * Return an array of suggestions for a misspelled word.
@@ 296-307 (lines=12) @@
293
     *
294
     * @return array|null
295
     */
296
    public function getFontList()
297
    {
298
        $ret = null;
299
300
        $fonts = $this->get('/fonts/list');
301
302
        if (is_array($fonts) && count($fonts) > 0) {
303
            $ret = array_map('trim', $fonts);
304
        }
305
306
        return $ret;
307
    }
308
309
    /**
310
     * Return an array properties for the ReportingCloud account