mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Coding Standards: Fix/ignore the WordPress.NamingConventions.ValidFunctionName violations.
See #47632 git-svn-id: https://develop.svn.wordpress.org/trunk@45580 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -13,7 +13,7 @@ class TracTickets {
|
||||
*
|
||||
* @return bool|null true if the ticket is resolved, false if not resolved, null on error
|
||||
*/
|
||||
public static function isTracTicketClosed( $trac_url, $ticket_id ) {
|
||||
public static function isTracTicketClosed( $trac_url, $ticket_id ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
|
||||
if ( ! extension_loaded( 'openssl' ) ) {
|
||||
$trac_url = preg_replace( '/^https:/', 'http:', $trac_url );
|
||||
}
|
||||
@@ -44,12 +44,14 @@ class TracTickets {
|
||||
return ! in_array( $ticket_id, self::$trac_ticket_cache[ $trac_url ] );
|
||||
}
|
||||
|
||||
// phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
|
||||
public static function usingLocalCache() {
|
||||
echo PHP_EOL . "\x1b[0m\x1b[30;43m\x1b[2K";
|
||||
echo 'INFO: Trac was inaccessible, so a local ticket status cache was used.' . PHP_EOL;
|
||||
echo "\x1b[0m\x1b[2K";
|
||||
}
|
||||
|
||||
// phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
|
||||
public static function forcingKnownBugs() {
|
||||
echo PHP_EOL . "\x1b[0m\x1b[37;41m\x1b[2K";
|
||||
echo "ERROR: Trac was inaccessible, so known bugs weren't able to be skipped." . PHP_EOL;
|
||||
|
||||
Reference in New Issue
Block a user