original_string: public static function generate(String $name) : Bool
      {
          Post::project($name);
  
          $validation = Singleton::class('ZN\Validation\Data');
  
          $validation->rules('project', ['alpha'], 'Project Name');
  
          if( ! $error = $validation->error('string') )
          {
              $source = EXTERNAL_FILES_DIR . 'DefaultProject.zip';
              $target = PROJECTS_DIR . Post::project();
  
              Forge::zipExtract($source, $target);
  
              return true;
          }
  
          return false;
      }
code: public static function generate(String $name) : Bool
      {
          Post::project($name);
  
          $validation = Singleton::class('ZN\Validation\Data');
  
          $validation->rules('project', ['alpha'], 'Project Name');
  
          if( ! $error = $validation->error('string') )
          {
              $source = EXTERNAL_FILES_DIR . 'DefaultProject.zip';
              $target = PROJECTS_DIR . Post::project();
  
              Forge::zipExtract($source, $target);
  
              return true;
          }
  
          return false;
      }
code_tokens: public static function generate ( String $ name ) : Bool { Post :: project ( $ name ) ; $ validation = Singleton :: class ( 'ZN\Validation\Data' ) ; $ validation -> rules ( 'project' , [ 'alpha' ] , 'Project Name' ) ; if ( ! $ error = $ validation -> error ( 'string' ) ) { $ source = EXTERNAL_FILES_DIR . 'DefaultProject.zip' ; $ target = PROJECTS_DIR . Post :: project ( ) ; Forge :: zipExtract ( $ source , $ target ) ; return true ; } return false ; }
docstring: Select project name
  
  @param string $name
  
  @return bool
docstring_tokens: Select project name