Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3748871
D616.id1510.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D616.id1510.diff
View Options
diff --git a/app/Internationalization/UserAttribute.php b/app/Internationalization/UserAttribute.php
--- a/app/Internationalization/UserAttribute.php
+++ b/app/Internationalization/UserAttribute.php
@@ -4,7 +4,7 @@
class UserAttribute extends LocalizableMessage {
- function __construct ($attribute) {
+ public function __construct ($attribute) {
$this->prefix = "panel.user-attributes.";
parent::__construct($attribute);
}
diff --git a/app/Services/FindableByAttribute.php b/app/Services/FindableByAttribute.php
--- a/app/Services/FindableByAttribute.php
+++ b/app/Services/FindableByAttribute.php
@@ -12,7 +12,7 @@
*
* If the attribute isn't unique, this method will return the first object found.
*/
- static function findBy ($attribute, $value) {
+ public static function findBy ($attribute, $value) {
$method = 'static::where' . ucfirst($attribute);
$object = call_user_func($method, $value)
->first(['*']);
diff --git a/tests/Console/Commands/DatabaseShellTest.php b/tests/Console/Commands/DatabaseShellTest.php
--- a/tests/Console/Commands/DatabaseShellTest.php
+++ b/tests/Console/Commands/DatabaseShellTest.php
@@ -24,7 +24,7 @@
/**
* @expectedException LogicException
*/
- function testLogicExceptionIsThrownWhenEngineIsUnknown () {
+ public function testLogicExceptionIsThrownWhenEngineIsUnknown () {
$formerEngine = Config::get('database.default');
Config::set('database.default', 'unknownsql');
diff --git a/tests/Controller/Auth/AuthControllerTest.php b/tests/Controller/Auth/AuthControllerTest.php
--- a/tests/Controller/Auth/AuthControllerTest.php
+++ b/tests/Controller/Auth/AuthControllerTest.php
@@ -10,7 +10,7 @@
*/
class AuthControllerTest extends TestCase {
- function testGetRoute () {
+ public function testGetRoute () {
$this->assertSame('/auth/login', AuthController::getRoute('login'));
$this->assertSame('/auth', AuthController::getRoute(''));
$this->assertSame('/auth', AuthController::getRoute(null));
diff --git a/tests/Helpers/RoutingTest.php b/tests/Helpers/RoutingTest.php
--- a/tests/Helpers/RoutingTest.php
+++ b/tests/Helpers/RoutingTest.php
@@ -6,7 +6,7 @@
class RoutingTest extends TestCase {
- function testGetRoute () {
+ public function testGetRoute () {
$this->assertStringEndsWith('/auth/login', authurl('login'));
$this->assertStringEndsWith('/auth', authurl());
$this->assertStringEndsWith('/auth', authurl(''));
diff --git a/tests/Models/UserTest.php b/tests/Models/UserTest.php
--- a/tests/Models/UserTest.php
+++ b/tests/Models/UserTest.php
@@ -10,7 +10,7 @@
*/
class UsersTest extends TestCase {
- function testTryGetFromExternalSource () {
+ public function testTryGetFromExternalSource () {
$this->assertFalse(
User::tryGetFromExternalSource('phantasialand', 'Fairy Tale Forest', $user)
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 11:07 (21 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248962
Default Alt Text
D616.id1510.diff (2 KB)
Attached To
Mode
D616: Define explicitly method visibility
Attached
Detach File
Event Timeline
Log In to Comment