original_string: protected function addBinFile(Phar $phar)
      {
          $fileBin = $this->files->combine($this->pathBase, $this->fileNameBin);
          if (! $this->files->exists($fileBin)) {
              return;
          }
  
          $this->fireEvent('BIN: file main');
  
          $content = $this->files->get($fileBin);
          $content = preg_replace('{^#!/usr/bin/env php\s*}', '', $content);
          $phar->addFromString('artisan', $content);
      }
code: protected function addBinFile(Phar $phar)
      {
          $fileBin = $this->files->combine($this->pathBase, $this->fileNameBin);
          if (! $this->files->exists($fileBin)) {
              return;
          }
  
          $this->fireEvent('BIN: file main');
  
          $content = $this->files->get($fileBin);
          $content = preg_replace('{^#!/usr/bin/env php\s*}', '', $content);
          $phar->addFromString('artisan', $content);
      }
code_tokens: protected function addBinFile ( Phar $ phar ) { $ fileBin = $ this -> files -> combine ( $ this -> pathBase , $ this -> fileNameBin ) ; if ( ! $ this -> files -> exists ( $ fileBin ) ) { return ; } $ this -> fireEvent ( 'BIN: file main' ) ; $ content = $ this -> files -> get ( $ fileBin ) ; $ content = preg_replace ( '{^#!/usr/bin/env php\s*}' , '' , $ content ) ; $ phar -> addFromString ( 'artisan' , $ content ) ; }
docstring: Adicionar arquivo BIN.
  @param Phar $phar
docstring_tokens: Adicionar arquivo BIN .