Add ConstantScanner and resolve scanning constants with docblock
Change method getConstants() that now return instance of ConstantScanner
Added methods for verifying if constant or property exists
Update docblocks
Update ClassScanner
Update method getConstants to avoid BC break
Update DerivedClassScanner and ClassScannerTest
Adds ability to specify a template for exceptions retrieved from Exception::getPrevious
View: correctly validate input in PartialLoop

Change the condition to be more safe and intuitive.

Closes #4545
PartialLoop: rewrite input check even better
PartialLoop: simplify check, remove comment
Update MetadataFeature.php

This minor change enables to use the MetadataFeature being used on Views rather than Tables only. Should be reviewed by author to ensure this is on the right place.
Update MetadataFeature.php

trailing spaces removed
Validator Messages Tests

Add tests to validate if messages are correctly concatenating min value
Indentation Fixes
More Indentatio Fixes

BTW - Is there an easy way to check standards?
Cast Parameters

Cast paramenters to int
Zend\Form - trying to get() a non-existent element should raise an exception
Zend\Form - Exception when try to get() element that doesn't exist should use sprintf, message should not use punctuation & should not import the exception class
Fix Request.php so HTTP_HOST will take precedence over SERVER_NAME

In nginx for example the SERVER_NAME is the first value which is configured after server_name

for example:
server_name server1.com server2.com serverN.com

SERVER_NAME in php env will be server1.com
While HTTP_HOST will be the requested URL
Update Request.php