Fix lint errors found by Nemo
Summary: See also: - https://github.com/tpyo/amazon-s3-php-class/pull/33 - https://github.com/stripe/stripe-php/pull/13 Test Plan: Ran a script analyzing sources by HPHP. Reviewers: btrahan, jungejason, epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D2713
This commit is contained in:
@@ -94,10 +94,6 @@ extends PhameController {
|
||||
} else if ($this->getBloggerName() && $this->getPhameTitle()) {
|
||||
$phame_title = $this->getPhameTitle();
|
||||
$phame_title = PhabricatorSlug::normalize($phame_title);
|
||||
if ($phame_title != $this->getPhameTitle()) {
|
||||
$uri = $post->getViewURI($this->getBloggerName());
|
||||
return id(new AphrontRedirectResponse())->setURI($uri);
|
||||
}
|
||||
$blogger = id(new PhabricatorUser())->loadOneWhere(
|
||||
'username = %s',
|
||||
$this->getBloggerName());
|
||||
@@ -107,7 +103,11 @@ extends PhameController {
|
||||
$post = id(new PhamePost())->loadOneWhere(
|
||||
'bloggerPHID = %s AND phameTitle = %s',
|
||||
$blogger->getPHID(),
|
||||
$this->getPhameTitle());
|
||||
$phame_title);
|
||||
if ($post && $phame_title != $this->getPhameTitle()) {
|
||||
$uri = $post->getViewURI($this->getBloggerName());
|
||||
return id(new AphrontRedirectResponse())->setURI($uri);
|
||||
}
|
||||
}
|
||||
|
||||
if (!$post) {
|
||||
|
||||
Reference in New Issue
Block a user