Completed
Push — master ( 0f5e6b...d874fd )
by Conrad
01:54
created

src/Admin/OauthAdmin.php (6 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace AdvancedLearning\Admin;
4
5
use AdvancedLearning\Oauth2Server\Models\AccessToken;
6
use AdvancedLearning\Oauth2Server\Models\Client;
7
use AdvancedLearning\Oauth2Server\Models\Scope;
8
use SilverStripe\Admin\ModelAdmin;
9
10
class OauthAdmin extends ModelAdmin
11
{
12
    private static $url_segment = 'oauth';
0 ignored issues
show
The property $url_segment is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
Comprehensibility introduced by Conrad Dobbs
Consider using a different property name as you override a private property of the parent class.
Loading history...
13
14
    private static $menu_title = 'OAuth';
0 ignored issues
show
The property $menu_title is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
Comprehensibility introduced by Conrad Dobbs
Consider using a different property name as you override a private property of the parent class.
Loading history...
15
16
    private static $managed_models = [
0 ignored issues
show
The property $managed_models is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
Comprehensibility introduced by Conrad Dobbs
Consider using a different property name as you override a private property of the parent class.
Loading history...
17
        Client::class,
18
        AccessToken::class,
19
        Scope::class
20
    ];
21
}
22