mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +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
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is useful for generating various time objects, relative to the
|
* This class is useful for generating various time objects, relative to the
|
||||||
* user and their timezone.
|
* user and their timezone.
|
||||||
|
|
|
@ -13,7 +13,7 @@ final class DivinerAtomCache extends DivinerDiskCache {
|
||||||
private $writeAtoms = array();
|
private $writeAtoms = array();
|
||||||
|
|
||||||
public function __construct($cache_directory) {
|
public function __construct($cache_directory) {
|
||||||
return parent::__construct($cache_directory, 'diviner-atom-cache');
|
parent::__construct($cache_directory, 'diviner-atom-cache');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function delete() {
|
public function delete() {
|
||||||
|
|
|
@ -6,7 +6,7 @@ final class DivinerPublishCache extends DivinerDiskCache {
|
||||||
private $index;
|
private $index;
|
||||||
|
|
||||||
public function __construct($cache_directory) {
|
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() {
|
private function getWritableEngine() {
|
||||||
// NOTE: We can't just load writable engines or we'll loop forever.
|
// NOTE: We can't just load writable engines or we'll loop forever.
|
||||||
$engines = PhabricatorFileStorageEngine::loadAllEngines();
|
$engines = parent::loadAllEngines();
|
||||||
|
|
||||||
foreach ($engines as $engine) {
|
foreach ($engines as $engine) {
|
||||||
if ($engine->isChunkEngine()) {
|
if ($engine->isChunkEngine()) {
|
||||||
|
|
|
@ -219,7 +219,7 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController {
|
||||||
|
|
||||||
$revisions = $revision_query->execute();
|
$revisions = $revision_query->execute();
|
||||||
|
|
||||||
list($blocking, $active,) = DifferentialRevisionQuery::splitResponsible(
|
list($blocking, $active) = DifferentialRevisionQuery::splitResponsible(
|
||||||
$revisions,
|
$revisions,
|
||||||
array($user_phid));
|
array($user_phid));
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,6 @@ final class PhabricatorOAuthResponse extends AphrontResponse {
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->setHTTPResponseCode(200); // assume the best
|
$this->setHTTPResponseCode(200); // assume the best
|
||||||
return $this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getHeaders() {
|
public function getHeaders() {
|
||||||
|
|
|
@ -64,8 +64,8 @@ final class PhabricatorOAuthServer extends Phobject {
|
||||||
*/
|
*/
|
||||||
public function userHasAuthorizedClient(array $scope) {
|
public function userHasAuthorizedClient(array $scope) {
|
||||||
|
|
||||||
$authorization = id(new PhabricatorOAuthClientAuthorization())->
|
$authorization = id(new PhabricatorOAuthClientAuthorization())
|
||||||
loadOneWhere(
|
->loadOneWhere(
|
||||||
'userPHID = %s AND clientPHID = %s',
|
'userPHID = %s AND clientPHID = %s',
|
||||||
$this->getUser()->getPHID(),
|
$this->getUser()->getPHID(),
|
||||||
$this->getClient()->getPHID());
|
$this->getClient()->getPHID());
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
abstract class PhameController extends PhabricatorController {
|
abstract class PhameController extends PhabricatorController {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ final class ReleephRequestTransaction
|
||||||
|
|
||||||
$markup = $name;
|
$markup = $name;
|
||||||
if ($this->getRenderingTarget() ===
|
if ($this->getRenderingTarget() ===
|
||||||
PhabricatorApplicationTransaction::TARGET_HTML) {
|
parent::TARGET_HTML) {
|
||||||
|
|
||||||
$markup = hsprintf('<em>%s</em>', $name);
|
$markup = hsprintf('<em>%s</em>', $name);
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ final class PhabricatorJavelinLinter extends ArcanistLinter {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCacheGranularity() {
|
public function getCacheGranularity() {
|
||||||
return ArcanistLinter::GRANULARITY_REPOSITORY;
|
return parent::GRANULARITY_REPOSITORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCacheVersion() {
|
public function getCacheVersion() {
|
||||||
|
|
|
@ -12,7 +12,7 @@ final class AphrontGlyphBarView extends AphrontBarView {
|
||||||
private $bgGlyph;
|
private $bgGlyph;
|
||||||
|
|
||||||
protected function getDefaultColor() {
|
protected function getDefaultColor() {
|
||||||
return AphrontBarView::COLOR_AUTO_GOODNESS;
|
return parent::COLOR_AUTO_GOODNESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setValue($value) {
|
public function setValue($value) {
|
||||||
|
|
|
@ -9,7 +9,7 @@ final class AphrontProgressBarView extends AphrontBarView {
|
||||||
private $alt = '';
|
private $alt = '';
|
||||||
|
|
||||||
protected function getDefaultColor() {
|
protected function getDefaultColor() {
|
||||||
return AphrontBarView::COLOR_AUTO_BADNESS;
|
return parent::COLOR_AUTO_BADNESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setValue($value) {
|
public function setValue($value) {
|
||||||
|
|
Loading…
Reference in a new issue