the first 1 is just a sum
probably used to calculate seconds (60 * 60)
the second is a function used to make break lines in code when the return key is pressed
like this
the 3rd is just a simple if statement, saying that if the variable $ahead is equal 2 '+' then it will perform an action depending whats inside the curly brackets