Various code cleanup.

This commit is contained in:
James Cole
2017-12-22 18:32:43 +01:00
parent f13a93348f
commit 8bd76d1ff0
188 changed files with 383 additions and 396 deletions

View File

@@ -31,7 +31,6 @@ use Illuminate\Support\Collection;
*/
class MonthReportGenerator implements ReportGeneratorInterface
{
/** @var Collection */
private $accounts;
/** @var Carbon */
@@ -43,6 +42,7 @@ class MonthReportGenerator implements ReportGeneratorInterface
/**
* @return string
*
* @throws \Throwable
*/
public function generate(): string

View File

@@ -32,7 +32,8 @@ class MultiYearReportGenerator extends MonthReportGenerator
/**
* @return string
*/
protected function preferredPeriod(): string {
protected function preferredPeriod(): string
{
return 'year';
}
}

View File

@@ -32,7 +32,8 @@ class YearReportGenerator extends MonthReportGenerator
/**
* @return string
*/
protected function preferredPeriod(): string {
protected function preferredPeriod(): string
{
return 'month';
}
}

View File

@@ -41,6 +41,7 @@ class MonthReportGenerator implements ReportGeneratorInterface
/**
* @return string
*
* @throws \Throwable
*/
public function generate(): string

View File

@@ -40,6 +40,7 @@ class MultiYearReportGenerator implements ReportGeneratorInterface
/**
* @return string
*
* @throws \Throwable
*/
public function generate(): string

View File

@@ -40,6 +40,7 @@ class YearReportGenerator implements ReportGeneratorInterface
/**
* @return string
*
* @throws \Throwable
*/
public function generate(): string