Skip to main content
nforced's user avatar
nforced's user avatar
nforced's user avatar
nforced
  • Member for 6 years, 1 month
  • Last seen more than 5 years ago
awarded
awarded
revised
Back end validation as front end validation
added 143 characters in body
Loading…
revised
Back end validation as front end validation
deleted 27 characters in body
Loading…
answered
Loading…
comment
Recursive trim() function to handle arrays and objects
@MonkeyZeus right, I wasn't aware these is such criteria at the time of writing.
revised
Loading…
Loading…
awarded
answered
Loading…
comment
Count days from overlapping date periods with Carbon
Interesting point of view. I used to do "one line coding" and I like it but now I have a new mentor Jeffrey Way from Laravel and I am trying to follow his style. Beside PSR is violated this way. I did refactored my code based on some of the things I liked in your solution. I saw how you use static and self, did you did this for a purpose? Check this out leaseweb.com/labs/2014/04/static-versus-self-php
awarded
comment
Count days from overlapping date periods with Carbon
@k0pernikus Yup, I added some invalid ranges that will be discarded and removed the compareDateOnly as it turned out hours are not taken into consideration.
revised
Loading…
awarded
Loading…
awarded