original_string: protected function loadFile($file)
      {
          if (!stream_is_local($file)) {
              throw new InvalidArgumentException(sprintf('This is not a local file "%s".', $file));
          }
  
          if (!file_exists($file)) {
              throw new InvalidArgumentException(sprintf('The service file "%s" is not valid.', $file));
          }
  
          if (null === $this->jsonParser) {
              $this->jsonParser = new Json();
          }
  
          return $this->validate($this->jsonParser->decode(file_get_contents($file), true), $file);
      }
code: protected function loadFile($file)
      {
          if (!stream_is_local($file)) {
              throw new InvalidArgumentException(sprintf('This is not a local file "%s".', $file));
          }
  
          if (!file_exists($file)) {
              throw new InvalidArgumentException(sprintf('The service file "%s" is not valid.', $file));
          }
  
          if (null === $this->jsonParser) {
              $this->jsonParser = new Json();
          }
  
          return $this->validate($this->jsonParser->decode(file_get_contents($file), true), $file);
      }
code_tokens: protected function loadFile ( $ file ) { if ( ! stream_is_local ( $ file ) ) { throw new InvalidArgumentException ( sprintf ( 'This is not a local file "%s".' , $ file ) ) ; } if ( ! file_exists ( $ file ) ) { throw new InvalidArgumentException ( sprintf ( 'The service file "%s" is not valid.' , $ file ) ) ; } if ( null === $ this -> jsonParser ) { $ this -> jsonParser = new Json ( ) ; } return $ this -> validate ( $ this -> jsonParser -> decode ( file_get_contents ( $ file ) , true ) , $ file ) ; }
docstring: Loads the Json File
  
  @param string $file
  
  @throws \Zend\Json\Exception\RuntimeException
  @throws \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
  @return array
docstring_tokens: Loads the Json File