Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/196972

Change subject: Add "composer test" command to run phpcs, and fix warnings
......................................................................

Add "composer test" command to run phpcs, and fix warnings

Change-Id: I830e45cd8abd7bd6ed0146cf25fe5d1347a99c89
---
M .gitignore
A composer.json
M includes/views/CollectionsList.php
3 files changed, 17 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather 
refs/changes/72/196972/1

diff --git a/.gitignore b/.gitignore
index 953e79e..7a30915 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,4 +7,5 @@
 composer.phar
 .DS_Store
 composer.lock
+vendor
 tests/report
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..d3201eb
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,12 @@
+{
+       "require-dev": {
+               "jakub-onderka/php-parallel-lint": "0.8.*",
+               "mediawiki/mediawiki-codesniffer": "0.1.0"
+       },
+       "scripts": {
+               "test": [
+                       "parallel-lint . --exclude vendor",
+                       "phpcs 
--standard=vendor/mediawiki/mediawiki-codesniffer/MediaWiki 
--extensions=php,php5,inc --ignore=vendor -p ."
+               ]
+       }
+}
diff --git a/includes/views/CollectionsList.php 
b/includes/views/CollectionsList.php
index 780aedd..94a9978 100644
--- a/includes/views/CollectionsList.php
+++ b/includes/views/CollectionsList.php
@@ -48,7 +48,10 @@
         * @inheritdoc
         */
        public function getHtml() {
-               $html = Html::openElement( 'div', array( 'class' => 
'collections-list content view-border-box' ) );
+               $html = Html::openElement(
+                       'div',
+                       array( 'class' => 'collections-list content 
view-border-box' )
+               );
                // Get items
                $html .= $this->getListItemsHtml( $this->collectionsList );
                $html .= Html::closeElement( 'div' );

-- 
To view, visit https://gerrit.wikimedia.org/r/196972
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I830e45cd8abd7bd6ed0146cf25fe5d1347a99c89
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to