Code Duplication    Length = 12-12 lines in 2 locations

src/GetTrait.php 2 locations

@@ 105-116 (lines=12) @@
102
     *
103
     * @return array|null
104
     */
105
    public function getAvailableDictionaries()
106
    {
107
        $ret = null;
108
109
        $dictionaries = $this->get('/proofing/availabledictionaries');
110
111
        if (is_array($dictionaries) && count($dictionaries) > 0) {
112
            $ret = array_map('trim', $dictionaries);
113
        }
114
115
        return $ret;
116
    }
117
118
    /**
119
     * Return an array of suggestions for a misspelled word.
@@ 302-313 (lines=12) @@
299
     *
300
     * @return array|null
301
     */
302
    public function getFontList()
303
    {
304
        $ret = null;
305
306
        $fonts = $this->get('/fonts/list');
307
308
        if (is_array($fonts) && count($fonts) > 0) {
309
            $ret = array_map('trim', $fonts);
310
        }
311
312
        return $ret;
313
    }
314
315
    /**
316
     * Return an array properties for the ReportingCloud account