-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phpcs: enable: Generic.Files.LineLength.TooLong
#150
base: master
Are you sure you want to change the base?
Conversation
Check commit and GitHub actions for more details
Codecov Report
@@ Coverage Diff @@
## master #150 +/- ##
===========================================
- Coverage 8.50% 8.47% -0.04%
Complexity 1558 1558
===========================================
Files 22 22
Lines 4326 4343 +17
===========================================
Hits 368 368
- Misses 3958 3975 +17
Continue to review full report at Codecov.
|
if ( Config::getSetting( 'runFromProtectedPagesOnly' ) === true && $title && !$restrictionStore->isProtected( $title, 'edit' ) ) { | ||
// Ideally we would like to allow using a DPL query if the query istelf is coded on a template page which is protected. Then there would be no need for the article to be protected. However, how can one find out from which wiki source an extension has been invoked??? | ||
if ( | ||
Config::getSetting( 'runFromProtectedPagesOnly' ) === true && |
Check warning
Code scanning / Phpmd (reported by Codacy)
Static access leads to hard to test code
@@ -59,7 +59,10 @@ | |||
$updater = $page->newPageUpdater( User::newSystemUser( 'DynamicPageList3 extension' ) ); | |||
$content = $page->getContentHandler()->makeContent( '<noinclude>This page was automatically created. It serves as an anchor page for all \'\'\'[[Special:WhatLinksHere/Template:Extension_DPL|invocations]]\'\'\' of [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:DynamicPageList3 Extension:DynamicPageList3].</noinclude>', $title ); | |||
$updater->setContent( SlotRecord::MAIN, $content ); | |||
$comment = CommentStoreComment::newUnsavedComment( 'Autogenerated DynamicPageList3\'s necessary template for content inclusion.' ); | |||
|
|||
$comment = CommentStoreComment::newUnsavedComment( |
Check warning
Code scanning / Phpmd (reported by Codacy)
Static access leads to hard to test code
No description provided.