| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/tokens.tar |
empty-property-exception.php 0000666 00000000665 15111700664 0012305 0 ustar 00 <?php
namespace Yoast\WP\SEO\Exceptions\OAuth\Tokens;
use Exception;
/**
* Class Empty_Property_Exception
*/
class Empty_Property_Exception extends Exception {
/**
* Empty_Property_Exception constructor.
*
* @param string $property The property that is empty.
*/
public function __construct( $property ) {
parent::__construct( \sprintf( 'Token creation failed. Property `%s` cannot be empty.', $property ), 400 );
}
}
failed-storage-exception.php 0000666 00000001107 15111700664 0012143 0 ustar 00 <?php
namespace Yoast\WP\SEO\Exceptions\OAuth\Tokens;
use Exception;
/**
* Class Failed_Storage_Exception
*/
class Failed_Storage_Exception extends Exception {
const DEFAULT_MESSAGE = 'Token storing failed. Please try again.';
/**
* Failed_Storage_Exception constructor.
*
* @param string $reason The reason why token storage failed. Optional.
*/
public function __construct( $reason = '' ) {
$message = ( $reason ) ? \sprintf( 'Token storing failed. Reason: %s. Please try again', $reason ) : self::DEFAULT_MESSAGE;
parent::__construct( $message, 500 );
}
}
empty-token-exception.php 0000666 00000000474 15111700664 0011537 0 ustar 00 <?php
namespace Yoast\WP\SEO\Exceptions\OAuth\Tokens;
use Exception;
/**
* Class Empty_Token_Exception
*/
class Empty_Token_Exception extends Exception {
/**
* Empty_Token_Exception constructor.
*/
public function __construct() {
parent::__construct( 'Token usage failed. Token is empty.', 400 );
}
}
.htaccess 0000666 00000000424 15114277407 0006356 0 ustar 00 <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
Deny from all
</FilesMatch>
</IfModule>