Code cleanup

This commit is contained in:
James Cole
2019-08-17 10:47:10 +02:00
parent 44823c6fec
commit 23479790fe
45 changed files with 38 additions and 177 deletions

View File

@@ -56,8 +56,6 @@ class RecurrenceFormRequest extends Request
* @return array
* @throws FireflyException
*
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
public function getAll(): array
{
@@ -225,9 +223,7 @@ class RecurrenceFormRequest extends Request
* @return array
* @throws FireflyException
*
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings(PHPMD.NPathComplexity)
*
*/
public function rules(): array
{
@@ -318,8 +314,6 @@ class RecurrenceFormRequest extends Request
* Parses repetition data.
*
* @return array
*
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
private function parseRepetitionData(): array
{

View File

@@ -33,7 +33,7 @@ use Log;
*
* @codeCoverageIgnore
*
* @SuppressWarnings(PHPMD.NumberOfChildren)
*
*/
class Request extends FormRequest
{
@@ -183,8 +183,6 @@ class Request extends FormRequest
* @param string $field
*
* @return string
*
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
public function string(string $field): string
{

View File

@@ -45,8 +45,6 @@ class RuleFormRequest extends Request
*
* @return array
*
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
public function getRuleData(): array
{