1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Remove @group annotations

Summary: I'm pretty sure that `@group` annotations are useless now... see D9855. Also fixed various other minor issues.

Test Plan: Eye-ball it.

Reviewers: #blessed_reviewers, epriestley, chad

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin, hach-que

Differential Revision: https://secure.phabricator.com/D9859
This commit is contained in:
Joshua Spence 2014-07-10 08:12:48 +10:00
parent 1d4b0647e7
commit 8756d82cf6
431 changed files with 490 additions and 1711 deletions

View file

@ -27,8 +27,6 @@ use Balanced\Card;
* <li>$BALANCED_URL_ROOT If set applies to \Balanced\Settings::$url_root. * <li>$BALANCED_URL_ROOT If set applies to \Balanced\Settings::$url_root.
* <li>$BALANCED_API_KEY If set applies to \Balanced\Settings::$api_key. * <li>$BALANCED_API_KEY If set applies to \Balanced\Settings::$api_key.
* </ul> * </ul>
*
* @group suite
*/ */
class SuiteTest extends \PHPUnit_Framework_TestCase class SuiteTest extends \PHPUnit_Framework_TestCase
{ {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
abstract class AphrontController extends Phobject { abstract class AphrontController extends Phobject {
private $request; private $request;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
final class AphrontURIMapper { final class AphrontURIMapper {
private $map; private $map;
@ -49,4 +46,5 @@ final class AphrontURIMapper {
return array(null, null); return array(null, null);
} }
} }

View file

@ -2,7 +2,6 @@
/** /**
* @task routing URI Routing * @task routing URI Routing
* @group aphront
*/ */
abstract class AphrontApplicationConfiguration { abstract class AphrontApplicationConfiguration {
@ -228,4 +227,5 @@ abstract class AphrontApplicationConfiguration {
return array($controller, $uri_data); return array($controller, $uri_data);
} }
} }

View file

@ -4,7 +4,6 @@
* NOTE: Do not extend this! * NOTE: Do not extend this!
* *
* @concrete-extensible * @concrete-extensible
* @group aphront
*/ */
class AphrontDefaultApplicationConfiguration class AphrontDefaultApplicationConfiguration
extends AphrontApplicationConfiguration { extends AphrontApplicationConfiguration {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group console
*/
final class DarkConsoleController extends PhabricatorController { final class DarkConsoleController extends PhabricatorController {
protected $op; protected $op;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group console
*/
final class DarkConsoleCore { final class DarkConsoleCore {
private $plugins = array(); private $plugins = array();

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group console
*/
final class DarkConsoleDataController extends PhabricatorController { final class DarkConsoleDataController extends PhabricatorController {
private $key; private $key;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group console
*/
final class DarkConsoleErrorLogPlugin extends DarkConsolePlugin { final class DarkConsoleErrorLogPlugin extends DarkConsolePlugin {
public function getName() { public function getName() {
@ -98,4 +95,5 @@ final class DarkConsoleErrorLogPlugin extends DarkConsolePlugin {
phutil_tag('pre', array('class' => 'PhabricatorMonospaced'), $details), phutil_tag('pre', array('class' => 'PhabricatorMonospaced'), $details),
)); ));
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group console
*/
final class DarkConsoleEventPlugin extends DarkConsolePlugin { final class DarkConsoleEventPlugin extends DarkConsolePlugin {
public function getName() { public function getName() {
@ -14,7 +11,6 @@ final class DarkConsoleEventPlugin extends DarkConsolePlugin {
} }
public function generateData() { public function generateData() {
$listeners = PhutilEventEngine::getInstance()->getAllListeners(); $listeners = PhutilEventEngine::getInstance()->getAllListeners();
foreach ($listeners as $key => $listener) { foreach ($listeners as $key => $listener) {
$listeners[$key] = array( $listeners[$key] = array(
@ -95,4 +91,5 @@ final class DarkConsoleEventPlugin extends DarkConsolePlugin {
return phutil_implode_html("\n", $out); return phutil_implode_html("\n", $out);
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group console
*/
abstract class DarkConsolePlugin { abstract class DarkConsolePlugin {
private $data; private $data;
@ -13,9 +10,7 @@ abstract class DarkConsolePlugin {
abstract public function getDescription(); abstract public function getDescription();
abstract public function renderPanel(); abstract public function renderPanel();
public function __construct() { public function __construct() {}
}
public function getColor() { public function getColor() {
return null; return null;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group console
*/
final class DarkConsoleRequestPlugin extends DarkConsolePlugin { final class DarkConsoleRequestPlugin extends DarkConsolePlugin {
public function getName() { public function getName() {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group console
*/
final class DarkConsoleServicesPlugin extends DarkConsolePlugin { final class DarkConsoleServicesPlugin extends DarkConsolePlugin {
protected $observations; protected $observations;
@ -36,7 +33,6 @@ final class DarkConsoleServicesPlugin extends DarkConsolePlugin {
* @phutil-external-symbol class PhabricatorStartup * @phutil-external-symbol class PhabricatorStartup
*/ */
public function generateData() { public function generateData() {
$should_analyze = self::isQueryAnalyzerRequested(); $should_analyze = self::isQueryAnalyzerRequested();
$log = PhutilServiceProfiler::getInstance()->getServiceCallLog(); $log = PhutilServiceProfiler::getInstance()->getServiceCallLog();

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group console
*/
final class DarkConsoleXHProfPlugin extends DarkConsolePlugin { final class DarkConsoleXHProfPlugin extends DarkConsolePlugin {
protected $profileFilePHID; protected $profileFilePHID;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group console
*/
final class DarkConsoleErrorLogPluginAPI { final class DarkConsoleErrorLogPluginAPI {
private static $errors = array(); private static $errors = array();

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group console
*/
final class DarkConsoleEventPluginAPI extends PhabricatorEventListener { final class DarkConsoleEventPluginAPI extends PhabricatorEventListener {
private static $events = array(); private static $events = array();

View file

@ -1,7 +1,6 @@
<?php <?php
/** /**
* @group console
* @phutil-external-symbol function xhprof_enable * @phutil-external-symbol function xhprof_enable
* @phutil-external-symbol function xhprof_disable * @phutil-external-symbol function xhprof_disable
*/ */

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
final class Aphront304Response extends AphrontResponse { final class Aphront304Response extends AphrontResponse {
public function getHTTPResponseCode() { public function getHTTPResponseCode() {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
final class Aphront400Response extends AphrontResponse { final class Aphront400Response extends AphrontResponse {
public function getHTTPResponseCode() { public function getHTTPResponseCode() {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
final class Aphront403Response extends AphrontHTMLResponse { final class Aphront403Response extends AphrontHTMLResponse {
private $forbiddenText; private $forbiddenText;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
final class Aphront404Response extends AphrontHTMLResponse { final class Aphront404Response extends AphrontHTMLResponse {
public function getHTTPResponseCode() { public function getHTTPResponseCode() {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
final class AphrontAjaxResponse extends AphrontResponse { final class AphrontAjaxResponse extends AphrontResponse {
private $content; private $content;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
final class AphrontDialogResponse extends AphrontResponse { final class AphrontDialogResponse extends AphrontResponse {
private $dialog; private $dialog;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
final class AphrontFileResponse extends AphrontResponse { final class AphrontFileResponse extends AphrontResponse {
private $content; private $content;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
abstract class AphrontHTMLResponse extends AphrontResponse { abstract class AphrontHTMLResponse extends AphrontResponse {
public function getHeaders() { public function getHeaders() {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
final class AphrontJSONResponse extends AphrontResponse { final class AphrontJSONResponse extends AphrontResponse {
private $content; private $content;
@ -40,4 +37,5 @@ final class AphrontJSONResponse extends AphrontResponse {
$headers = array_merge(parent::getHeaders(), $headers); $headers = array_merge(parent::getHeaders(), $headers);
return $headers; return $headers;
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
final class AphrontPlainTextResponse extends AphrontResponse { final class AphrontPlainTextResponse extends AphrontResponse {
public function setContent($content) { public function setContent($content) {

View file

@ -7,8 +7,6 @@
* instantiating an @{class:AphrontAjaxResponse} in @{method:buildProxy}, and * instantiating an @{class:AphrontAjaxResponse} in @{method:buildProxy}, and
* then constructing a real @{class:AphrontAjaxResponse} in * then constructing a real @{class:AphrontAjaxResponse} in
* @{method:reduceProxyResponse}. * @{method:reduceProxyResponse}.
*
* @group aphront
*/ */
abstract class AphrontProxyResponse extends AphrontResponse { abstract class AphrontProxyResponse extends AphrontResponse {
@ -70,5 +68,4 @@ abstract class AphrontProxyResponse extends AphrontResponse {
'AphrontProxyResponse must implement reduceProxyResponse().'); 'AphrontProxyResponse must implement reduceProxyResponse().');
} }
} }

View file

@ -2,8 +2,6 @@
/** /**
* TODO: Should be final but isn't because of AphrontReloadResponse. * TODO: Should be final but isn't because of AphrontReloadResponse.
*
* @group aphront
*/ */
class AphrontRedirectResponse extends AphrontResponse { class AphrontRedirectResponse extends AphrontResponse {

View file

@ -5,8 +5,6 @@
* if the action is javascript-driven but redirect if it isn't. This preserves * if the action is javascript-driven but redirect if it isn't. This preserves
* query parameters in the javascript case. A reload response behaves like * query parameters in the javascript case. A reload response behaves like
* a redirect response but causes a page reload when received via workflow. * a redirect response but causes a page reload when received via workflow.
*
* @group aphront
*/ */
final class AphrontReloadResponse extends AphrontRedirectResponse { final class AphrontReloadResponse extends AphrontRedirectResponse {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
abstract class AphrontResponse { abstract class AphrontResponse {
private $request; private $request;
@ -94,7 +91,6 @@ abstract class AphrontResponse {
} }
protected function addJSONShield($json_response) { protected function addJSONShield($json_response) {
// Add a shield to prevent "JSON Hijacking" attacks where an attacker // Add a shield to prevent "JSON Hijacking" attacks where an attacker
// requests a JSON response using a normal <script /> tag and then uses // requests a JSON response using a normal <script /> tag and then uses
// Object.prototype.__defineSetter__() or similar to read response data. // Object.prototype.__defineSetter__() or similar to read response data.

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group aphront
*/
final class AphrontWebpageResponse extends AphrontHTMLResponse { final class AphrontWebpageResponse extends AphrontHTMLResponse {
private $content; private $content;

View file

@ -10,8 +10,6 @@
* *
* @task write Writing Response Components * @task write Writing Response Components
* @task emit Emitting the Response * @task emit Emitting the Response
*
* @group aphront
*/ */
abstract class AphrontHTTPSink { abstract class AphrontHTTPSink {
@ -117,4 +115,5 @@ abstract class AphrontHTTPSink {
abstract protected function emitHTTPStatus($code, $message = ''); abstract protected function emitHTTPStatus($code, $message = '');
abstract protected function emitHeader($name, $value); abstract protected function emitHeader($name, $value);
abstract protected function emitData($data); abstract protected function emitData($data);
} }

View file

@ -2,8 +2,6 @@
/** /**
* Isolated HTTP sink for testing. * Isolated HTTP sink for testing.
*
* @group aphront
*/ */
final class AphrontIsolatedHTTPSink extends AphrontHTTPSink { final class AphrontIsolatedHTTPSink extends AphrontHTTPSink {

View file

@ -2,8 +2,6 @@
/** /**
* Concrete HTTP sink which uses "echo" and "header()" to emit data. * Concrete HTTP sink which uses "echo" and "header()" to emit data.
*
* @group aphront
*/ */
final class AphrontPHPHTTPSink extends AphrontHTTPSink { final class AphrontPHPHTTPSink extends AphrontHTTPSink {

View file

@ -1,8 +1,3 @@
<?php <?php
/** abstract class ConduitAPI_arcanist_Method extends ConduitAPIMethod {}
* @group conduit
*/
abstract class ConduitAPI_arcanist_Method extends ConduitAPIMethod {
}

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_arcanist_projectinfo_Method final class ConduitAPI_arcanist_projectinfo_Method
extends ConduitAPI_arcanist_Method { extends ConduitAPI_arcanist_Method {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
abstract class ConduitAPI_audit_Method extends ConduitAPIMethod { abstract class ConduitAPI_audit_Method extends ConduitAPIMethod {
public function getApplication() { public function getApplication() {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_audit_query_Method extends ConduitAPI_audit_Method { final class ConduitAPI_audit_query_Method extends ConduitAPI_audit_Method {
public function getMethodDescription() { public function getMethodDescription() {
@ -76,5 +73,4 @@ final class ConduitAPI_audit_query_Method extends ConduitAPI_audit_Method {
return $results; return $results;
} }
} }

View file

@ -6,10 +6,8 @@
* @task uri URI Routing * @task uri URI Routing
* @task fact Fact Integration * @task fact Fact Integration
* @task meta Application Management * @task meta Application Management
* @group apps
*/ */
abstract class PhabricatorApplication abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
implements PhabricatorPolicyInterface {
const GROUP_CORE = 'core'; const GROUP_CORE = 'core';
const GROUP_UTILITIES = 'util'; const GROUP_UTILITIES = 'util';

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group calendar
*/
final class CalendarColors extends CalendarConstants { final class CalendarColors extends CalendarConstants {
const COLOR_RED = 'red'; const COLOR_RED = 'red';

View file

@ -1,8 +1,3 @@
<?php <?php
/** abstract class CalendarConstants {}
* @group calendar
*/
abstract class CalendarConstants {
}

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
abstract class ConduitAPI_chatlog_Method extends ConduitAPIMethod { abstract class ConduitAPI_chatlog_Method extends ConduitAPIMethod {
public function getApplication() { public function getApplication() {

View file

@ -1,10 +1,6 @@
<?php <?php
/** final class ConduitAPI_chatlog_query_Method extends ConduitAPI_chatlog_Method {
* @group conduit
*/
final class ConduitAPI_chatlog_query_Method
extends ConduitAPI_chatlog_Method {
public function getMethodStatus() { public function getMethodStatus() {
return self::METHOD_STATUS_UNSTABLE; return self::METHOD_STATUS_UNSTABLE;
@ -30,7 +26,6 @@ final class ConduitAPI_chatlog_query_Method
} }
protected function execute(ConduitAPIRequest $request) { protected function execute(ConduitAPIRequest $request) {
$query = new PhabricatorChatLogQuery(); $query = new PhabricatorChatLogQuery();
$channel_ids = $request->getValue('channelIDs'); $channel_ids = $request->getValue('channelIDs');

View file

@ -1,10 +1,6 @@
<?php <?php
/** final class ConduitAPI_chatlog_record_Method extends ConduitAPI_chatlog_Method {
* @group conduit
*/
final class ConduitAPI_chatlog_record_Method
extends ConduitAPI_chatlog_Method {
public function getMethodStatus() { public function getMethodStatus() {
return self::METHOD_STATUS_UNSTABLE; return self::METHOD_STATUS_UNSTABLE;
@ -25,8 +21,7 @@ final class ConduitAPI_chatlog_record_Method
} }
public function defineErrorTypes() { public function defineErrorTypes() {
return array( return array();
);
} }
protected function execute(ConduitAPIRequest $request) { protected function execute(ConduitAPIRequest $request) {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class PhabricatorConduitAPIController final class PhabricatorConduitAPIController
extends PhabricatorConduitController { extends PhabricatorConduitController {
@ -467,4 +464,5 @@ final class PhabricatorConduitAPIController
return $params; return $params;
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
abstract class PhabricatorConduitController extends PhabricatorController { abstract class PhabricatorConduitController extends PhabricatorController {
protected function buildSideNavView() { protected function buildSideNavView() {
@ -27,5 +24,4 @@ abstract class PhabricatorConduitController extends PhabricatorController {
return $this->buildSideNavView()->getMenu(); return $this->buildSideNavView()->getMenu();
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class PhabricatorConduitLogController final class PhabricatorConduitLogController
extends PhabricatorConduitController { extends PhabricatorConduitController {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class PhabricatorConduitTokenController final class PhabricatorConduitTokenController
extends PhabricatorConduitController { extends PhabricatorConduitController {
@ -72,4 +69,5 @@ final class PhabricatorConduitTokenController
'title' => pht('Certificate Install Token'), 'title' => pht('Certificate Install Token'),
)); ));
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_conduit_connect_Method extends ConduitAPIMethod { final class ConduitAPI_conduit_connect_Method extends ConduitAPIMethod {
public function shouldRequireAuthentication() { public function shouldRequireAuthentication() {
@ -55,7 +52,6 @@ final class ConduitAPI_conduit_connect_Method extends ConduitAPIMethod {
} }
protected function execute(ConduitAPIRequest $request) { protected function execute(ConduitAPIRequest $request) {
$client = $request->getValue('client'); $client = $request->getValue('client');
$client_version = (int)$request->getValue('clientVersion'); $client_version = (int)$request->getValue('clientVersion');
$client_description = (string)$request->getValue('clientDescription'); $client_description = (string)$request->getValue('clientDescription');
@ -109,9 +105,7 @@ final class ConduitAPI_conduit_connect_Method extends ConduitAPIMethod {
$token = $request->getValue('authToken'); $token = $request->getValue('authToken');
$signature = $request->getValue('authSignature'); $signature = $request->getValue('authSignature');
$user = id(new PhabricatorUser())->loadOneWhere( $user = id(new PhabricatorUser())->loadOneWhere('username = %s', $username);
'username = %s',
$username);
if (!$user) { if (!$user) {
throw new ConduitException('ERR-INVALID-USER'); throw new ConduitException('ERR-INVALID-USER');
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_conduit_getcertificate_Method extends ConduitAPIMethod { final class ConduitAPI_conduit_getcertificate_Method extends ConduitAPIMethod {
public function shouldRequireAuthentication() { public function shouldRequireAuthentication() {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_conduit_ping_Method extends ConduitAPIMethod { final class ConduitAPI_conduit_ping_Method extends ConduitAPIMethod {
public function shouldRequireAuthentication() { public function shouldRequireAuthentication() {
@ -28,4 +25,5 @@ final class ConduitAPI_conduit_ping_Method extends ConduitAPIMethod {
protected function execute(ConduitAPIRequest $request) { protected function execute(ConduitAPIRequest $request) {
return php_uname('n'); return php_uname('n');
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_conduit_query_Method extends ConduitAPIMethod { final class ConduitAPI_conduit_query_Method extends ConduitAPIMethod {
public function getMethodDescription() { public function getMethodDescription() {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPIRequest { final class ConduitAPIRequest {
protected $params; protected $params;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPIResponse { final class ConduitAPIResponse {
private $result; private $result;
@ -13,6 +10,7 @@ final class ConduitAPIResponse {
$this->result = $result; $this->result = $result;
return $this; return $this;
} }
public function getResult() { public function getResult() {
return $this->result; return $this->result;
} }
@ -21,6 +19,7 @@ final class ConduitAPIResponse {
$this->errorCode = $error_code; $this->errorCode = $error_code;
return $this; return $this;
} }
public function getErrorCode() { public function getErrorCode() {
return $this->errorCode; return $this->errorCode;
} }
@ -40,4 +39,5 @@ final class ConduitAPIResponse {
'error_info' => $this->getErrorInfo(), 'error_info' => $this->getErrorInfo(),
); );
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitException extends Exception { final class ConduitException extends Exception {
private $errorDescription; private $errorDescription;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class PhabricatorConduitCertificateToken extends PhabricatorConduitDAO { final class PhabricatorConduitCertificateToken extends PhabricatorConduitDAO {
protected $userPHID; protected $userPHID;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class PhabricatorConduitConnectionLog extends PhabricatorConduitDAO { final class PhabricatorConduitConnectionLog extends PhabricatorConduitDAO {
protected $client; protected $client;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
abstract class PhabricatorConduitDAO extends PhabricatorLiskDAO { abstract class PhabricatorConduitDAO extends PhabricatorLiskDAO {
public function getApplicationName() { public function getApplicationName() {

View file

@ -1,9 +1,7 @@
<?php <?php
/** final class PhabricatorConduitMethodCallLog
* @group conduit extends PhabricatorConduitDAO
*/
final class PhabricatorConduitMethodCallLog extends PhabricatorConduitDAO
implements PhabricatorPolicyInterface { implements PhabricatorPolicyInterface {
protected $callerPHID; protected $callerPHID;

View file

@ -1,10 +1,6 @@
<?php <?php
/** abstract class ConduitAPI_conpherence_Method extends ConduitAPIMethod {
* @group conduit
*/
abstract class ConduitAPI_conpherence_Method
extends ConduitAPIMethod {
public function getApplication() { public function getApplication() {
return PhabricatorApplication::getByClass( return PhabricatorApplication::getByClass(

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_conpherence_createthread_Method final class ConduitAPI_conpherence_createthread_Method
extends ConduitAPI_conpherence_Method { extends ConduitAPI_conpherence_Method {
@ -32,7 +29,6 @@ final class ConduitAPI_conpherence_createthread_Method
} }
protected function execute(ConduitAPIRequest $request) { protected function execute(ConduitAPIRequest $request) {
$participant_phids = $request->getValue('participantPHIDs', array()); $participant_phids = $request->getValue('participantPHIDs', array());
$message = $request->getValue('message'); $message = $request->getValue('message');
$title = $request->getValue('title'); $title = $request->getValue('title');
@ -60,6 +56,8 @@ final class ConduitAPI_conpherence_createthread_Method
return array( return array(
'conpherenceID' => $conpherence->getID(), 'conpherenceID' => $conpherence->getID(),
'conpherencePHID' => $conpherence->getPHID(), 'conpherencePHID' => $conpherence->getPHID(),
'conpherenceURI' => $this->getConpherenceURI($conpherence)); 'conpherenceURI' => $this->getConpherenceURI($conpherence),
);
} }
} }

View file

@ -1,12 +1,8 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_conpherence_querythread_Method final class ConduitAPI_conpherence_querythread_Method
extends ConduitAPI_conpherence_Method { extends ConduitAPI_conpherence_Method {
public function getMethodDescription() { public function getMethodDescription() {
return pht( return pht(
'Query for conpherence threads for the logged in user. '. 'Query for conpherence threads for the logged in user. '.
@ -82,4 +78,5 @@ final class ConduitAPI_conpherence_querythread_Method
} }
return $data; return $data;
} }
} }

View file

@ -1,12 +1,8 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_conpherence_querytransaction_Method final class ConduitAPI_conpherence_querytransaction_Method
extends ConduitAPI_conpherence_Method { extends ConduitAPI_conpherence_Method {
public function getMethodDescription() { public function getMethodDescription() {
return pht( return pht(
'Query for transactions for the logged in user within a specific '. 'Query for transactions for the logged in user within a specific '.
@ -92,4 +88,5 @@ final class ConduitAPI_conpherence_querytransaction_Method
} }
return $data; return $data;
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_conpherence_updatethread_Method final class ConduitAPI_conpherence_updatethread_Method
extends ConduitAPI_conpherence_Method { extends ConduitAPI_conpherence_Method {
@ -104,4 +101,5 @@ final class ConduitAPI_conpherence_updatethread_Method
return true; return true;
} }
} }

View file

@ -1,8 +1,3 @@
<?php <?php
/** abstract class ConpherenceConstants {}
* @group conpherence
*/
abstract class ConpherenceConstants {
}

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceTransactionType extends ConpherenceConstants { final class ConpherenceTransactionType extends ConpherenceConstants {
const TYPE_FILES = 'files'; const TYPE_FILES = 'files';

View file

@ -1,9 +1,7 @@
<?php <?php
/**
* @group conpherence
*/
abstract class ConpherenceController extends PhabricatorController { abstract class ConpherenceController extends PhabricatorController {
private $conpherences; private $conpherences;
public function buildApplicationMenu() { public function buildApplicationMenu() {
@ -149,8 +147,8 @@ abstract class ConpherenceController extends PhabricatorController {
return array( return array(
'transactions' => $rendered_transactions, 'transactions' => $rendered_transactions,
'latest_transaction_id' => $latest_transaction_id, 'latest_transaction_id' => $latest_transaction_id,
'oldest_transaction_id' => $oldest_transaction_id 'oldest_transaction_id' => $oldest_transaction_id,
); );
}
} }
}

View file

@ -1,10 +1,6 @@
<?php <?php
/** final class ConpherenceListController extends ConpherenceController {
* @group conpherence
*/
final class ConpherenceListController
extends ConpherenceController {
const SELECTED_MODE = 'selected'; const SELECTED_MODE = 'selected';
const UNSELECTED_MODE = 'unselected'; const UNSELECTED_MODE = 'unselected';
@ -227,7 +223,8 @@ final class ConpherenceListController
return array( return array(
'scroll_up_participant' => $scroll_up_participant, 'scroll_up_participant' => $scroll_up_participant,
'scroll_down_participant' => $scroll_down_participant, 'scroll_down_participant' => $scroll_down_participant,
'participation' => $participation); 'participation' => $participation,
);
} }
private function loadConpherenceThreadData($participation) { private function loadConpherenceThreadData($participation) {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceNewController extends ConpherenceController { final class ConpherenceNewController extends ConpherenceController {
public function processRequest() { public function processRequest() {
@ -99,4 +96,5 @@ final class ConpherenceNewController extends ConpherenceController {
return id(new AphrontDialogResponse())->setDialog($dialog); return id(new AphrontDialogResponse())->setDialog($dialog);
} }
} }

View file

@ -1,13 +1,9 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceNotificationPanelController final class ConpherenceNotificationPanelController
extends ConpherenceController { extends ConpherenceController {
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();
$user = $request->getUser(); $user = $request->getUser();
$conpherences = array(); $conpherences = array();
@ -108,4 +104,5 @@ final class ConpherenceNotificationPanelController
return id(new AphrontAjaxResponse())->setContent($json); return id(new AphrontAjaxResponse())->setContent($json);
} }
} }

View file

@ -1,10 +1,6 @@
<?php <?php
/** final class ConpherenceWidgetController extends ConpherenceController {
* @group conpherence
*/
final class ConpherenceWidgetController extends
ConpherenceController {
private $conpherenceID; private $conpherenceID;
private $conpherence; private $conpherence;
@ -14,6 +10,7 @@ final class ConpherenceWidgetController extends
$this->userPreferences = $pref; $this->userPreferences = $pref;
return $this; return $this;
} }
public function getUserPreferences() { public function getUserPreferences() {
return $this->userPreferences; return $this->userPreferences;
} }
@ -22,6 +19,7 @@ final class ConpherenceWidgetController extends
$this->conpherence = $conpherence; $this->conpherence = $conpherence;
return $this; return $this;
} }
public function getConpherence() { public function getConpherence() {
return $this->conpherence; return $this->conpherence;
} }
@ -30,6 +28,7 @@ final class ConpherenceWidgetController extends
$this->conpherenceID = $conpherence_id; $this->conpherenceID = $conpherence_id;
return $this; return $this;
} }
public function getConpherenceID() { public function getConpherenceID() {
return $this->conpherenceID; return $this->conpherenceID;
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceEditor extends PhabricatorApplicationTransactionEditor { final class ConpherenceEditor extends PhabricatorApplicationTransactionEditor {
const ERROR_EMPTY_PARTICIPANTS = 'error-empty-participants'; const ERROR_EMPTY_PARTICIPANTS = 'error-empty-participants';
@ -421,4 +418,5 @@ final class ConpherenceEditor extends PhabricatorApplicationTransactionEditor {
protected function supportsSearch() { protected function supportsSearch() {
return false; return false;
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class PhabricatorConpherencePHIDTypeThread extends PhabricatorPHIDType { final class PhabricatorConpherencePHIDTypeThread extends PhabricatorPHIDType {
const TYPECONST = 'CONP'; const TYPECONST = 'CONP';

View file

@ -9,8 +9,6 @@
* ->withParticipantPHIDs(array($my_phid)) * ->withParticipantPHIDs(array($my_phid))
* ->withParticipationStatus(ConpherenceParticipationStatus::BEHIND) * ->withParticipationStatus(ConpherenceParticipationStatus::BEHIND)
* ->execute(); * ->execute();
*
* @group conpherence
*/ */
final class ConpherenceParticipantCountQuery final class ConpherenceParticipantCountQuery
extends PhabricatorOffsetPagedQuery { extends PhabricatorOffsetPagedQuery {
@ -65,7 +63,6 @@ final class ConpherenceParticipantCountQuery
} }
private function buildGroupByClause(AphrontDatabaseConnection $conn_r) { private function buildGroupByClause(AphrontDatabaseConnection $conn_r) {
$group_by = qsprintf( $group_by = qsprintf(
$conn_r, $conn_r,
'GROUP BY participantPHID'); 'GROUP BY participantPHID');

View file

@ -30,11 +30,8 @@
* *
* For counts of read, un-read, or all conpherences by participant, see * For counts of read, un-read, or all conpherences by participant, see
* @{class:ConpherenceParticipantCountQuery}. * @{class:ConpherenceParticipantCountQuery}.
*
* @group conpherence
*/ */
final class ConpherenceParticipantQuery final class ConpherenceParticipantQuery extends PhabricatorOffsetPagedQuery {
extends PhabricatorOffsetPagedQuery {
const LIMIT = 100; const LIMIT = 100;
const ORDER_NEWER = 'newer'; const ORDER_NEWER = 'newer';
@ -116,7 +113,6 @@ final class ConpherenceParticipantQuery
} }
private function buildOrderClause(AphrontDatabaseConnection $conn_r) { private function buildOrderClause(AphrontDatabaseConnection $conn_r) {
$order_word = ($this->order == self::ORDER_OLDER) ? 'DESC' : 'ASC'; $order_word = ($this->order == self::ORDER_OLDER) ? 'DESC' : 'ASC';
// if these are different direction we won't get as efficient a query // if these are different direction we won't get as efficient a query
// see http://dev.mysql.com/doc/refman/5.5/en/order-by-optimization.html // see http://dev.mysql.com/doc/refman/5.5/en/order-by-optimization.html

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceThreadQuery final class ConpherenceThreadQuery
extends PhabricatorCursorPagedPolicyAwareQuery { extends PhabricatorCursorPagedPolicyAwareQuery {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceTransactionQuery final class ConpherenceTransactionQuery
extends PhabricatorApplicationTransactionQuery { extends PhabricatorApplicationTransactionQuery {
@ -14,5 +11,4 @@ final class ConpherenceTransactionQuery
return false; return false;
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
abstract class ConpherenceDAO extends PhabricatorLiskDAO { abstract class ConpherenceDAO extends PhabricatorLiskDAO {
public function getApplicationName() { public function getApplicationName() {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceParticipant extends ConpherenceDAO { final class ConpherenceParticipant extends ConpherenceDAO {
protected $participantPHID; protected $participantPHID;

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceThread extends ConpherenceDAO final class ConpherenceThread extends ConpherenceDAO
implements PhabricatorPolicyInterface { implements PhabricatorPolicyInterface {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceTransaction extends PhabricatorApplicationTransaction { final class ConpherenceTransaction extends PhabricatorApplicationTransaction {
public function getApplicationName() { public function getApplicationName() {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceTransactionComment final class ConpherenceTransactionComment
extends PhabricatorApplicationTransactionComment { extends PhabricatorApplicationTransactionComment {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceFileWidgetView extends ConpherenceWidgetView { final class ConpherenceFileWidgetView extends ConpherenceWidgetView {
public function render() { public function render() {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceMenuItemView extends AphrontTagView { final class ConpherenceMenuItemView extends AphrontTagView {
private $title; private $title;
@ -119,4 +116,5 @@ final class ConpherenceMenuItemView extends AphrontTagView {
$unread_count, $unread_count,
); );
} }
} }

View file

@ -1,7 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherencePeopleWidgetView extends ConpherenceWidgetView { final class ConpherencePeopleWidgetView extends ConpherenceWidgetView {
public function render() { public function render() {
@ -54,4 +52,5 @@ final class ConpherencePeopleWidgetView extends ConpherenceWidgetView {
return $body; return $body;
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
final class ConpherenceTransactionView extends AphrontView { final class ConpherenceTransactionView extends AphrontView {
private $conpherenceTransaction; private $conpherenceTransaction;
@ -19,6 +16,7 @@ final class ConpherenceTransactionView extends AphrontView {
$this->handles = $handles; $this->handles = $handles;
return $this; return $this;
} }
public function getHandles() { public function getHandles() {
return $this->handles; return $this->handles;
} }
@ -27,6 +25,7 @@ final class ConpherenceTransactionView extends AphrontView {
$this->conpherenceTransaction = $tx; $this->conpherenceTransaction = $tx;
return $this; return $this;
} }
private function getConpherenceTransaction() { private function getConpherenceTransaction() {
return $this->conpherenceTransaction; return $this->conpherenceTransaction;
} }
@ -99,4 +98,5 @@ final class ConpherenceTransactionView extends AphrontView {
return $transaction_view->render(); return $transaction_view->render();
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conpherence
*/
abstract class ConpherenceWidgetView extends AphrontView { abstract class ConpherenceWidgetView extends AphrontView {
private $conpherence; private $conpherence;
@ -23,4 +20,5 @@ abstract class ConpherenceWidgetView extends AphrontView {
public function getConpherence() { public function getConpherence() {
return $this->conpherence; return $this->conpherence;
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group countdown
*/
abstract class PhabricatorCountdownController extends PhabricatorController { abstract class PhabricatorCountdownController extends PhabricatorController {
public function buildSideNavView($for_app = false) { public function buildSideNavView($for_app = false) {
@ -39,4 +36,5 @@ abstract class PhabricatorCountdownController extends PhabricatorController {
return $crumbs; return $crumbs;
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group countdown
*/
final class PhabricatorCountdownDeleteController final class PhabricatorCountdownDeleteController
extends PhabricatorCountdownController { extends PhabricatorCountdownController {
@ -13,7 +10,6 @@ final class PhabricatorCountdownDeleteController
} }
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();
$user = $request->getUser(); $user = $request->getUser();

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group countdown
*/
final class PhabricatorCountdownEditController final class PhabricatorCountdownEditController
extends PhabricatorCountdownController { extends PhabricatorCountdownController {
@ -127,4 +124,5 @@ final class PhabricatorCountdownEditController
'title' => $page_title, 'title' => $page_title,
)); ));
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group countdown
*/
final class PhabricatorCountdownQuery final class PhabricatorCountdownQuery
extends PhabricatorCursorPagedPolicyAwareQuery { extends PhabricatorCursorPagedPolicyAwareQuery {
@ -45,7 +42,6 @@ final class PhabricatorCountdownQuery
$countdowns = $table->loadAllFromArray($data); $countdowns = $table->loadAllFromArray($data);
return $countdowns; return $countdowns;
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group countdown
*/
final class PhabricatorCountdownRemarkupRule final class PhabricatorCountdownRemarkupRule
extends PhabricatorRemarkupRuleObject { extends PhabricatorRemarkupRuleObject {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group countdown
*/
abstract class PhabricatorCountdownDAO extends PhabricatorLiskDAO { abstract class PhabricatorCountdownDAO extends PhabricatorLiskDAO {
public function getApplicationName() { public function getApplicationName() {

View file

@ -1,10 +1,6 @@
<?php <?php
/** final class DifferentialRemarkupRule extends PhabricatorRemarkupRuleObject {
* @group differential
*/
final class DifferentialRemarkupRule
extends PhabricatorRemarkupRuleObject {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'D'; return 'D';

View file

@ -3,8 +3,6 @@
/** /**
* Denormalized index table which stores relationships between revisions in * Denormalized index table which stores relationships between revisions in
* Differential and paths in Diffusion. * Differential and paths in Diffusion.
*
* @group differential
*/ */
final class DifferentialAffectedPath extends DifferentialDAO { final class DifferentialAffectedPath extends DifferentialDAO {
@ -18,4 +16,5 @@ final class DifferentialAffectedPath extends DifferentialDAO {
self::CONFIG_TIMESTAMPS => false, self::CONFIG_TIMESTAMPS => false,
) + parent::getConfiguration(); ) + parent::getConfiguration();
} }
} }

View file

@ -1,10 +1,6 @@
<?php <?php
/** abstract class ConduitAPI_diffusion_Method extends ConduitAPIMethod {
* @group conduit
*/
abstract class ConduitAPI_diffusion_Method
extends ConduitAPIMethod {
public function getApplication() { public function getApplication() {
return PhabricatorApplication::getByClass( return PhabricatorApplication::getByClass(

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
abstract class ConduitAPI_diffusion_abstractquery_Method abstract class ConduitAPI_diffusion_abstractquery_Method
extends ConduitAPI_diffusion_Method { extends ConduitAPI_diffusion_Method {
@ -47,6 +44,7 @@ abstract class ConduitAPI_diffusion_abstractquery_Method
'ERR-UNSUPPORTED-VCS' => 'ERR-UNSUPPORTED-VCS' =>
pht('VCS is not supported for this method.')); pht('VCS is not supported for this method.'));
} }
/** /**
* Subclasses should override this to specify custom error types. * Subclasses should override this to specify custom error types.
*/ */
@ -61,6 +59,7 @@ abstract class ConduitAPI_diffusion_abstractquery_Method
'branch' => 'optional string', 'branch' => 'optional string',
); );
} }
/** /**
* Subclasses should override this to specify custom param types. * Subclasses should override this to specify custom param types.
*/ */
@ -129,4 +128,5 @@ abstract class ConduitAPI_diffusion_abstractquery_Method
} }
return $result; return $result;
} }
} }

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_diffusion_browsequery_Method final class ConduitAPI_diffusion_browsequery_Method
extends ConduitAPI_diffusion_abstractquery_Method { extends ConduitAPI_diffusion_abstractquery_Method {

View file

@ -1,8 +1,5 @@
<?php <?php
/**
* @group conduit
*/
final class ConduitAPI_diffusion_commitparentsquery_Method final class ConduitAPI_diffusion_commitparentsquery_Method
extends ConduitAPI_diffusion_abstractquery_Method { extends ConduitAPI_diffusion_abstractquery_Method {

Some files were not shown because too many files have changed in this diff Show more