public $uploads = false;
protected $uploadCount = 0;
public $imageBasePath = false;
+ /** @var array|false */
public $nsFilter = false;
+ /** @var bool|resource */
+ public $stderr;
+ /** @var callable|null */
+ protected $importCallback;
+ /** @var callable|null */
+ protected $logItemCallback;
+ /** @var callable|null */
+ protected $uploadCallback;
+ /** @var int */
+ protected $startTime;
function __construct() {
parent::__construct();
$this->setNsfilter( explode( '|', $this->getOption( 'namespaces' ) ) );
}
- if ( $this->hasArg() ) {
- $this->importFromFile( $this->getArg() );
+ if ( $this->hasArg( 0 ) ) {
+ $this->importFromFile( $this->getArg( 0 ) );
} else {
$this->importFromStdin();
}
}
$this->uploadCount++;
// $this->report();
+ // @phan-suppress-next-line PhanUndeclaredMethod
$this->progress( "upload: " . $revision->getFilename() );
if ( !$this->dryRun ) {