laravel/framework — pull request #2628 by vlakoff (2013-11-03 07:01:08+00:00)
Title: Fix Str::startsWith() end endsWith() with empty needles 

Follow-up to #2627.

Also includes a code optimization.