Aude has uploaded a new change for review. https://gerrit.wikimedia.org/r/269676
Change subject: Rename variable to use camelCase ...................................................................... Rename variable to use camelCase camelCase is preferred in MediaWiki. (and generally in php) Change-Id: Ia40c9818d0fa1f8c6c0b68f8e9f6183b0fcc32f2 --- M includes/Cache.php 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ORES refs/changes/76/269676/1 diff --git a/includes/Cache.php b/includes/Cache.php index 7765583..adb7d88 100644 --- a/includes/Cache.php +++ b/includes/Cache.php @@ -6,10 +6,10 @@ class Cache { static protected $modelIds; - protected $ClassMap; + protected $classMap; public function __construct() { - $this->ClassMap = array( 'true' => 1, 'false' => 0, + $this->classMap = array( 'true' => 1, 'false' => 0, 'B' => 0, 'C' => 1, 'FA' => 2, 'GA' => 3, 'Start' => 4, 'Stub' => 5 ); } @@ -41,7 +41,7 @@ $modelId = $this->getModelId( $model ); foreach ( $modelOutputs['probability'] as $class => $probability ) { $ores_is_predicted = $prediction === $class; - $class = $this->ClassMap[$class]; + $class = $this->classMap[$class]; if ( $class === 0 ) { continue; } -- To view, visit https://gerrit.wikimedia.org/r/269676 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia40c9818d0fa1f8c6c0b68f8e9f6183b0fcc32f2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ORES Gerrit-Branch: master Gerrit-Owner: Aude <aude.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits