alientronics/fleetany-alerts

View on GitHub
app/Repositories/AlertsRepository.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function create(Request $request)
    {
        try {
            $data = $request->all();

Severity: Minor
Found in app/Repositories/AlertsRepository.php - About 1 hr to fix

    Method sendFakeEmail has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function sendFakeEmail($email, $option)
        {
            try {
                $alarm = new \stdClass();
                $alarm->vehicle_fleet = 'vehicle_fleet';
    Severity: Minor
    Found in app/Repositories/AlertsRepository.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status