1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +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:
Joshua Spence 2015-12-03 07:44:23 +11:00
parent 773ecb9a44
commit 9104867c71
12 changed files with 13 additions and 15 deletions

View file

@ -1,4 +1,5 @@
<?php
/**
* This class is useful for generating various time objects, relative to the
* user and their timezone.

View file

@ -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() {

View file

@ -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');
}

View file

@ -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()) {

View file

@ -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));

View file

@ -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() {

View file

@ -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());

View file

@ -1,5 +1,3 @@
<?php
abstract class PhameController extends PhabricatorController {
}
abstract class PhameController extends PhabricatorController {}

View file

@ -77,7 +77,7 @@ final class ReleephRequestTransaction
$markup = $name;
if ($this->getRenderingTarget() ===
PhabricatorApplicationTransaction::TARGET_HTML) {
parent::TARGET_HTML) {
$markup = hsprintf('<em>%s</em>', $name);
}

View file

@ -85,7 +85,7 @@ final class PhabricatorJavelinLinter extends ArcanistLinter {
}
public function getCacheGranularity() {
return ArcanistLinter::GRANULARITY_REPOSITORY;
return parent::GRANULARITY_REPOSITORY;
}
public function getCacheVersion() {

View file

@ -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) {

View file

@ -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) {