-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
namespace App\Controllers; | ||
|
||
use Github\Exception\ExceptionInterface; | ||
use Psr\Http\Client\ClientExceptionInterface; | ||
|
||
class Home extends BaseController | ||
{ | ||
|
@@ -17,7 +17,9 @@ public function index() | |
'stargazers_count' => number_format($repos['codeigniter4']->stargazers_count), | ||
'forks_count' => number_format($repos['codeigniter4']->forks_count), | ||
]; | ||
} catch (ExceptionInterface $e) { | ||
} catch (ClientExceptionInterface $e) { | ||
log_message('error', '[' . __METHOD__ . '] ' . get_class($e) . ': ' . $e->getMessage()); | ||
Check warning on line 21 in app/Controllers/Home.php GitHub Actions / Mutation Testing
Check warning on line 21 in app/Controllers/Home.php GitHub Actions / Mutation Testing
Check warning on line 21 in app/Controllers/Home.php GitHub Actions / Mutation Testing
Check warning on line 21 in app/Controllers/Home.php GitHub Actions / Mutation Testing
Check warning on line 21 in app/Controllers/Home.php GitHub Actions / Mutation Testing
Check warning on line 21 in app/Controllers/Home.php GitHub Actions / Mutation Testing
Check warning on line 21 in app/Controllers/Home.php GitHub Actions / Mutation Testing
Check warning on line 21 in app/Controllers/Home.php GitHub Actions / Mutation Testing
Check warning on line 21 in app/Controllers/Home.php GitHub Actions / Mutation Testing
Check warning on line 21 in app/Controllers/Home.php GitHub Actions / Mutation Testing
|
||
|
||
$data = [ | ||
'html_url' => 'https://github.com/codeigniter4/CodeIgniter4', | ||
'stargazers_count' => '', | ||
|