sub menus didn't get checked for being active.

Based off the method in ```Menu.php``` I've updated ```Nav``` so it will check if sub menus are active or not.
Added advanced app tests to travis
style fixes with phpcs:yii2
merge
fix phpDoc method signature
fixed implementation of Session::getHasSessionId().
Fixed user status check.
Merge branch 'master' of https://github.com/yiisoft/yii2 into travis-advanced-app
fix scrutinizer path
more grid docs
added example of using try-catch to hanle errors
console/Controller support local options per action
console/Controller show help for local options
Code style fixes
Merge pull request #2672 from lucianobaraglia/code-style-fixes

Code style fixes
Merge pull request #2667 from AlexGx/tests-codestyle-fix

Tests codestyle fix
Update README.md
Merge pull request #2663 from Theill11/travis-advanced-app

Added advanced app tests to travis
Update test-fixture.md

small typo
Merge pull request #2673 from Theill11/patch-1

Update test-fixture.md