Remove JSON exceptions that are not thrown anyway.

This commit is contained in:
James Cole
2023-12-22 07:47:13 +01:00
parent 34e22e0747
commit 58dea55d38
52 changed files with 105 additions and 211 deletions

View File

@@ -67,7 +67,6 @@ class AccountController extends Controller
* Documentation for this endpoint:
* https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getAccountsAC
*
* @throws \JsonException
* @throws FireflyException
* @throws FireflyException
*/

View File

@@ -70,8 +70,7 @@ class AccountController extends Controller
* https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/charts/getChartAccountOverview
*
* @throws FireflyException
* @throws \JsonException
* @throws ContainerExceptionInterface
* * @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function overview(DateRequest $request): JsonResponse

View File

@@ -71,8 +71,7 @@ class ShowController extends Controller
* Display a listing of the resource.
*
* @throws FireflyException
* @throws \JsonException
*/
* */
public function index(): JsonResponse
{
$pageSize = $this->parameters->get('limit');
@@ -102,8 +101,7 @@ class ShowController extends Controller
* Show a currency.
*
* @throws FireflyException
* @throws \JsonException
*/
* */
public function show(TransactionCurrency $currency): JsonResponse
{
/** @var User $user */
@@ -131,8 +129,7 @@ class ShowController extends Controller
* Show a currency.
*
* @throws FireflyException
* @throws \JsonException
*/
* */
public function showDefault(): JsonResponse
{
/** @var User $user */

View File

@@ -68,8 +68,7 @@ class StoreController extends Controller
* Store new currency.
*
* @throws FireflyException
* @throws \JsonException
*/
* */
public function store(StoreRequest $request): JsonResponse
{
$currency = $this->repository->store($request->getAll());

View File

@@ -69,8 +69,7 @@ class UpdateController extends Controller
* Disable a currency.
*
* @throws FireflyException
* @throws \JsonException
*/
* */
public function disable(TransactionCurrency $currency): JsonResponse
{
// must be unused.
@@ -134,8 +133,7 @@ class UpdateController extends Controller
* Enable a currency.
*
* @throws FireflyException
* @throws \JsonException
*/
* */
public function enable(TransactionCurrency $currency): JsonResponse
{
$this->repository->enable($currency);
@@ -162,8 +160,7 @@ class UpdateController extends Controller
* Update a currency.
*
* @throws FireflyException
* @throws \JsonException
*/
* */
public function update(UpdateRequest $request, TransactionCurrency $currency): JsonResponse
{
$data = $request->getAll();