== to === and != to !== where applicable
Merge pull request #1127 from dereuromark/master-strict-comparison

Strict comparison for strings where applicable
Removed superfluous brackets in regex

 The outer brackets are just another grouping
Switch from instanceof to method_exists.

This change lets custom loggers implement scopes without inheriting from
BaseLog.
Merge pull request #1135 from ravage84/my-regex

Removed superfluous brackets in regex