Remove unused 'use' statements at the top of bootstrap.inc.
Break some boolean statements (AND/OR) to multiple lines. This may be controversial.
Check that the $cache object is really a stdClass instance. This may be controversial.
\Drupal::moduleHandler()->alter() has no return value, so neither should drupal_alter().
Avoid using class alias 'Language', since a function with the same name exists.
Remove unused local variable $base_root in function watchdog().