Legoktm has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/371367 )

Change subject: build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
......................................................................

build: Updating mediawiki/mediawiki-codesniffer to 0.11.0

Change-Id: Ia714caabfeaf98de86028578632b9f76a8dd3f36
---
M PagedTiffHandler.image.php
M composer.json
M tests/PagedTiffHandlerTest.php
3 files changed, 5 insertions(+), 5 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PagedTiffHandler 
refs/changes/67/371367/1

diff --git a/PagedTiffHandler.image.php b/PagedTiffHandler.image.php
index 6022417..937aa25 100644
--- a/PagedTiffHandler.image.php
+++ b/PagedTiffHandler.image.php
@@ -485,7 +485,7 @@
 
        function finishPage() {
                if ( !isset( $this->page['page'] ) ) {
-                       $this->page['page'] = $this->prevPage +1;
+                       $this->page['page'] = $this->prevPage + 1;
                } else {
                        if ( $this->prevPage >= $this->page['page'] ) {
                                $this->metadata['errors'][] = "inconsistent 
page numbering in TIFF directory";
diff --git a/composer.json b/composer.json
index bf202bf..770de83 100644
--- a/composer.json
+++ b/composer.json
@@ -2,7 +2,7 @@
        "require-dev": {
                "jakub-onderka/php-parallel-lint": "0.9.2",
                "jakub-onderka/php-console-highlighter": "0.3.2",
-               "mediawiki/mediawiki-codesniffer": "0.10.1"
+               "mediawiki/mediawiki-codesniffer": "0.11.0"
        },
        "scripts": {
                "fix": "phpcbf",
diff --git a/tests/PagedTiffHandlerTest.php b/tests/PagedTiffHandlerTest.php
index aeead01..b20cf2b 100644
--- a/tests/PagedTiffHandlerTest.php
+++ b/tests/PagedTiffHandlerTest.php
@@ -52,11 +52,11 @@
 
                // ---- Metadata handling
                // getMetadata
-               $metadata =  $this->handler->getMetadata( false, 
$this->multipage_path );
+               $metadata = $this->handler->getMetadata( false, 
$this->multipage_path );
                $this->assertTrue( strpos( $metadata, '"page_count";i:7' ) !== 
false );
                $this->assertTrue( $this->handler->isMetadataValid( 
$this->multipage_image, $metadata ) );
 
-               $metadata =  $this->handler->getMetadata( false, 
$this->mhz_path );
+               $metadata = $this->handler->getMetadata( false, $this->mhz_path 
);
                $this->assertTrue( strpos( $metadata, '"page_count";i:1' ) !== 
false );
                $this->assertTrue( $this->handler->isMetadataValid( 
$this->mhz_image, $metadata ) );
        }
@@ -379,7 +379,7 @@
                $file->expects( $this->once() )
                        ->method( 'getLocalRefPath' )
                        ->will( $this->returnValue( false ) );
-               $result =$this->handler->doTransform(
+               $result = $this->handler->doTransform(
                        $file,
                        $tempFile,
                        'out.tif',

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia714caabfeaf98de86028578632b9f76a8dd3f36
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PagedTiffHandler
Gerrit-Branch: master
Gerrit-Owner: Legoktm <lego...@member.fsf.org>
Gerrit-Reviewer: Legoktm <lego...@member.fsf.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to