Remove some unreachable code.

This commit is contained in:
James Cole
2022-12-30 20:48:48 +01:00
parent 742c84269b
commit 2b9996b844
6 changed files with 8 additions and 15 deletions

View File

@@ -121,6 +121,5 @@ class AccountController extends Controller
} }
return response()->json($chartData); return response()->json($chartData);
return response()->json(['x']);
} }
} }

View File

@@ -86,8 +86,6 @@ class MonthReportGenerator implements ReportGeneratorInterface
$result = sprintf('Could not render report view: %s', $e->getMessage()); $result = sprintf('Could not render report view: %s', $e->getMessage());
throw new FireflyException($result, 0, $e); throw new FireflyException($result, 0, $e);
} }
return $result;
} }
/** /**

View File

@@ -61,8 +61,6 @@ class MonthReportGenerator implements ReportGeneratorInterface
$result = 'Could not render report view.'; $result = 'Could not render report view.';
throw new FireflyException($result, 0, $e); throw new FireflyException($result, 0, $e);
} }
return $result;
} }
/** /**

View File

@@ -65,8 +65,6 @@ class MultiYearReportGenerator implements ReportGeneratorInterface
$result = sprintf('Could not render report view: %s', $e->getMessage()); $result = sprintf('Could not render report view: %s', $e->getMessage());
throw new FireflyException($result, 0, $e); throw new FireflyException($result, 0, $e);
} }
return $result;
} }
/** /**

View File

@@ -32,7 +32,7 @@
<a href="webhooks/create" class="btn btn-success"><span class="fa fa-plus fa-fw"></span>{{ $t('firefly.create_new_webhook') }}</a> <a href="webhooks/create" class="btn btn-success"><span class="fa fa-plus fa-fw"></span>{{ $t('firefly.create_new_webhook') }}</a>
</div> </div>
<table class="table table-responsive table-hover" v-if="webhooks.length > 0"> <table class="table table-responsive table-hover" v-if="webhooks.length > 0" aria-label="A table.">
<thead> <thead>
<tr> <tr>
<th>Title</th> <th>Title</th>

View File

@@ -40,26 +40,26 @@
<table class="table table-hover"> <table class="table table-hover">
<tbody> <tbody>
<tr> <tr>
<td style="width:40%;">Title</td> <th style="width:40%;">Title</th>
<td>{{ title }}</td> <td>{{ title }}</td>
</tr> </tr>
<tr> <tr>
<td>{{ $t('list.active') }}</td> <th>{{ $t('list.active') }}</th>
<td> <td>
<em class="fa fa-check text-success" v-if="active"></em> <em class="fa fa-check text-success" v-if="active"></em>
<em class="fa fa-times text-danger" v-if="!active"></em> <em class="fa fa-times text-danger" v-if="!active"></em>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>{{ $t('list.trigger') }}</td> <th>{{ $t('list.trigger') }}</th>
<td> {{ trigger }}</td> <td> {{ trigger }}</td>
</tr> </tr>
<tr> <tr>
<td>{{ $t('list.response') }}</td> <th>{{ $t('list.response') }}</th>
<td> {{ response }}</td> <td> {{ response }}</td>
</tr> </tr>
<tr> <tr>
<td>{{ $t('list.delivery') }}</td> <th>{{ $t('list.delivery') }}</th>
<td> {{ delivery }}</td> <td> {{ delivery }}</td>
</tr> </tr>
</tbody> </tbody>
@@ -85,7 +85,7 @@
<table class="table table-hover"> <table class="table table-hover">
<tbody> <tbody>
<tr> <tr>
<td style="width:40%;">{{ $t('list.url') }}</td> <th style="width:40%;">{{ $t('list.url') }}</th>
<td><input type="text" readonly class="form-control" :value=url></td> <td><input type="text" readonly class="form-control" :value=url></td>
</tr> </tr>
<tr> <tr>
@@ -128,7 +128,7 @@
</p> </p>
</div> </div>
<div class="box-body no-padding" v-if="messages.length > 0"> <div class="box-body no-padding" v-if="messages.length > 0">
<table class="table table-hover"> <table class="table table-hover" aria-label="A table">
<thead> <thead>
<tr> <tr>
<th> <th>