original_string: public function web($config = [], $local = null)
      {
          $files = [$this->getConfigFile('web.php')];
          if ($local === null) {
              $local = $this->env('ENABLE_LOCALCONF', false);
          }
          if ($local) {
              $localFile = $this->getConfigFile('local.php', false);
              if ($localFile !==null) {
                  $files[] = $localFile;
              }
          }
          return $this->mergeFiles($files, $config);
      }
code: public function web($config = [], $local = null)
      {
          $files = [$this->getConfigFile('web.php')];
          if ($local === null) {
              $local = $this->env('ENABLE_LOCALCONF', false);
          }
          if ($local) {
              $localFile = $this->getConfigFile('local.php', false);
              if ($localFile !==null) {
                  $files[] = $localFile;
              }
          }
          return $this->mergeFiles($files, $config);
      }
code_tokens: public function web ( $ config = [ ] , $ local = null ) { $ files = [ $ this -> getConfigFile ( 'web.php' ) ] ; if ( $ local === null ) { $ local = $ this -> env ( 'ENABLE_LOCALCONF' , false ) ; } if ( $ local ) { $ localFile = $ this -> getConfigFile ( 'local.php' , false ) ; if ( $ localFile !== null ) { $ files [ ] = $ localFile ; } } return $ this -> mergeFiles ( $ files , $ config ) ; }
docstring: Builds the web configuration.
  
  If $local is set to `true` and a `local.php` config file exists, it
  is merged into the web configuration.
  
  Alternatively an environment variable `ENABLE_LOCALCONF` can be set
  to 1. Setting $local to `false` completely disables the local config.
  
  @param array $config additional configuration to merge into the result
  @param bool|null $local whether to check for local configuration overrides.
  The default is `null`, which will check `ENABLE_LOCALCONF` env var.
  @return array the web configuration array
  @throws \Exception
docstring_tokens: Builds the web configuration .