original_string: protected function setPublicDirectory()
      {
          if (! $this->json) {
              $this->readJson();
          }
          
          $this->json['extra']['public-dir'] = $this->plugin->getPublicDirectory();
      }
code: protected function setPublicDirectory()
      {
          if (! $this->json) {
              $this->readJson();
          }
          
          $this->json['extra']['public-dir'] = $this->plugin->getPublicDirectory();
      }
code_tokens: protected function setPublicDirectory ( ) { if ( ! $ this -> json ) { $ this -> readJson ( ) ; } $ this -> json [ 'extra' ] [ 'public-dir' ] = $ this -> plugin -> getPublicDirectory ( ) ; }
docstring: Set the public directory in the composer.json.
  
  @return void
docstring_tokens: Set the public directory in the composer . json .