1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +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())
->setURI('/');
}
$known_email = id(new PhabricatorUser())
->loadOneWhere('email = %s', $user_data['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/lisk/dao');

View file

@ -30,7 +30,7 @@ class PhabricatorUser extends PhabricatorUserDAO {
protected $profileImagePHID;
private $sessionKey;
public function getProfileImagePHID() {
return nonempty(
$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', 'storage/queryfx');
phutil_require_module('phutil', 'utils');
phutil_require_source('PhabricatorUser.php');

View file

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

View file

@ -58,7 +58,7 @@ class PhabricatorObjectHandleData {
$handle->setName($user->getUsername());
$handle->setURI('/p/'.$user->getUsername().'/');
$handle->setEmail($user->getEmail());
$img_phid = $user->getProfileImagePHID();
if ($img_phid) {
$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('phutil', 'symbols');