Skip to content

Commit

Permalink
Rename method getList to list.
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaprajescu authored Sep 15, 2016
1 parent 2d9c069 commit adbf97a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function delete($src) {
* - on success : [{url: 'url', thumb: 'thumb', name: 'name'}, ...]
* - on error : {error: 'error message'}
*/
public static function getList($folderPath, $thumbPath = null) {
public static function list($folderPath, $thumbPath = null) {

This comment has been minimized.

Copy link
@damianstasik

damianstasik Sep 29, 2016

list is a reserved PHP keyword, please revert that commit.
http://php.net/manual/en/reserved.keywords.php


if (empty($thumbPath)) {
$thumbPath = $folderPath;
Expand Down Expand Up @@ -108,4 +108,4 @@ public static function getList($folderPath, $thumbPath = null) {
}

class_alias('FroalaEditor\Image', 'FroalaEditor_Image');
?>
?>

0 comments on commit adbf97a

Please sign in to comment.