@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove the `PhortuneNotImplementedException` class

Summary: Replace `PhortuneNotImplementedException` with `PhutilMethodNotImplementedException`.

Test Plan: N/A

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14445

+8 -22
-2
src/__phutil_library_map__.php
··· 3428 3428 'PhortuneMerchantTransactionQuery' => 'applications/phortune/query/PhortuneMerchantTransactionQuery.php', 3429 3429 'PhortuneMerchantViewController' => 'applications/phortune/controller/PhortuneMerchantViewController.php', 3430 3430 'PhortuneMonthYearExpiryControl' => 'applications/phortune/control/PhortuneMonthYearExpiryControl.php', 3431 - 'PhortuneNotImplementedException' => 'applications/phortune/exception/PhortuneNotImplementedException.php', 3432 3431 'PhortuneOrderTableView' => 'applications/phortune/view/PhortuneOrderTableView.php', 3433 3432 'PhortunePayPalPaymentProvider' => 'applications/phortune/provider/PhortunePayPalPaymentProvider.php', 3434 3433 'PhortunePaymentMethod' => 'applications/phortune/storage/PhortunePaymentMethod.php', ··· 7771 7770 'PhortuneMerchantTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 7772 7771 'PhortuneMerchantViewController' => 'PhortuneMerchantController', 7773 7772 'PhortuneMonthYearExpiryControl' => 'AphrontFormControl', 7774 - 'PhortuneNotImplementedException' => 'Exception', 7775 7773 'PhortuneOrderTableView' => 'AphrontView', 7776 7774 'PhortunePayPalPaymentProvider' => 'PhortunePaymentProvider', 7777 7775 'PhortunePaymentMethod' => array(
-12
src/applications/phortune/exception/PhortuneNotImplementedException.php
··· 1 - <?php 2 - 3 - final class PhortuneNotImplementedException extends Exception { 4 - 5 - public function __construct(PhortunePaymentProvider $provider) { 6 - return parent::__construct( 7 - pht( 8 - "Provider '%s' does not implement this method.", 9 - get_class($provider))); 10 - } 11 - 12 - }
+8 -8
src/applications/phortune/provider/PhortunePaymentProvider.php
··· 109 109 abstract public function canRunConfigurationTest(); 110 110 111 111 public function runConfigurationTest() { 112 - throw new PhortuneNotImplementedException($this); 112 + throw new PhutilMethodNotImplementedException(); 113 113 } 114 114 115 115 ··· 169 169 * @task addmethod 170 170 */ 171 171 public function translateCreatePaymentMethodErrorCode($error_code) { 172 - throw new PhortuneNotImplementedException($this); 172 + throw new PhutilMethodNotImplementedException(); 173 173 } 174 174 175 175 ··· 177 177 * @task addmethod 178 178 */ 179 179 public function getCreatePaymentMethodErrorMessage($error_code) { 180 - throw new PhortuneNotImplementedException($this); 180 + throw new PhutilMethodNotImplementedException(); 181 181 } 182 182 183 183 ··· 185 185 * @task addmethod 186 186 */ 187 187 public function validateCreatePaymentMethodToken(array $token) { 188 - throw new PhortuneNotImplementedException($this); 188 + throw new PhutilMethodNotImplementedException(); 189 189 } 190 190 191 191 ··· 196 196 AphrontRequest $request, 197 197 PhortunePaymentMethod $method, 198 198 array $token) { 199 - throw new PhortuneNotImplementedException($this); 199 + throw new PhutilMethodNotImplementedException(); 200 200 } 201 201 202 202 ··· 206 206 public function renderCreatePaymentMethodForm( 207 207 AphrontRequest $request, 208 208 array $errors) { 209 - throw new PhortuneNotImplementedException($this); 209 + throw new PhutilMethodNotImplementedException(); 210 210 } 211 211 212 212 public function getDefaultPaymentMethodDisplayName( 213 213 PhortunePaymentMethod $method) { 214 - throw new PhortuneNotImplementedException($this); 214 + throw new PhutilMethodNotImplementedException(); 215 215 } 216 216 217 217 ··· 290 290 public function processControllerRequest( 291 291 PhortuneProviderActionController $controller, 292 292 AphrontRequest $request) { 293 - throw new PhortuneNotImplementedException($this); 293 + throw new PhutilMethodNotImplementedException(); 294 294 } 295 295 296 296 }