A source in the middle of a moving train emits two light rays in opposite directions. For the train frame of reference (FOR), two light rays reach two ends at the same time and be in phase. For a ground observer, the distance taken by the light going to the near end is larger than the distance taken by the light goring to the rear end. This means the number of wavelengths the near light takes is also larger than the number of wavelengths the rear light takes which means; the two rays could not be necessarily in phase. Is that true?