1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Full lint pass.

This commit is contained in:
epriestley 2011-02-02 13:59:52 -08:00
parent c5ce156e71
commit 9fbb0cc40a
7 changed files with 9 additions and 5 deletions

View file

@ -131,7 +131,7 @@ class PhabricatorFacebookAuthController extends PhabricatorAuthController {
return id(new AphrontRedirectResponse()) return id(new AphrontRedirectResponse())
->setURI('/'); ->setURI('/');
} }
$known_email = id(new PhabricatorUser()) $known_email = id(new PhabricatorUser())
->loadOneWhere('email = %s', $user_data['email']); ->loadOneWhere('email = %s', $user_data['email']);
if ($known_email) { if ($known_email) {

View file

@ -6,6 +6,7 @@
phutil_require_module('phabricator', 'infrastructure/env');
phutil_require_module('phabricator', 'storage/connection/mysql'); phutil_require_module('phabricator', 'storage/connection/mysql');
phutil_require_module('phabricator', 'storage/lisk/dao'); phutil_require_module('phabricator', 'storage/lisk/dao');

View file

@ -30,7 +30,7 @@ class PhabricatorUser extends PhabricatorUserDAO {
protected $profileImagePHID; protected $profileImagePHID;
private $sessionKey; private $sessionKey;
public function getProfileImagePHID() { public function getProfileImagePHID() {
return nonempty( return nonempty(
$this->profileImagePHID, $this->profileImagePHID,

View file

@ -11,5 +11,7 @@ phutil_require_module('phabricator', 'applications/phid/storage/phid');
phutil_require_module('phabricator', 'infrastructure/env'); phutil_require_module('phabricator', 'infrastructure/env');
phutil_require_module('phabricator', 'storage/queryfx'); phutil_require_module('phabricator', 'storage/queryfx');
phutil_require_module('phutil', 'utils');
phutil_require_source('PhabricatorUser.php'); phutil_require_source('PhabricatorUser.php');

View file

@ -69,12 +69,12 @@ class PhabricatorObjectHandle {
public function getEmail() { public function getEmail() {
return $this->email; return $this->email;
} }
public function setImageURI($uri) { public function setImageURI($uri) {
$this->imageURI = $uri; $this->imageURI = $uri;
return $this; return $this;
} }
public function getImageURI() { public function getImageURI() {
return $this->imageURI; return $this->imageURI;
} }

View file

@ -58,7 +58,7 @@ class PhabricatorObjectHandleData {
$handle->setName($user->getUsername()); $handle->setName($user->getUsername());
$handle->setURI('/p/'.$user->getUsername().'/'); $handle->setURI('/p/'.$user->getUsername().'/');
$handle->setEmail($user->getEmail()); $handle->setEmail($user->getEmail());
$img_phid = $user->getProfileImagePHID(); $img_phid = $user->getProfileImagePHID();
if ($img_phid) { if ($img_phid) {
$handle->setImageURI( $handle->setImageURI(

View file

@ -6,6 +6,7 @@
phutil_require_module('phabricator', 'applications/files/uri');
phutil_require_module('phabricator', 'applications/phid/handle'); phutil_require_module('phabricator', 'applications/phid/handle');
phutil_require_module('phutil', 'symbols'); phutil_require_module('phutil', 'symbols');