original_string: protected function loadComposerJson()
      {
          $composerJsonPath = $this->getComposerJsonPath();
  
          if (! File::exists($composerJsonPath)) {
              throw new FileNotFoundException('composer.json does not exist');
          }
  
          $composerJsonContent = File::get($composerJsonPath);
          $composerJson = json_decode($composerJsonContent, true);
  
          if (! is_array($composerJson)) {
              throw new RuntimeException("Invalid composer.json file [$composerJsonPath]");
          }
  
          return $composerJson;
      }
code: protected function loadComposerJson()
      {
          $composerJsonPath = $this->getComposerJsonPath();
  
          if (! File::exists($composerJsonPath)) {
              throw new FileNotFoundException('composer.json does not exist');
          }
  
          $composerJsonContent = File::get($composerJsonPath);
          $composerJson = json_decode($composerJsonContent, true);
  
          if (! is_array($composerJson)) {
              throw new RuntimeException("Invalid composer.json file [$composerJsonPath]");
          }
  
          return $composerJson;
      }
code_tokens: protected function loadComposerJson ( ) { $ composerJsonPath = $ this -> getComposerJsonPath ( ) ; if ( ! File :: exists ( $ composerJsonPath ) ) { throw new FileNotFoundException ( 'composer.json does not exist' ) ; } $ composerJsonContent = File :: get ( $ composerJsonPath ) ; $ composerJson = json_decode ( $ composerJsonContent , true ) ; if ( ! is_array ( $ composerJson ) ) { throw new RuntimeException ( "Invalid composer.json file [$composerJsonPath]" ) ; } return $ composerJson ; }
docstring: Load and parse content of composer.json.
  
  @return array
  
  @throws FileNotFoundException
  @throws RuntimeException
docstring_tokens: Load and parse content of composer . json .