improving docblock for Set::extract and Set::classicExtract return types
Merge pull request #2967 from steinkel/feature/improve-set-docblock

improving docblock for Set::extract and Set::classicExtract return types
fixing Set docblocks
Merge pull request #2971 from steinkel/feature/improve-set-docblock

fixing Set docblocks
Documentation correction

TimeHelper::$niceFormat to CakeTime::$niceFormat
Merge pull request #2988 from kp2356/patch-1

Documentation correction
Sort route keys in reverse length order before replacing to prevent incorrect matching
Added a test case
Removed comparison method
Adding __debugInfo to Database\Query
Fixed key sorting
Use array_keys instead of array_flip
Add templates option to create().

This will make it easier to override templates on a per form basis.
Add a way to reset templates on the FormHelper.

Now that there are multiple ways to mutate the templates at runtime,
having a way to restore any edits will probably come in handy.
Test if keys are empty before sorting
Made it slightly neater
Fixed PHPCS error
#2994, unnecessary calls to Model::__isset(null)
Avoiding mocking the method funcition in some tests to avoid PHPUnit 4.0
fatals
Fixing the DatabaseSuite file for phpunit 4.0