if ( !class_exists( $classOrCallable ) ) {
return false;
}
- $obj = new $classOrCallable( $page, $context );
- return $obj;
+ return new $classOrCallable( $page, $context );
}
if ( is_callable( $classOrCallable ) ) {
} else {
$actionName = 'view';
}
- } elseif ( $actionName == 'editredlink' ) {
+ } elseif ( $actionName === 'editredlink' ) {
$actionName = 'edit';
}
*/
protected function setHeaders() {
$out = $this->getOutput();
- $out->setRobotPolicy( "noindex,nofollow" );
+ $out->setRobotPolicy( 'noindex,nofollow' );
$out->setPageTitle( $this->getPageTitle() );
$out->setSubtitle( $this->getDescription() );
$out->setArticleRelated( true );