Page MenuHomeDevCentral

D1562.id4038.diff
No OneTemporary

D1562.id4038.diff

Index: .arclint
===================================================================
--- /dev/null
+++ .arclint
@@ -0,0 +1,47 @@
+{
+ "exclude": [
+ "(^vendor/)"
+ ],
+ "linters": {
+ "chmod": {
+ "type": "chmod"
+ },
+ "filename": {
+ "type": "filename"
+ },
+ "json": {
+ "type": "json",
+ "include": [
+ "(^\\.arcconfig$)",
+ "(^\\.arclint$)",
+ "(\\.json$)"
+ ]
+ },
+ "merge-conflict": {
+ "type": "merge-conflict"
+ },
+ "php": {
+ "type": "php",
+ "include": [
+ "(^Utilities/.*\\.php$)",
+ "(^Notifications/.*\\.php$)"
+ ]
+ },
+ "phpcs": {
+ "type": "phpcs",
+ "bin": "vendor/bin/phpcs",
+ "phpcs.standard": "phpcs.xml",
+ "include": [
+ "(^Utilities/.*\\.php$)",
+ "(^Notifications/.*\\.php$)"
+ ]
+ },
+ "spelling": {
+ "type": "spelling"
+ },
+ "xml": {
+ "type": "xml",
+ "include": "(\\.xml$)"
+ }
+ }
+}
Index: .gitignore
===================================================================
--- /dev/null
+++ .gitignore
@@ -0,0 +1,3 @@
+# Compose
+/vendor/
+composer.lock
Index: .phan/config.php
===================================================================
--- /dev/null
+++ .phan/config.php
@@ -0,0 +1,285 @@
+<?php
+
+use Phan\Issue;
+
+/**
+ * This configuration file was automatically generated by 'phan --init --init-level=3'
+ *
+ * This configuration will be read and overlayed on top of the
+ * default configuration. Command line arguments will be applied
+ * after this file is read.
+ *
+ * @see src/Phan/Config.php
+ * See Config for all configurable options.
+ *
+ * A Note About Paths
+ * ==================
+ *
+ * Files referenced from this file should be defined as
+ *
+ * ```
+ * Config::projectPath('relative_path/to/file')
+ * ```
+ *
+ * where the relative path is relative to the root of the
+ * project which is defined as either the working directory
+ * of the phan executable or a path passed in via the CLI
+ * '-d' flag.
+ */
+return [
+
+ 'target_php_version' => '7.2',
+
+ // If enabled, missing properties will be created when
+ // they are first seen. If false, we'll report an
+ // error message if there is an attempt to write
+ // to a class property that wasn't explicitly
+ // defined.
+ 'allow_missing_properties' => false,
+
+ // If enabled, null can be cast as any type and any
+ // type can be cast to null. Setting this to true
+ // will cut down on false positives.
+ 'null_casts_as_any_type' => false,
+
+ // If enabled, allow null to be cast as any array-like type.
+ // This is an incremental step in migrating away from null_casts_as_any_type.
+ // If null_casts_as_any_type is true, this has no effect.
+ 'null_casts_as_array' => true,
+
+ // If enabled, allow any array-like type to be cast to null.
+ // This is an incremental step in migrating away from null_casts_as_any_type.
+ // If null_casts_as_any_type is true, this has no effect.
+ 'array_casts_as_null' => true,
+
+ // If enabled, scalars (int, float, bool, string, null)
+ // are treated as if they can cast to each other.
+ // This does not affect checks of array keys. See scalar_array_key_cast.
+ 'scalar_implicit_cast' => false,
+
+ // If enabled, any scalar array keys (int, string)
+ // are treated as if they can cast to each other.
+ // E.g. array<int,stdClass> can cast to array<string,stdClass> and vice versa.
+ // Normally, a scalar type such as int could only cast to/from int and mixed.
+ 'scalar_array_key_cast' => true,
+
+ // If this has entries, scalars (int, float, bool, string, null)
+ // are allowed to perform the casts listed.
+ // E.g. ['int' => ['float', 'string'], 'float' => ['int'], 'string' => ['int'], 'null' => ['string']]
+ // allows casting null to a string, but not vice versa.
+ // (subset of scalar_implicit_cast)
+ 'scalar_implicit_partial' => [],
+
+ // If true, seemingly undeclared variables in the global
+ // scope will be ignored. This is useful for projects
+ // with complicated cross-file globals that you have no
+ // hope of fixing.
+ 'ignore_undeclared_variables_in_global_scope' => true,
+
+ // Set this to false to emit PhanUndeclaredFunction issues for internal functions that Phan has signatures for,
+ // but aren't available in the codebase, or the internal functions used to run phan
+ // (may lead to false positives if an extension isn't loaded)
+ // If this is true(default), then Phan will not warn.
+ 'ignore_undeclared_functions_with_known_signatures' => true,
+
+ // Backwards Compatibility Checking. This is slow
+ // and expensive, but you should consider running
+ // it before upgrading your version of PHP to a
+ // new version that has backward compatibility
+ // breaks.
+ 'backward_compatibility_checks' => false,
+
+ // If true, check to make sure the return type declared
+ // in the doc-block (if any) matches the return type
+ // declared in the method signature.
+ 'check_docblock_signature_return_type_match' => false,
+
+ // (*Requires check_docblock_signature_param_type_match to be true*)
+ // If true, make narrowed types from phpdoc params override
+ // the real types from the signature, when real types exist.
+ // (E.g. allows specifying desired lists of subclasses,
+ // or to indicate a preference for non-nullable types over nullable types)
+ // Affects analysis of the body of the method and the param types passed in by callers.
+ 'prefer_narrowed_phpdoc_param_type' => true,
+
+ // (*Requires check_docblock_signature_return_type_match to be true*)
+ // If true, make narrowed types from phpdoc returns override
+ // the real types from the signature, when real types exist.
+ // (E.g. allows specifying desired lists of subclasses,
+ // or to indicate a preference for non-nullable types over nullable types)
+ // Affects analysis of return statements in the body of the method and the return types passed in by callers.
+ 'prefer_narrowed_phpdoc_return_type' => true,
+
+ // If enabled, check all methods that override a
+ // parent method to make sure its signature is
+ // compatible with the parent's. This check
+ // can add quite a bit of time to the analysis.
+ // This will also check if final methods are overridden, etc.
+ 'analyze_signature_compatibility' => true,
+
+ // This setting maps case insensitive strings to union types.
+ // This is useful if a project uses phpdoc that differs from the phpdoc2 standard.
+ // If the corresponding value is the empty string, Phan will ignore that union type (E.g. can ignore 'the' in `@return the value`)
+ // If the corresponding value is not empty, Phan will act as though it saw the corresponding unionTypes(s) when the keys show up in a UnionType of @param, @return, @var, @property, etc.
+ //
+ // This matches the **entire string**, not parts of the string.
+ // (E.g. `@return the|null` will still look for a class with the name `the`, but `@return the` will be ignored with the below setting)
+ //
+ // (These are not aliases, this setting is ignored outside of doc comments).
+ // (Phan does not check if classes with these names exist)
+ //
+ // Example setting: ['unknown' => '', 'number' => 'int|float', 'char' => 'string', 'long' => 'int', 'the' => '']
+ 'phpdoc_type_mapping' => [],
+
+ // Set to true in order to attempt to detect dead
+ // (unreferenced) code. Keep in mind that the
+ // results will only be a guess given that classes,
+ // properties, constants and methods can be referenced
+ // as variables (like `$class->$property` or
+ // `$class->$method()`) in ways that we're unable
+ // to make sense of.
+ 'dead_code_detection' => false,
+
+ // If true, this run a quick version of checks that takes less
+ // time at the cost of not running as thorough
+ // an analysis. You should consider setting this
+ // to true only when you wish you had more **undiagnosed** issues
+ // to fix in your code base.
+ //
+ // In quick-mode the scanner doesn't rescan a function
+ // or a method's code block every time a call is seen.
+ // This means that the problem here won't be detected:
+ //
+ // ```php
+ // <?php
+ // function test($arg):int {
+ // return $arg;
+ // }
+ // test("abc");
+ // ```
+ //
+ // This would normally generate:
+ //
+ // ```sh
+ // test.php:3 TypeError return string but `test()` is declared to return int
+ // ```
+ //
+ // The initial scan of the function's code block has no
+ // type information for `$arg`. It isn't until we see
+ // the call and rescan test()'s code block that we can
+ // detect that it is actually returning the passed in
+ // `string` instead of an `int` as declared.
+ 'quick_mode' => false,
+
+ // If true, then before analysis, try to simplify AST into a form
+ // which improves Phan's type inference in edge cases.
+ //
+ // This may conflict with 'dead_code_detection'.
+ // When this is true, this slows down analysis slightly.
+ //
+ // E.g. rewrites `if ($a = value() && $a > 0) {...}`
+ // into $a = value(); if ($a) { if ($a > 0) {...}}`
+ 'simplify_ast' => true,
+
+ // Enable or disable support for generic templated
+ // class types.
+ 'generic_types_enabled' => true,
+
+ // Override to hardcode existence and types of (non-builtin) globals in the global scope.
+ // Class names should be prefixed with '\\'.
+ // (E.g. ['_FOO' => '\\FooClass', 'page' => '\\PageClass', 'userId' => 'int'])
+ 'globals_type_map' => [],
+
+ // The minimum severity level to report on. This can be
+ // set to Issue::SEVERITY_LOW, Issue::SEVERITY_NORMAL or
+ // Issue::SEVERITY_CRITICAL. Setting it to only
+ // critical issues is a good place to start on a big
+ // sloppy mature code base.
+ 'minimum_severity' => Issue::SEVERITY_LOW,
+
+ // Add any issue types (such as 'PhanUndeclaredMethod')
+ // to this black-list to inhibit them from being reported.
+ 'suppress_issue_types' => [],
+
+ // A regular expression to match files to be excluded
+ // from parsing and analysis and will not be read at all.
+ //
+ // This is useful for excluding groups of test or example
+ // directories/files, unanalyzable files, or files that
+ // can't be removed for whatever reason.
+ // (e.g. '@Test\.php$@', or '@vendor/.*/(tests|Tests)/@')
+ 'exclude_file_regex' => '@^vendor/.*/(tests?|Tests?)/@',
+
+ // A file list that defines files that will be excluded
+ // from parsing and analysis and will not be read at all.
+ //
+ // This is useful for excluding hopelessly unanalyzable
+ // files that can't be removed for whatever reason.
+ 'exclude_file_list' => [],
+
+ // A directory list that defines files that will be excluded
+ // from static analysis, but whose class and method
+ // information should be included.
+ //
+ // Generally, you'll want to include the directories for
+ // third-party code (such as "vendor/") in this list.
+ //
+ // n.b.: If you'd like to parse but not analyze 3rd
+ // party code, directories containing that code
+ // should be added to the `directory_list` as
+ // to `excluce_analysis_directory_list`.
+ 'exclude_analysis_directory_list' => [
+ 'vendor/',
+ ],
+
+ // The number of processes to fork off during the analysis
+ // phase.
+ 'processes' => 1,
+
+ // List of case-insensitive file extensions supported by Phan.
+ // (e.g. php, html, htm)
+ 'analyzed_file_extensions' => [
+ 'php',
+ ],
+
+ // You can put paths to stubs of internal extensions in this config option.
+ // If the corresponding extension is **not** loaded, then phan will use the stubs instead.
+ // Phan will continue using its detailed type annotations,
+ // but load the constants, classes, functions, and classes (and their Reflection types)
+ // from these stub files (doubling as valid php files).
+ // Use a different extension from php to avoid accidentally loading these.
+ // The 'tools/make_stubs' script can be used to generate your own stubs (compatible with php 7.0+ right now)
+ 'autoload_internal_extension_signatures' => [
+ ],
+
+ // A list of plugin files to execute
+ // Plugins which are bundled with Phan can be added here by providing their name (e.g. 'AlwaysReturnPlugin')
+ // Alternately, you can pass in the full path to a PHP file with the plugin's implementation (e.g. 'vendor/phan/phan/.phan/plugins/AlwaysReturnPlugin.php')
+ 'plugins' => [
+ 'AlwaysReturnPlugin',
+ 'PregRegexCheckerPlugin',
+ 'UnreachableCodePlugin',
+ ],
+
+ // A list of directories that should be parsed for class and
+ // method information. After excluding the directories
+ // defined in exclude_analysis_directory_list, the remaining
+ // files will be statically analyzed for errors.
+ //
+ // Thus, both first-party and third-party code being used by
+ // your application should be included in this list.
+ 'directory_list' => [
+ // Helper libs
+ 'Notifications',
+ // Maintennace scripts
+ 'Utilities',
+ // Dependencies
+ 'vendor/phan/phan/src/Phan',
+ 'vendor/phpunit/phpunit/src',
+ ],
+
+ // A list of individual files to include in analysis
+ // with a path relative to the root directory of the
+ // project
+ 'file_list' => [],
+];
Index: Content/MainPage/en.txt
===================================================================
--- /dev/null
+++ Content/MainPage/en.txt
@@ -0,0 +1,12 @@
+This is the homepage of the $this->serverName wiki.
+
+This is a MediaWiki installation running on the Nasqueron MediaWiki SaaS.
+
+Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.
+
+== Getting started ==
+* You can read the [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]
+on the MediaWiki site. Please note any configuration change is to do against our SaaS configuration repository.
+* If you need any assistance, you can <a href="https://devcentral.nasqueron.org/maniphest/task/edit/form/1/?project=MediaWiki_SaaS">fill a task on DevCentral</a>.
+* Edit this page to put the homepage, generally pointers to the main sections of the wiki.
+* Don't edit the wiki if you wish to import a full dump from another wiki installation before the import is done, to avoid to overwrite your changes.
Index: Content/MainPage/fr.txt
===================================================================
--- /dev/null
+++ Content/MainPage/fr.txt
@@ -0,0 +1,14 @@
+'''Bienvenue sur la page d'accueil de ce wiki.'''
+
+Cette page constitue l'accueil du wiki $this->serverName.
+
+Il s'agit d'une installation de MediaWiki propulsée par le SaaS MediaWiki de Nasqueron.
+
+Vous pouvez consulter [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] pour découvrir comment utiliser ce logiciel.
+
+== Démarrer avec MediaWiki ==
+* Lisez la [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ] sur le site de MediaWiki.
+* Si vous souhaitez modifier la configuration, vous pouvez créer un commit sur le dépôt de configuration du SaaS.
+* Si vous avez besoin d'aide, <a href="https://devcentral.nasqueron.org/maniphest/task/edit/form/1/?project=MediaWiki_SaaS">préparez une tâche sur DevCentral</a> avec ce dont vous avez besoin.
+* Modifiez cette page pour la transformer en une page d'accueil, généralement des liens vers les sections du wiki.
+* N'éditez pas immédiatement ce wiki si vous désirez importer un dump en provenance d'une autre installation, pour éviter d'écraser vos changements.
Index: Notifications/Notification.php
===================================================================
--- /dev/null
+++ Notifications/Notification.php
@@ -0,0 +1,132 @@
+<?php
+
+namespace Nasqueron\SAAS\MediaWiki\Maintenance\Notifications;
+
+use MediaWiki\Http\HttpRequestFactory;
+use MediaWiki\Logger\LoggerFactory;
+
+class Notification {
+
+ /**
+ * @var HttpRequestFactory
+ */
+ private $httpRequestFactory;
+
+ public function __construct(
+ HttpRequestFactory $httpRequestFactory,
+ $options = []
+ ) {
+ $this->httpRequestFactory = $httpRequestFactory;
+ $this->setProperties( $options );
+ }
+
+ ///
+ /// Notifications properties
+ ///
+
+ /**
+ * The notification's source service (e.g. GitHub, Phabricator, Jenkins)
+ *
+ * @var string
+ */
+ public $service;
+
+ /**
+ * The notification's target project (e.g. Wikimedia, Nasqueron, Wolfplex)
+ *
+ * @var string
+ */
+ public $project;
+
+ /**
+ * The notification's target group (e.g. Tasacora, Operations)
+ *
+ * @var string
+ */
+ public $group;
+
+ /**
+ * The notification's source payload, data or message
+ *
+ * @var mixed
+ */
+ public $rawContent;
+
+ /**
+ * The notification's type (e.g. "commits", "task")
+ *
+ * @var string
+ */
+ public $type;
+
+ /**
+ * The notification's text
+ *
+ * @var string
+ */
+ public $text;
+
+ /**
+ * The notification's URL, to be used as the main link for widgets
+ *
+ * @var string
+ */
+ public $link;
+
+ ///
+ /// Properties filler helper methods
+ ///
+
+ private function setProperties( array $properties ) : void {
+ foreach ( $properties as $key->value ) {
+ $this->setProperty( $key, $value );
+ }
+ }
+
+ private function setProperty( string $key, string $value ) : void {
+ if ( property_exists( $this, $key ) ) {
+ $this->$key = $value;
+ } else {
+ $this->handleNonExistingProperty( $key, $value, __METHOD__ );
+ }
+ }
+
+ private function handleNonExistingProperty(
+ string $key,
+ string $value,
+ string $method
+ ) : void {
+ static $logger = null;
+ if ( $logger === null ) {
+ $logger = LoggerFactory::getInstance( 'NasqueronMaintenance' );
+ }
+
+ $logger->warning(
+ "Property {property} is unknown for notification",
+ [
+ 'method' => __METHOD__,
+ 'property' => $key,
+ ]
+ );
+ }
+
+ ///
+ /// Fire notification helper methods
+ ///
+
+ public function send() : void {
+ $request = $this->httpRequestFactory->create(
+ $this->getGateUrl(),
+ [
+ 'method' => "POST",
+ 'postData' => json_encode( $this ),
+ ]
+ );
+ }
+
+ private function getGateUrl() : string {
+ return "https://notifications.nasqueron.org/gate/Notification/"
+ . $this->project;
+ }
+
+}
Index: README.md
===================================================================
--- /dev/null
+++ README.md
@@ -0,0 +1,9 @@
+# NasqueronMaintenance
+
+This **MediaWiki extension** is a repository to host a collection
+of scripts useful on the Nasqueron MediaWiki SaaS. It contains scripts
+specific to our installation and architecture.
+
+https://agora.nasqueron.org/MediaWiki_SaaS/NasqueronMaintenance
+
+The idea is taken from https://www.mediawiki.org/wiki/Extension:WikimediaMaintenance.
Index: Utilities/addWiki.php
===================================================================
--- /dev/null
+++ Utilities/addWiki.php
@@ -0,0 +1,182 @@
+<?php
+
+namespace Nasqueron\SAAS\MediaWiki\Maintenance\Utilities;
+
+use Nasqueron\SAAS\MediaWiki\Maintenance\Notifications\Notification;
+
+use Wikimedia\Rdbms\Database;
+use MediaWiki\MediaWikiServices;
+use MediaWiki\Http\HttpRequestFactory;
+
+use ContentHandler;
+use Title;
+use WikiPage;
+
+require_once "$IP/maintenance/Maintenance.php";
+
+class AddWiki extends Maintenance {
+
+ /**
+ * @var Database
+ */
+ private $db;
+
+ /**
+ * @var HttpRequestFactory
+ */
+ private $httpRequestFactory;
+
+ /**
+ * @var string
+ */
+ private $serverName;
+
+ /**
+ * @var string
+ */
+ private $databaseName;
+
+ /**
+ * @var string
+ */
+ private $languageCode;
+
+ ///
+ /// Constructor and maintenance script entry function
+ ///
+
+ public function __construct() {
+ global $wgCanonicalServer, $wgDBname, $wgLanguageCode;
+
+ parent::__construct();
+ $this->mDescription = "Add a new wiki instance to the service.";
+
+ $this->serverName = $wgCanonicalServer;
+ $this->databaseName = $wgDBname;
+ $this->languageCode = $wgLanguageCode;
+ }
+
+ /**
+ * Entry point of the maintenance script
+ */
+ public function execute() : void {
+ $this->initialiseServices();
+
+ $this->createDatabaseAndTables();
+ $this->publishMainPage();
+ $this->sendNotification();
+ }
+
+ ///
+ /// Services
+ ///
+
+ private function initialiseServices() : void {
+ $this->db = $this->getDatabase();
+ $this->httpRequestFactory = MediaWikiServices::GetInstance()
+ ->getHttpRequestFactory();
+ }
+
+ private function getDatabase() : Database {
+ $db = MediaWikiServices::GetInstance()
+ ->getDbLoadBalancer()
+ ->getConnection( DB_MASTER );
+ $db->query( "SET storage_engine=InnoDB" );
+ return $db;
+ }
+
+ ///
+ /// SQL code
+ ///
+
+ /**
+ * @throws \Wikimedia\Rdbms\DBConnectionError
+ */
+ private function createDatabaseAndTables() : void {
+ $this->db->query(
+ "CREATE DATABASE IF NOT EXISTS " . $this->databaseName
+ );
+
+ $this->createCoreTables();
+ $this->createExtensionTables();
+ }
+
+ private function createCoreTables() {
+ $this->db->sourceFile( "$IP/maintenance/tables.sql" );
+ }
+
+ private function createExtensionTables() {
+ // $this->db->sourceFile( "$IP/extensions/Math/db/math.mysql.sql" );
+ }
+
+ ///
+ /// Main page code
+ ///
+
+ private function publishMainPage() : void {
+ $title = $this->getMainPageTitle();
+ WikiPage::factory( $title )->doEditContent(
+ ContentHandler::makeContent(
+ $this->getMainPageText(),
+ $title
+ ),
+ '',
+ EDIT_NEW | EDIT_AUTOSUMMARY
+ );
+ }
+
+ private function getMainPageTitle() : Title {
+ return Title::newFromText(
+ wfMessage( 'mainpage' )->plain()
+ );
+ }
+
+ private function getMainPageText() : string {
+ $path = dirname( __DIR__ ) . "/Content/MainPage";
+ $file = $path . "/" . $this->languageCode . ".txt";
+ if ( !file_exists( $file ) ) {
+ $file = "$path/en.txt";
+ }
+
+ return file_get_contents( $file );
+ }
+
+ ///
+ /// Notification code
+ ///
+
+ private function sendNotification(): void {
+ $this->getNotification()->send();
+ }
+
+ private function getNotification() : Notification {
+ $metadata = $this->getMetadata();
+
+ $notification = new Notification( $this->httpRequestFactory );
+ $notification->service = 'SaaS MediaWiki';
+ $notification->project = 'Nasqueron';
+ $notification->group = 'ops';
+ $notification->rawContent = $metadata;
+ $notification->type = 'create';
+ $notification->text = "A new wiki has been created by $metadata[user]";
+ $notification->link = $this->serverName;
+
+ return $notification;
+ }
+
+ private function getMetadata() : array {
+ return [
+ 'user' => $this->getRuntimeUser(),
+ 'database' => $this->DBname,
+ 'host' => $this->serverName,
+ ];
+ }
+
+ private function getRuntimeUser() : string {
+ return $_ENV['SUDO_USER'] ?? $_ENV['USER'];
+ }
+
+}
+
+$maintClass = AddWiki::class;
+require_once RUN_MAINTENANCE_IF_MAIN;
Index: composer.json
===================================================================
--- /dev/null
+++ composer.json
@@ -0,0 +1,17 @@
+{
+ "name": "nasqueron/mediawiki-nasqueron-maintenance",
+ "type": "project",
+ "require-dev": {
+ "phan/phan": "^0.12.5",
+ "mediawiki/mediawiki-codesniffer": "^17.0",
+ "squizlabs/php_codesniffer": "^3.2"
+ },
+ "license": "GPL-2.0-or-later",
+ "authors": [
+ {
+ "name": "Sébastien Santoro",
+ "email": "dereckson@espace-win.org"
+ }
+ ],
+ "require": {}
+}
Index: extension.json
===================================================================
--- /dev/null
+++ extension.json
@@ -0,0 +1,18 @@
+{
+ "name": "NasqueronMaintenance",
+ "author": "Sébastien Santoro aka Dereckson",
+ "manifest_version": 1,
+ "url": "https://agora.nasqueron.org/MediaWiki_SaaS/NasqueronMaintenance",
+ "license-name": "GPL-2.0-or-later",
+ "type": "other",
+ "descriptionmsg": "nasqueronmaintenance-desc",
+ "MessagesDirs": {
+ "NasqueronMaintenance": [
+ "i18n"
+ ]
+ },
+ "AutoloadClasses": {
+ "Nasqueron\\SAAS\\MediaWiki\\Maintenance\\Notifications\\Notification": "Notifications/Notification.php",
+ "Nasqueron\\SAAS\\MediaWiki\\Maintenance\\Utilities\\AddWiki": "Utilities/addWiki.php"
+ }
+}
Index: i18n/en.json
===================================================================
--- /dev/null
+++ i18n/en.json
@@ -0,0 +1,9 @@
+{
+ "@metadata": {
+ "authors": [
+ "Dereckson"
+ ],
+ "message-documentation": "qqq"
+ },
+ "nasqueronmaintenance-desc": "Provides a collection of maintenance scripts useful on Nasqueron MediaWiki SaaS."
+}
Index: i18n/qqq.json
===================================================================
--- /dev/null
+++ i18n/qqq.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Dereckson"
+ ]
+ },
+ "wikimediamaintenance-desc": "{{desc|name=NasqueronMaintenance|url=https://agora.nasqueron.org/MediaWiki_SaaS/NasqueronMaintenance}}"
+}
Index: phpcs.xml
===================================================================
--- /dev/null
+++ phpcs.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<ruleset name="Nasqueron">
+ <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki/ruleset.xml">
+ <!-- This extension requires PHP 7.1+. -->
+ <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
+ <exclude name="MediaWiki.Commenting.FunctionComment.WrongStyle" />
+ <exclude name="MediaWiki.Usage.ScalarTypeHintUsage.Found" />
+ </rule>
+
+ <file>Utilities</file>
+ <file>Notifications</file>
+</ruleset>

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 22:15 (21 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2251344
Default Alt Text
D1562.id4038.diff (25 KB)

Event Timeline