| @@ 93-104 (lines=12) @@ | ||
| 90 | * |
|
| 91 | * @return array|null |
|
| 92 | */ |
|
| 93 | public function getAvailableDictionaries() |
|
| 94 | { |
|
| 95 | $ret = null; |
|
| 96 | ||
| 97 | $dictionaries = $this->get('/proofing/availabledictionaries'); |
|
| 98 | ||
| 99 | if (is_array($dictionaries) && count($dictionaries) > 0) { |
|
| 100 | $ret = array_map('trim', $dictionaries); |
|
| 101 | } |
|
| 102 | ||
| 103 | return $ret; |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * Return an array of suggestions for a misspelled word. |
|
| @@ 290-301 (lines=12) @@ | ||
| 287 | * |
|
| 288 | * @return array|null |
|
| 289 | */ |
|
| 290 | public function getFontList() |
|
| 291 | { |
|
| 292 | $ret = null; |
|
| 293 | ||
| 294 | $fonts = $this->get('/fonts/list'); |
|
| 295 | ||
| 296 | if (is_array($fonts) && count($fonts) > 0) { |
|
| 297 | $ret = array_map('trim', $fonts); |
|
| 298 | } |
|
| 299 | ||
| 300 | return $ret; |
|
| 301 | } |
|
| 302 | ||
| 303 | /** |
|
| 304 | * Return an array properties for the ReportingCloud account |
|