It appears that the code you found was written using an older version of MATLAB (R2011a or earlier). LineSearchType has since been depricated as mentioned in the release notes:
You can try fixing this yourself by following the recommendations in the above link (look at R2011b) OR contact the author of the file and ask them to fix it.