Skip to content

Commit

Permalink
Update mediawiki/mediawiki-codesniffer to 0.7.1
Browse files Browse the repository at this point in the history
Includes some performance improvements done by @addshore :).

Change-Id: I5a3c423039777945fc41cb91d702531bc773d9ff
  • Loading branch information
paladox committed May 7, 2016
1 parent 6fafbaf commit 501995e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions WebVideoTranscode/WebVideoTranscodeJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ public function run() {
// Check the codec see which encode method to call;
if ( isset( $options[ 'novideo' ] ) ) {
$status = $this->ffmpegEncode( $options );
} elseif( $options['videoCodec'] == 'theora' && $wgFFmpeg2theoraLocation !== false ) {
} elseif ( $options['videoCodec'] == 'theora' && $wgFFmpeg2theoraLocation !== false ) {
$status = $this->ffmpeg2TheoraEncode( $options );
} elseif( $options['videoCodec'] == 'vp8' || $options['videoCodec'] == 'vp9' ||
} elseif ( $options['videoCodec'] == 'vp8' || $options['videoCodec'] == 'vp9' ||
$options['videoCodec'] == 'h264' ||
( $options['videoCodec'] == 'theora' && $wgFFmpeg2theoraLocation === false )
) {
Expand Down Expand Up @@ -360,11 +360,11 @@ function ffmpegEncode( $options, $pass=0 ) {

if ( isset( $options['novideo'] ) ) {
$cmd .= " -vn ";
} elseif( $options['videoCodec'] == 'vp8' || $options['videoCodec'] == 'vp9' ) {
} elseif ( $options['videoCodec'] == 'vp8' || $options['videoCodec'] == 'vp9' ) {
$cmd .= $this->ffmpegAddWebmVideoOptions( $options, $pass );
} elseif( $options['videoCodec'] == 'h264' ) {
} elseif ( $options['videoCodec'] == 'h264' ) {
$cmd .= $this->ffmpegAddH264VideoOptions( $options, $pass );
} elseif( $options['videoCodec'] == 'theora' ) {
} elseif ( $options['videoCodec'] == 'theora' ) {
$cmd .= $this->ffmpegAddTheoraVideoOptions( $options, $pass );
}
// Add size options:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"mediawiki/mediawiki-codesniffer": "0.6.0"
"mediawiki/mediawiki-codesniffer": "0.7.1"
},
"scripts": {
"test": [
Expand Down
2 changes: 1 addition & 1 deletion handlers/TextHandler/TextHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function getTimedTextNamespace() {
} else {
return false;
}
} elseif( $this->file->repo instanceof ForeignDBViaLBRepo ){
} elseif ( $this->file->repo instanceof ForeignDBViaLBRepo ){
global $wgTimedTextForeignNamespaces;
$wikiID = $this->file->getRepo()->getSlaveDB()->getWikiID();
if ( isset( $wgTimedTextForeignNamespaces[ $wikiID ] ) ) {
Expand Down
2 changes: 1 addition & 1 deletion handlers/WebMHandler/WebMHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function getStreamTypes( $file ) {
// id3 gives 'V_VP8' for what we call VP8
if ( isset( $metadata['video'] ) && $metadata['video']['dataformat'] == 'vp8' ) {
$streamTypes[] = 'VP8';
} elseif( isset( $metadata['video'] ) &&
} elseif ( isset( $metadata['video'] ) &&
( $metadata['video']['dataformat'] === 'vp9'
|| $metadata['video']['dataformat'] === 'V_VP9'
) ) {
Expand Down

0 comments on commit 501995e

Please sign in to comment.