GitInfo: Don't try shelling out if it's disabled
[lhc/web/wiklou.git] / includes / CommentStore.php
index 55f6857..6b94d58 100644 (file)
@@ -134,7 +134,7 @@ class CommentStore {
        /**
         * Compat method allowing use of self::newKey until removed.
         * @param string|null $methodKey
-        * @throw InvalidArgumentException
+        * @throws InvalidArgumentException
         * @return string
         */
        private function getKey( $methodKey = null ) {
@@ -261,7 +261,7 @@ class CommentStore {
        private function getCommentInternal( IDatabase $db = null, $key, $row, $fallback = false ) {
                $row = (array)$row;
                if ( array_key_exists( "{$key}_text", $row ) && array_key_exists( "{$key}_data", $row ) ) {
-                       $cid = isset( $row["{$key}_cid"] ) ? $row["{$key}_cid"] : null;
+                       $cid = $row["{$key}_cid"] ?? null;
                        $text = $row["{$key}_text"];
                        $data = $row["{$key}_data"];
                } elseif ( $this->stage === MIGRATION_OLD ) {