alientronics/fleetany-alerts

View on GitHub

Showing 3 of 13 total issues

Method testAlertsPostSuccessAfterHours has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testAlertsPostSuccessAfterHours()
    {
        $emails = [];
        $names = [];
        $emails[] = "admin@alientronics.com.br";
Severity: Minor
Found in tests/AlertsTest.php - About 1 hr to fix

    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
        Severity
        Category
        Status
        Source
        Language