Code cleanup.

This commit is contained in:
James Cole
2023-12-20 19:35:52 +01:00
parent c4f6366642
commit 64ec0cf62e
997 changed files with 12908 additions and 28136 deletions

View File

@@ -38,8 +38,6 @@ class JournalLinkRequest extends FormRequest
/**
* Returns the data required by the controller.
*
* @return array
*/
public function getLinkInfo(): array
{
@@ -56,14 +54,13 @@ class JournalLinkRequest extends FormRequest
/**
* Rules for this request.
*
* @return array
*/
public function rules(): array
{
// all possible combinations of link types and inward / outward:
$combinations = [];
$linkTypes = LinkType::get(['id']);
/** @var LinkType $type */
foreach ($linkTypes as $type) {
$combinations[] = sprintf('%d_inward', $type->id);