@kenkouot looks like some unintended white space changes are happening here.  I see an extra tab before $target and the following lines.  Maybe check your IDE settings?