Ver código fonte

chore: formatacao

Gustavo Mantovani 1 dia atrás
pai
commit
19cc78abbe

+ 8 - 6
app/Http/Requests/ClassRequest.php

@@ -17,18 +17,20 @@ public function rules(): array
         $required = $this->isMethod('POST') ? 'required' : 'sometimes';
 
         return [
-            'title'                 => "{$required}|string|max:255",
+            'title' => "{$required}|string|max:255",
+
             'class_package_unit_id' => [
                 $required,
                 'integer',
                 Rule::exists('class_package_units', 'id')
                     ->where('unit_id', $this->input('active_unit_id')),
             ],
-            'instructor'            => 'nullable|string|max:255',
-            'room'                  => 'nullable|string|max:255',
-            'date_time_start'       => "{$required}|date",
-            'date_time_end'         => "{$required}|date|after:date_time_start",
-            'status'                => 'sometimes|string|max:50',
+
+            'instructor'      => 'nullable|string|max:255',
+            'room'            => 'nullable|string|max:255',
+            'date_time_start' => "{$required}|date",
+            'date_time_end'   => "{$required}|date|after:date_time_start",
+            'status'          => 'sometimes|string|max:50',
         ];
     }
 

+ 6 - 6
app/Http/Requests/SupportTicketRequest.php

@@ -11,13 +11,13 @@ public function rules(): array
         $isUpdate = $this->isMethod('PUT') || $this->isMethod('PATCH');
 
         return [
-            'title'       => ($isUpdate ? 'sometimes' : 'required') . '|string|max:255',
-            'severity'    => ($isUpdate ? 'sometimes' : 'required') . '|string|in:alta,normal,baixa',
-            'scope'       => ($isUpdate ? 'sometimes' : 'required') . '|string|in:all,internal,specific',
+            'title'          => ($isUpdate ? 'sometimes' : 'required') . '|string|max:255',
+            'severity'       => ($isUpdate ? 'sometimes' : 'required') . '|string|in:alta,normal,baixa',
+            'scope'          => ($isUpdate ? 'sometimes' : 'required') . '|string|in:all,internal,specific',
             'target_unit_id' => 'nullable|integer|exists:units,id',
-            'sector'      => 'nullable|string|max:255',
-            'description' => 'nullable|string',
-            'status'      => 'sometimes|string|in:in_progress,resolved,unresolved',
+            'sector'         => 'nullable|string|max:255',
+            'description'    => 'nullable|string',
+            'status'         => 'sometimes|string|in:in_progress,resolved,unresolved',
         ];
     }
 }