Skip to content

Commit 1cca24b

Browse files
authored
Merge pull request #250 from cakephp/fix-exception-messages
Fix up exception messages.
2 parents 2d49f0b + 76445ad commit 1cca24b

23 files changed

Lines changed: 47 additions & 35 deletions

src/Validation/AtValidation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function postal(string $check): bool
5454
*/
5555
public static function phone(string $check): bool
5656
{
57-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
57+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
5858
}
5959

6060
/**
@@ -66,6 +66,6 @@ public static function phone(string $check): bool
6666
*/
6767
public static function personId(string $check): bool
6868
{
69-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
69+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
7070
}
7171
}

src/Validation/AuValidation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ public static function phone(string $check): bool
6868
*/
6969
public static function personId(string $check): bool
7070
{
71-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
71+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
7272
}
7373
}

src/Validation/BdValidation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function postal(string $check): bool
5454
*/
5555
public static function phone(string $check): bool
5656
{
57-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
57+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
5858
}
5959

6060
/**
@@ -66,6 +66,6 @@ public static function phone(string $check): bool
6666
*/
6767
public static function personId(string $check): bool
6868
{
69-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
69+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
7070
}
7171
}

src/Validation/BeValidation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function postal(string $check): bool
5454
*/
5555
public static function phone(string $check): bool
5656
{
57-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
57+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
5858
}
5959

6060
/**
@@ -65,6 +65,6 @@ public static function phone(string $check): bool
6565
*/
6666
public static function personId(string $check): bool
6767
{
68-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
68+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
6969
}
7070
}

src/Validation/CaValidation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function postal(string $check): bool
5454
*/
5555
public static function phone(string $check): bool
5656
{
57-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
57+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
5858
}
5959

6060
/**
@@ -65,6 +65,6 @@ public static function phone(string $check): bool
6565
*/
6666
public static function personId(string $check): bool
6767
{
68-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
68+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
6969
}
7070
}

src/Validation/ChValidation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static function postal(string $check): bool
5555
*/
5656
public static function phone(string $check): bool
5757
{
58-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
58+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
5959
}
6060

6161
/**
@@ -67,6 +67,6 @@ public static function phone(string $check): bool
6767
*/
6868
public static function personId(string $check): bool
6969
{
70-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
70+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
7171
}
7272
}

src/Validation/CzValidation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function postal(string $check): bool
5454
*/
5555
public static function phone(string $check): bool
5656
{
57-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
57+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
5858
}
5959

6060
/**
@@ -66,6 +66,6 @@ public static function phone(string $check): bool
6666
*/
6767
public static function personId(string $check): bool
6868
{
69-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
69+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
7070
}
7171
}

src/Validation/DeValidation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ public static function dob(string $check): bool
102102
*/
103103
public static function personId(string $check): bool
104104
{
105-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
105+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
106106
}
107107
}

src/Validation/FiValidation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static function postal(string $check): bool
5555
*/
5656
public static function phone(string $check): bool
5757
{
58-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
58+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
5959
}
6060

6161
/**

src/Validation/GbValidation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function postal(string $check): bool
5252
*/
5353
public static function phone(string $check): bool
5454
{
55-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
55+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
5656
}
5757

5858
/**
@@ -64,6 +64,6 @@ public static function phone(string $check): bool
6464
*/
6565
public static function personId(string $check): bool
6666
{
67-
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
67+
throw new NotImplementedException(__d('localized', '`{0}()` Not implemented yet.', __METHOD__));
6868
}
6969
}

0 commit comments

Comments
 (0)