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:
parent
c5ce156e71
commit
9fbb0cc40a
7 changed files with 9 additions and 5 deletions
|
@ -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) {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
|
||||
|
||||
phutil_require_module('phabricator', 'infrastructure/env');
|
||||
phutil_require_module('phabricator', 'storage/connection/mysql');
|
||||
phutil_require_module('phabricator', 'storage/lisk/dao');
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class PhabricatorUser extends PhabricatorUserDAO {
|
|||
protected $profileImagePHID;
|
||||
|
||||
private $sessionKey;
|
||||
|
||||
|
||||
public function getProfileImagePHID() {
|
||||
return nonempty(
|
||||
$this->profileImagePHID,
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
|
||||
|
||||
phutil_require_module('phabricator', 'applications/files/uri');
|
||||
phutil_require_module('phabricator', 'applications/phid/handle');
|
||||
|
||||
phutil_require_module('phutil', 'symbols');
|
||||
|
|
Loading…
Reference in a new issue