@@ -31,22 +31,22 @@ |
||
| 31 | 31 | |
| 32 | 32 | class FeedApi { |
| 33 | 33 | |
| 34 | - public static function listFBFeeds () : array { |
|
| 35 | - $res = array(); |
|
| 36 | - |
|
| 37 | - //load preferences |
|
| 38 | - $prefs = new Preferences("plugin_facebookfeed"); |
|
| 39 | - |
|
| 40 | - //first check, if pageID is set |
|
| 41 | - if (empty($prefs->get("pageID", ""))) { |
|
| 42 | - return array( |
|
| 43 | - 'error' => "No pageID was set in preferences (plugin settings)", |
|
| 44 | - "status" => 500 |
|
| 45 | - ); |
|
| 46 | - } |
|
| 47 | - |
|
| 48 | - return $res; |
|
| 49 | - } |
|
| 34 | + public static function listFBFeeds () : array { |
|
| 35 | + $res = array(); |
|
| 36 | + |
|
| 37 | + //load preferences |
|
| 38 | + $prefs = new Preferences("plugin_facebookfeed"); |
|
| 39 | + |
|
| 40 | + //first check, if pageID is set |
|
| 41 | + if (empty($prefs->get("pageID", ""))) { |
|
| 42 | + return array( |
|
| 43 | + 'error' => "No pageID was set in preferences (plugin settings)", |
|
| 44 | + "status" => 500 |
|
| 45 | + ); |
|
| 46 | + } |
|
| 47 | + |
|
| 48 | + return $res; |
|
| 49 | + } |
|
| 50 | 50 | |
| 51 | 51 | } |
| 52 | 52 | |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | class FeedApi { |
| 33 | 33 | |
| 34 | - public static function listFBFeeds () : array { |
|
| 34 | + public static function listFBFeeds() : array { |
|
| 35 | 35 | $res = array(); |
| 36 | 36 | |
| 37 | 37 | //load preferences |