Issues (80)

code/AdvertAdmin.php (1 issue)

1
<?php
2
3
class AdvertAdmin extends ModelAdmin
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
{
5
    public static $managed_models = array(   //since 2.3.2
6
        'Advert', 'AdvertCategory', 'AdvertLayoutType',
7
    );
8
9
    public static $url_segment = 'adverts'; // will be linked as /admin/adverts
10
11
    public static $menu_title = 'Adverts';
12
}
13