* Get or set the prevent-clickjacking flag
*
* @since 1.24
- * @param boolean|null $flag New flag value, or null to leave it unchanged
- * @return boolean Old flag value
+ * @param bool|null $flag New flag value, or null to leave it unchanged
+ * @return bool Old flag value
*/
public function preventClickjacking( $flag = null ) {
return wfSetVar( $this->mPreventClickjacking, $flag );
* if a null hash is given.
*
* @param string|null $hash Existing hash or null for an invalid password
- * @return Password object
- * @throws PasswordError if hash is invalid or type is not recognized
+ * @return Password
+ * @throws PasswordError If hash is invalid or type is not recognized
*/
public function newFromCiphertext( $hash ) {
if ( $hash === null || $hash === false || $hash === '' ) {
* Make a new default password of the given type.
*
* @param string $type Existing type
- * @return Password object
- * @throws PasswordError if hash is invalid or type is not recognized
+ * @return Password
+ * @throws PasswordError If hash is invalid or type is not recognized
*/
public function newFromType( $type ) {
if ( !isset( $this->types[$type] ) ) {
*
* @param string $password Plaintext password
* @param Password|null $existing Optional existing hash to get options from
- * @return Password object
+ * @return Password
*/
public function newFromPlaintext( $password, Password $existing = null ) {
if ( $existing === null ) {
* Return whether the definition of a module corresponds to a simple ResourceLoaderFileModule.
*
* @param string $name Module name
- * @return boolean
+ * @return bool
*/
protected function isFileModule( $name ) {
if ( !isset( $this->moduleInfos[$name] ) ) {
* to $IP
* @param string $remoteBasePath Path to use if not provided in module definition. Defaults
* to $wgScriptPath
- * @return array array( localBasePath, remoteBasePath )
+ * @return array Array( localBasePath, remoteBasePath )
*/
public static function extractBasePaths(
$options = array(),