Reorganise imports and class detection for WidgetControllers

This commit is contained in:
Daniel Hensby 2018-01-10 09:08:40 +00:00
parent 66531fd95a
commit 51edd8d620
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E
5 changed files with 15 additions and 15 deletions

View File

@ -2,12 +2,12 @@
namespace SilverStripe\Blog\Widgets;
if (!class_exists('\\SilverStripe\\Widgets\\Model\\Widget')) {
use SilverStripe\Widgets\Model\WidgetController;
if (!class_exists(WidgetController::class)) {
return;
}
use SilverStripe\Widgets\Model\WidgetController;
class BlogArchiveWidgetController extends WidgetController
{

View File

@ -2,12 +2,12 @@
namespace SilverStripe\Blog\Widgets;
if (!class_exists('\\SilverStripe\\Widgets\\Model\\Widget')) {
use SilverStripe\Widgets\Model\WidgetController;
if (!class_exists(WidgetController::class)) {
return;
}
use SilverStripe\Widgets\Model\WidgetController;
class BlogCategoriesWidgetController extends WidgetController
{

View File

@ -2,12 +2,12 @@
namespace SilverStripe\Blog\Widgets;
if (!class_exists('\\SilverStripe\\Widgets\\Model\\Widget')) {
use SilverStripe\Widgets\Model\WidgetController;
if (!class_exists(WidgetController::class)) {
return;
}
use SilverStripe\Widgets\Model\WidgetController;
class BlogRecentPostsWidgetController extends WidgetController
{

View File

@ -2,12 +2,12 @@
namespace SilverStripe\Blog\Widgets;
if (!class_exists('\\SilverStripe\\Widgets\\Model\\Widget')) {
use SilverStripe\Widgets\Model\WidgetController;
if (!class_exists(WidgetController::class)) {
return;
}
use SilverStripe\Widgets\Model\WidgetController;
class BlogTagsCloudWidgetController extends WidgetController
{
}

View File

@ -2,12 +2,12 @@
namespace SilverStripe\Blog\Widgets;
if (!class_exists('\\SilverStripe\\Widgets\\Model\\Widget')) {
use SilverStripe\Widgets\Model\WidgetController;
if (!class_exists(WidgetController::class)) {
return;
}
use SilverStripe\Widgets\Model\WidgetController;
class BlogTagsWidgetController extends WidgetController
{