original_string: protected function addStub(Phar $phar)
      {
          $this->fireEvent('STUB');
  
          // Add warning once the phar is older than 30 days
          $defineTime = '';
          if (array_key_exists('package_version', $this->params)) {
              $warningTime = time() + 30 * 86400;
              $defineTime = "define('PHAR_DEV_WARNING_TIME', $warningTime);\n";
          }
  
          $content = $this->files->get(__DIR__ . '/../stubs/compile.stub');
          $content = str_replace('DubbyAlias', $this->alias, $content);
          $content = str_replace('DubbyDefineDateTime', $defineTime, $content);
  
          $phar->setStub($content);
      }
code: protected function addStub(Phar $phar)
      {
          $this->fireEvent('STUB');
  
          // Add warning once the phar is older than 30 days
          $defineTime = '';
          if (array_key_exists('package_version', $this->params)) {
              $warningTime = time() + 30 * 86400;
              $defineTime = "define('PHAR_DEV_WARNING_TIME', $warningTime);\n";
          }
  
          $content = $this->files->get(__DIR__ . '/../stubs/compile.stub');
          $content = str_replace('DubbyAlias', $this->alias, $content);
          $content = str_replace('DubbyDefineDateTime', $defineTime, $content);
  
          $phar->setStub($content);
      }
code_tokens: protected function addStub ( Phar $ phar ) { $ this -> fireEvent ( 'STUB' ) ; // Add warning once the phar is older than 30 days $ defineTime = '' ; if ( array_key_exists ( 'package_version' , $ this -> params ) ) { $ warningTime = time ( ) + 30 * 86400 ; $ defineTime = "define('PHAR_DEV_WARNING_TIME', $warningTime);\n" ; } $ content = $ this -> files -> get ( __DIR__ . '/../stubs/compile.stub' ) ; $ content = str_replace ( 'DubbyAlias' , $ this -> alias , $ content ) ; $ content = str_replace ( 'DubbyDefineDateTime' , $ defineTime , $ content ) ; $ phar -> setStub ( $ content ) ; }
docstring: Adicionar Stub.
  @param Phar $phar
docstring_tokens: Adicionar Stub .