@@ -39,8 +39,7 @@ discard block |
||
| 39 | 39 | try |
| 40 | 40 | { |
| 41 | 41 | return Twitter::$plugin->getApi()->get($uri, $query, $headers, $options, $enableCache, $cacheExpire); |
| 42 | - } |
|
| 43 | - catch(\Exception $e) |
|
| 42 | + } catch(\Exception $e) |
|
| 44 | 43 | { |
| 45 | 44 | Craft::info("Error requesting Twitter’s API: ".$e->getMessage(), __METHOD__); |
| 46 | 45 | } |
@@ -59,8 +58,7 @@ discard block |
||
| 59 | 58 | try |
| 60 | 59 | { |
| 61 | 60 | return Twitter::$plugin->getApi()->getTweetById($tweetId, $query); |
| 62 | - } |
|
| 63 | - catch(\Exception $e) |
|
| 61 | + } catch(\Exception $e) |
|
| 64 | 62 | { |
| 65 | 63 | Craft::info("Couldn’t get tweet by ID: ".$e->getMessage(), __METHOD__); |
| 66 | 64 | } |
@@ -79,8 +77,7 @@ discard block |
||
| 79 | 77 | try |
| 80 | 78 | { |
| 81 | 79 | return Twitter::$plugin->getApi()->getUserById($twitterUserId, $query); |
| 82 | - } |
|
| 83 | - catch(\Exception $e) |
|
| 80 | + } catch(\Exception $e) |
|
| 84 | 81 | { |
| 85 | 82 | Craft::info("Couldn’t get user by ID: ".$e->getMessage(), __METHOD__); |
| 86 | 83 | } |
@@ -99,8 +96,7 @@ discard block |
||
| 99 | 96 | try |
| 100 | 97 | { |
| 101 | 98 | return TwitterHelper::getUserProfileImageResourceUrl($twitterUserId, $size); |
| 102 | - } |
|
| 103 | - catch(\Exception $e) |
|
| 99 | + } catch(\Exception $e) |
|
| 104 | 100 | { |
| 105 | 101 | Craft::info("Couldn’t get user profile image resource URL: ".$e->getMessage(), __METHOD__); |
| 106 | 102 | } |