mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Linter fixes
Summary: Minor linter fixes. Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14631
This commit is contained in:
parent
773ecb9a44
commit
9104867c71
12 changed files with 13 additions and 15 deletions
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* This class is useful for generating various time objects, relative to the
|
||||
* user and their timezone.
|
||||
|
|
|
@ -13,7 +13,7 @@ final class DivinerAtomCache extends DivinerDiskCache {
|
|||
private $writeAtoms = array();
|
||||
|
||||
public function __construct($cache_directory) {
|
||||
return parent::__construct($cache_directory, 'diviner-atom-cache');
|
||||
parent::__construct($cache_directory, 'diviner-atom-cache');
|
||||
}
|
||||
|
||||
public function delete() {
|
||||
|
|
|
@ -6,7 +6,7 @@ final class DivinerPublishCache extends DivinerDiskCache {
|
|||
private $index;
|
||||
|
||||
public function __construct($cache_directory) {
|
||||
return parent::__construct($cache_directory, 'diviner-publish-cache');
|
||||
parent::__construct($cache_directory, 'diviner-publish-cache');
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ final class PhabricatorChunkedFileStorageEngine
|
|||
*/
|
||||
private function getWritableEngine() {
|
||||
// NOTE: We can't just load writable engines or we'll loop forever.
|
||||
$engines = PhabricatorFileStorageEngine::loadAllEngines();
|
||||
$engines = parent::loadAllEngines();
|
||||
|
||||
foreach ($engines as $engine) {
|
||||
if ($engine->isChunkEngine()) {
|
||||
|
|
|
@ -219,7 +219,7 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController {
|
|||
|
||||
$revisions = $revision_query->execute();
|
||||
|
||||
list($blocking, $active,) = DifferentialRevisionQuery::splitResponsible(
|
||||
list($blocking, $active) = DifferentialRevisionQuery::splitResponsible(
|
||||
$revisions,
|
||||
array($user_phid));
|
||||
|
||||
|
|
|
@ -65,8 +65,7 @@ final class PhabricatorOAuthResponse extends AphrontResponse {
|
|||
}
|
||||
|
||||
public function __construct() {
|
||||
$this->setHTTPResponseCode(200); // assume the best
|
||||
return $this;
|
||||
$this->setHTTPResponseCode(200); // assume the best
|
||||
}
|
||||
|
||||
public function getHeaders() {
|
||||
|
|
|
@ -64,8 +64,8 @@ final class PhabricatorOAuthServer extends Phobject {
|
|||
*/
|
||||
public function userHasAuthorizedClient(array $scope) {
|
||||
|
||||
$authorization = id(new PhabricatorOAuthClientAuthorization())->
|
||||
loadOneWhere(
|
||||
$authorization = id(new PhabricatorOAuthClientAuthorization())
|
||||
->loadOneWhere(
|
||||
'userPHID = %s AND clientPHID = %s',
|
||||
$this->getUser()->getPHID(),
|
||||
$this->getClient()->getPHID());
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
<?php
|
||||
|
||||
abstract class PhameController extends PhabricatorController {
|
||||
|
||||
}
|
||||
abstract class PhameController extends PhabricatorController {}
|
||||
|
|
|
@ -77,7 +77,7 @@ final class ReleephRequestTransaction
|
|||
|
||||
$markup = $name;
|
||||
if ($this->getRenderingTarget() ===
|
||||
PhabricatorApplicationTransaction::TARGET_HTML) {
|
||||
parent::TARGET_HTML) {
|
||||
|
||||
$markup = hsprintf('<em>%s</em>', $name);
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ final class PhabricatorJavelinLinter extends ArcanistLinter {
|
|||
}
|
||||
|
||||
public function getCacheGranularity() {
|
||||
return ArcanistLinter::GRANULARITY_REPOSITORY;
|
||||
return parent::GRANULARITY_REPOSITORY;
|
||||
}
|
||||
|
||||
public function getCacheVersion() {
|
||||
|
|
|
@ -12,7 +12,7 @@ final class AphrontGlyphBarView extends AphrontBarView {
|
|||
private $bgGlyph;
|
||||
|
||||
protected function getDefaultColor() {
|
||||
return AphrontBarView::COLOR_AUTO_GOODNESS;
|
||||
return parent::COLOR_AUTO_GOODNESS;
|
||||
}
|
||||
|
||||
public function setValue($value) {
|
||||
|
|
|
@ -9,7 +9,7 @@ final class AphrontProgressBarView extends AphrontBarView {
|
|||
private $alt = '';
|
||||
|
||||
protected function getDefaultColor() {
|
||||
return AphrontBarView::COLOR_AUTO_BADNESS;
|
||||
return parent::COLOR_AUTO_BADNESS;
|
||||
}
|
||||
|
||||
public function setValue($value) {
|
||||
|
|
Loading…
Reference in a new issue