Merge pull request #861 from gergo85/master

Cleanup
This commit is contained in:
Samuel Georges 2015-01-05 09:21:09 +11:00
commit 59c9146b4f
23 changed files with 7 additions and 37 deletions

View File

@ -15,7 +15,6 @@ use Backend\Classes\ControllerBehavior;
*/
class ListController extends ControllerBehavior
{
/**
* @var array List definitions, keys for alias and value for configuration.
*/

View File

@ -13,7 +13,6 @@ use October\Rain\Router\Helper as RouterHelper;
*/
class BackendHelper
{
/**
* Returns a URL in context of the Backend
*/

View File

@ -16,7 +16,6 @@ use ArrayAccess;
*/
class FormTabs implements IteratorAggregate, ArrayAccess
{
const SECTION_OUTSIDE = 'outside';
const SECTION_PRIMARY = 'primary';
const SECTION_SECONDARY = 'secondary';
@ -176,5 +175,4 @@ class FormTabs implements IteratorAggregate, ArrayAccess
{
return isset($this->fields[$offset]) ? $this->fields[$offset] : null;
}
}
}

View File

@ -11,7 +11,6 @@ use Str;
*/
abstract class FormWidgetBase extends WidgetBase
{
/**
* @var FormField Object containing general form field information.
*/

View File

@ -9,7 +9,6 @@
*/
class ListColumn
{
/**
* @var string List column name.
*/

View File

@ -13,7 +13,6 @@ use Session;
*/
abstract class WidgetBase
{
use \System\Traits\AssetMaker;
use \System\Traits\ConfigMaker;
use \System\Traits\ViewMaker;

View File

@ -21,7 +21,6 @@ use Exception;
*/
class AccessLogs extends Controller
{
public $implement = [
'Backend.Behaviors.ListController'
];

View File

@ -14,7 +14,6 @@ use Backend\Models\EditorPreferences as EditorPreferencesModel;
*/
class EditorPreferences extends Controller
{
public $implement = [
'Backend.Behaviors.FormController',
];

View File

@ -1,10 +1,9 @@
<?php
/*
/**
* Register Backend routes before all user routes.
*/
App::before(function ($request) {
/*
* Other pages
*/
@ -16,5 +15,4 @@ App::before(function ($request) {
* Entry point
*/
Route::any(Config::get('cms.backendUri', 'backend'), 'Backend\Classes\BackendController@run');
});

View File

@ -16,7 +16,6 @@ use Exception;
*/
class CmsException extends ApplicationException
{
/**
* @var Cms\Classes\CmsCompoundObject A reference to a CMS object used for masking errors.
*/

View File

@ -10,7 +10,6 @@ use System\Classes\ApplicationException;
*/
class CmsObjectQuery
{
protected $useCache = false;
protected $cmsObject;

View File

@ -1,14 +1,12 @@
<?php
/*
/**
* Register CMS routes before all user routes.
*/
App::before(function ($request) {
/*
* The CMS module intercepts all URLs that were not
* The CMS module intercepts all URLs that were not
* handled by the back-end modules.
*/
Route::any('{slug}', 'Cms\Classes\Controller@run')->where('slug', '(.*)?');
});

View File

@ -13,7 +13,6 @@ use Exception;
*/
class Controller extends BaseController
{
/**
* Combines JavaScript and StyleSheet assets.
* @param string $name Combined file code

View File

@ -19,7 +19,6 @@ use System\Classes\ApplicationException;
*/
class ErrorHandler
{
/**
* @var System\Classes\ExceptionBase A prepared mask exception used to mask any exception fired.
*/

View File

@ -16,7 +16,6 @@ use System\Classes\ApplicationException;
*/
class ExceptionBase extends Exception
{
/**
* @var Exception If this exception is acting as a mask, this property stores the face exception.
*/

View File

@ -12,7 +12,6 @@ use October\Rain\Database\ModelBehavior as ModelBehaviorBase;
*/
class ModelBehavior extends ModelBehaviorBase
{
/**
* @var array Properties that must exist in the model using this behavior.
*/
@ -29,7 +28,8 @@ class ModelBehavior extends ModelBehaviorBase
/*
* Validate model properties
*/
foreach ($this->requiredProperties as $property) {
foreach ($this->requiredProperties as $property)
{
if (!isset($model->{$property})) {
throw new ApplicationException(Lang::get('system::lang.behavior.missing_property', [
'class' => get_class($model),

View File

@ -18,11 +18,9 @@ use Exception;
*
* @package october\system
* @author Alexey Bobkov, Samuel Georges
*
*/
class EventLogs extends Controller
{
public $implement = [
'Backend.Behaviors.FormController',
'Backend.Behaviors.ListController'

View File

@ -17,11 +17,9 @@ use Exception;
*
* @package october\system
* @author Alexey Bobkov, Samuel Georges
*
*/
class MailLayouts extends Controller
{
public $implement = [
'Backend.Behaviors.FormController',
];

View File

@ -20,11 +20,9 @@ use Exception;
*
* @package october\system
* @author Alexey Bobkov, Samuel Georges
*
*/
class MailTemplates extends Controller
{
public $implement = [
'Backend.Behaviors.FormController',
'Backend.Behaviors.ListController'

View File

@ -18,11 +18,9 @@ use Exception;
*
* @package october\system
* @author Alexey Bobkov, Samuel Georges
*
*/
class RequestLogs extends Controller
{
public $implement = [
'Backend.Behaviors.FormController',
'Backend.Behaviors.ListController'

View File

@ -11,7 +11,6 @@ use Model;
*/
class EventLog extends Model
{
/**
* @var string The database table used by the model.
*/

View File

@ -11,7 +11,6 @@ use Request;
*/
class RequestLog extends Model
{
/**
* @var string The database table used by the model.
*/

View File

@ -1,13 +1,11 @@
<?php
/*
/**
* Register System routes before all user routes.
*/
App::before(function ($request) {
/*
* Combine JavaScript and StyleSheet assets
*/
Route::any('combine/{file}', 'System\Classes\Controller@combine');
});