Copied from I014ea7f048862cc8cc387a68bf0f1cc5acbd9c6e.
Change-Id: Ic3216386af173cfb9cbffda0826879829e52ffbb
* goal.
*/
class ConsoleLogger extends AbstractLogger {
+ /**
+ * @param string $channel
+ */
public function __construct( $channel ) {
$this->channel = $channel;
}
+ /**
+ * @inheritDoc
+ */
public function log( $level, $message, array $context = [] ) {
fwrite( STDERR, "[$level] " .
LegacyLogger::format( $this->channel, $message, $context ) );
* @ingroup SpecialPage
*/
class ImportStreamSource implements ImportSource {
+ /**
+ * @param resource $handle
+ */
function __construct( $handle ) {
$this->mHandle = $handle;
}
* @ingroup SpecialPage
*/
class ImportStringSource implements ImportSource {
+ /**
+ * @param string $string
+ */
function __construct( $string ) {
$this->mString = $string;
$this->mRead = false;
* @return StatusValue[]
*/
protected function doExecuteOpHandlesInternal( array $fileOpHandles ) {
+ /** @var SwiftFileOpHandle[] $fileOpHandles */
+ '@phan-var SwiftFileOpHandle[] $fileOpHandles';
+
/** @var StatusValue[] $statuses */
$statuses = [];
// Split the HTTP requests into stages that can be done concurrently
$httpReqsByStage = []; // map of (stage => index => HTTP request)
foreach ( $fileOpHandles as $index => $fileOpHandle ) {
- /** @var SwiftFileOpHandle $fileOpHandle */
$reqs = $fileOpHandle->httpOp;
// Convert the 'url' parameter to an actual URL using $auth
foreach ( $reqs as $stage => &$req ) {
}
}
+ /**
+ * @param string $name
+ * @return string
+ */
private function filePath( $name ) {
if ( !isset( $this->repo ) ) {
$this->repo = RepoGroup::singleton()->getLocalRepo();
class PPFuzzTest {
public $templates, $mainText, $title, $entryPoint, $output;
+ /**
+ * @param PPFuzzTester $tester
+ */
function __construct( $tester ) {
global $wgMaxSigChars;
$this->parent = $tester;
$this->buildOldImage();
}
+ /**
+ * @param int $count
+ * @param string $table
+ */
function init( $count, $table ) {
$this->processed = 0;
$this->updated = 0;