Goracash/goracash-api-php-client

View on GitHub
src/Service/Web.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 1 of 1 total issue

Identical blocks of code found in 2 locations. Consider refactoring.
Open

public function checkPeriod($startDate, $endDate)
{
$isValidStartDate = $this->utils->isSystemDatetime($startDate);
$isValidEndDate = $this->utils->isSystemDatetime($endDate);
if (!$isValidEndDate || !$isValidStartDate) {
Severity: Major
Found in src/Service/Web.php and 1 other location - About 2 hrs to fix
src/Service/Phone.php on lines 210..226
Category
Status