@@ -75,17 +75,17 @@ |
||
75 | 75 | { |
76 | 76 | $this->statClient->performQuery('projects/list', []); |
77 | 77 | } |
78 | - catch(ClientException $e) |
|
78 | + catch (ClientException $e) |
|
79 | 79 | { |
80 | 80 | $now = Carbon::now(); |
81 | 81 | try |
82 | 82 | { |
83 | - if($e->getCode() == 403){ |
|
83 | + if ($e->getCode() == 403) { |
|
84 | 84 | preg_match("/(\d{1,2}) hours and (\d{1,2}) minutes/", $e->getResponse()->getBody()->getContents(), $matches); |
85 | 85 | return $now->addHours($matches[1])->addMinutes($matches[2]); |
86 | 86 | } |
87 | 87 | } |
88 | - catch(\Exception $e) |
|
88 | + catch (\Exception $e) |
|
89 | 89 | { |
90 | 90 | // |
91 | 91 | } |
@@ -74,8 +74,7 @@ discard block |
||
74 | 74 | try |
75 | 75 | { |
76 | 76 | $this->statClient->performQuery('projects/list', []); |
77 | - } |
|
78 | - catch(ClientException $e) |
|
77 | + } catch(ClientException $e) |
|
79 | 78 | { |
80 | 79 | $now = Carbon::now(); |
81 | 80 | try |
@@ -84,8 +83,7 @@ discard block |
||
84 | 83 | preg_match("/(\d{1,2}) hours and (\d{1,2}) minutes/", $e->getResponse()->getBody()->getContents(), $matches); |
85 | 84 | return $now->addHours($matches[1])->addMinutes($matches[2]); |
86 | 85 | } |
87 | - } |
|
88 | - catch(\Exception $e) |
|
86 | + } catch(\Exception $e) |
|
89 | 87 | { |
90 | 88 | // |
91 | 89 | } |