56 $pieces = explode(
':', $title, 2 );
70 $isNamespacePartValid = $ns ===
null
71 ? $this->contentLanguage->getNsIndex( $pieces[0] ) !== false
74 if ( count( $pieces ) === 2 && $isNamespacePartValid ) {
75 [ $namespaceName, $pageName ] = $pieces;
81 return new ForeignTitle( $ns, $namespaceName, $pageName );