original_string: public function configure(Composer $composer, IOInterface $io)
      {
          $this->composer = $composer;
          $this->jsonFile = null;
          $this->io = $io;
          
          $publicDirectorySet = $this->isPublicDirectorySet();
          $wordPressInstallDirectorySet = $this->isWordPressInstallDirectorySet();
          $reposConfigured = $this->areReposConfigured();
          $sortingConfigured = $this->isSortingConfigured();
          
          if ($publicDirectorySet && $wordPressInstallDirectorySet && $reposConfigured && $sortingConfigured) {
              return;
          }
          
          if (! $publicDirectorySet) {
              $this->setPublicDirectory();
          }
          
          if (! $wordPressInstallDirectorySet) {
              $this->setWordPressInstallDirectory();
          }
          
          if (! $reposConfigured) {
              $this->configureRepos();
          }
          
          if (! $sortingConfigured) {
              $this->configureSorting();
          }
          
          $this->sortProperties();
          $this->saveJson();
      }
code: public function configure(Composer $composer, IOInterface $io)
      {
          $this->composer = $composer;
          $this->jsonFile = null;
          $this->io = $io;
          
          $publicDirectorySet = $this->isPublicDirectorySet();
          $wordPressInstallDirectorySet = $this->isWordPressInstallDirectorySet();
          $reposConfigured = $this->areReposConfigured();
          $sortingConfigured = $this->isSortingConfigured();
          
          if ($publicDirectorySet && $wordPressInstallDirectorySet && $reposConfigured && $sortingConfigured) {
              return;
          }
          
          if (! $publicDirectorySet) {
              $this->setPublicDirectory();
          }
          
          if (! $wordPressInstallDirectorySet) {
              $this->setWordPressInstallDirectory();
          }
          
          if (! $reposConfigured) {
              $this->configureRepos();
          }
          
          if (! $sortingConfigured) {
              $this->configureSorting();
          }
          
          $this->sortProperties();
          $this->saveJson();
      }
code_tokens: public function configure ( Composer $ composer , IOInterface $ io ) { $ this -> composer = $ composer ; $ this -> jsonFile = null ; $ this -> io = $ io ; $ publicDirectorySet = $ this -> isPublicDirectorySet ( ) ; $ wordPressInstallDirectorySet = $ this -> isWordPressInstallDirectorySet ( ) ; $ reposConfigured = $ this -> areReposConfigured ( ) ; $ sortingConfigured = $ this -> isSortingConfigured ( ) ; if ( $ publicDirectorySet && $ wordPressInstallDirectorySet && $ reposConfigured && $ sortingConfigured ) { return ; } if ( ! $ publicDirectorySet ) { $ this -> setPublicDirectory ( ) ; } if ( ! $ wordPressInstallDirectorySet ) { $ this -> setWordPressInstallDirectory ( ) ; } if ( ! $ reposConfigured ) { $ this -> configureRepos ( ) ; } if ( ! $ sortingConfigured ) { $ this -> configureSorting ( ) ; } $ this -> sortProperties ( ) ; $ this -> saveJson ( ) ; }
docstring: Configure the composer.json file.
  
  @return void
docstring_tokens: Configure the composer . json file .