Skip to content

Commit f1ac612

Browse files
committed
change exception member variables to comply with style guide
1 parent 622d926 commit f1ac612

9 files changed

Lines changed: 15 additions & 15 deletions

File tree

app/sprinkles/account/src/Authenticate/Exception/AccountDisabledException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
*/
1717
class AccountDisabledException extends HttpException
1818
{
19-
protected $default_message = 'ACCOUNT.DISABLED';
20-
protected $http_error_code = 403;
19+
protected $defaultMessage = 'ACCOUNT.DISABLED';
20+
protected $httpErrorCode = 403;
2121
}

app/sprinkles/account/src/Authenticate/Exception/AccountInvalidException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
*/
1717
class AccountInvalidException extends HttpException
1818
{
19-
protected $default_message = 'ACCOUNT.INVALID';
20-
protected $http_error_code = 403;
19+
protected $defaultMessage = 'ACCOUNT.INVALID';
20+
protected $httpErrorCode = 403;
2121
}

app/sprinkles/account/src/Authenticate/Exception/AccountNotVerifiedException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
*/
1717
class AccountNotVerifiedException extends HttpException
1818
{
19-
protected $default_message = 'ACCOUNT.UNVERIFIED';
20-
protected $http_error_code = 403;
19+
protected $defaultMessage = 'ACCOUNT.UNVERIFIED';
20+
protected $httpErrorCode = 403;
2121
}

app/sprinkles/account/src/Authenticate/Exception/AuthCompromisedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
*/
1717
class AuthCompromisedException extends ForbiddenException
1818
{
19-
protected $default_message = 'ACCOUNT.SESSION_COMPROMISED';
19+
protected $defaultMessage = 'ACCOUNT.SESSION_COMPROMISED';
2020
}

app/sprinkles/account/src/Authenticate/Exception/AuthExpiredException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
*/
1717
class AuthExpiredException extends HttpException
1818
{
19-
protected $default_message = 'ACCOUNT.SESSION_EXPIRED';
20-
protected $http_error_code = 401;
19+
protected $defaultMessage = 'ACCOUNT.SESSION_EXPIRED';
20+
protected $httpErrorCode = 401;
2121
}

app/sprinkles/account/src/Authenticate/Exception/InvalidCredentialsException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
*/
1717
class InvalidCredentialsException extends HttpException
1818
{
19-
protected $default_message = 'USER_OR_PASS_INVALID';
20-
protected $http_error_code = 403;
19+
protected $defaultMessage = 'USER_OR_PASS_INVALID';
20+
protected $httpErrorCode = 403;
2121
}

app/sprinkles/account/src/Util/HashFailedException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
*/
1717
class HashFailedException extends HttpException
1818
{
19-
protected $default_message = 'PASSWORD.HASH_FAILED';
20-
protected $http_error_code = 500;
19+
protected $defaultMessage = 'PASSWORD.HASH_FAILED';
20+
protected $httpErrorCode = 500;
2121
}

app/sprinkles/core/assets/userfrosting/js/handlebars-helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Handlebars.registerHelper('dateFormat', function(context, block) {
5656
/**
5757
* Format a phone number.
5858
*/
59-
Handlebars.registerHelper("phoneFormat", function(phoneNumber) {
59+
Handlebars.registerHelper("phoneUSFormat", function(phoneNumber) {
6060
if (typeof phoneNumber === 'undefined') {
6161
return '';
6262
}

app/sprinkles/core/src/Database/DatabaseInvalidException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
*/
1717
class DatabaseInvalidException extends ForbiddenException
1818
{
19-
protected $default_message = 'DB_INVALID';
19+
protected $defaultMessage = 'DB_INVALID';
2020
}

0 commit comments

Comments
 (0)