-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contractor appraisal letter #3687
Contractor appraisal letter #3687
Conversation
Coverage report for commit: 0e58dd8
Summary - Lines: 2.96% | Methods: 5.35%
🤖 comment via lucassabreu/comment-coverage-clover |
Test summaryRun details
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3687 +/- ##
========================================
Coverage 3.37% 3.37%
Complexity 595 595
========================================
Files 106 106
Lines 2133 2133
========================================
Hits 72 72
Misses 2061 2061 ☔ View full report in Codecov by Sentry. |
public function getEmployeeAge($employee) | ||
{ | ||
$user = $employee->user; | ||
$userProfile = $user->profile; | ||
$dateOfBirth = $userProfile->date_of_birth; | ||
$dob = Carbon::parse($dateOfBirth); | ||
$age = $dob->age; | ||
return $age; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this an accessor in user Model. So that we can get the age attribute everywhere by using $user->age
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
16adc2e
into
feature/intern-contractor-appraisal
Targets #ISSUE_ID
Description of the changes
Breakdown & Estimates
Expected Time Range:
Actual Time:
Feedback Cycle
Cycle Count: 0
Checklist: