Docblock fixes

This commit is contained in:
James Brooks 2015-11-04 15:02:56 +00:00
parent 0fed178c34
commit b8e3dcff55
4 changed files with 32 additions and 5 deletions

View File

@ -31,8 +31,18 @@ class ComponentController extends Controller
{
use DispatchesJobs;
/**
* Array of sub-menu items.
*
* @var array
*/
protected $subMenu = [];
/**
* Creates a new component controller instance.
*
* @return void
*/
public function __construct()
{
$this->subMenu = [

View File

@ -37,7 +37,7 @@ class IncidentController extends Controller
protected $subMenu = [];
/**
* Creates a new DashIncidentController instance.
* Creates a new incident controller instance.
*
* @return \CachetHQ\Cachet\Http\Controllers\DashScheduleController
*/

View File

@ -36,7 +36,7 @@ class ScheduleController extends Controller
protected $subMenu = [];
/**
* Creates a new DashScheduleController instance.
* Creates a new schedule controller instance.
*
* @return \CachetHQ\Cachet\Http\Controllers\DashScheduleController
*/

View File

@ -23,9 +23,25 @@ use Illuminate\Support\Facades\View;
class SettingsController extends Controller
{
/**
* Array of sub-menu items.
*
* @var array
*/
protected $subMenu = [];
/**
* The title of the sub-menu.
*
* @var string
*/
protected $subTitle = 'Settings';
/**
* Creates a new settings controller instance.
*
* @return void
*/
public function __construct()
{
$this->subMenu = [
@ -67,9 +83,10 @@ class SettingsController extends Controller
],
];
View::share('sub_title', $this->subTitle);
View::share('sub_menu', $this->subMenu);
View::share([
'sub_title' => $this->subTitle,
'sub_menu' => $this->subMenu,
]);
}
/**