Fix formatting and interfaces in nearly every file

This commit is contained in:
Nabeel Shahzad
2018-03-19 20:50:40 -05:00
parent 04c5b9e7bf
commit ccf56ddec1
331 changed files with 3282 additions and 2492 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace {{namespace}};
use App\Interfaces\Widget;
/**
* Class {{class}}
* @package {{namespace}}
*/
class {{class}} extends Widget
{
/**
* The configuration array.
*/
protected $config = [
];
/**
* Treat this method as a controller action.
* Return view() or other content to display.
*/
public function run()
{
return view('{{view}}', [
'config' => $this->config,
]);
}
}

View File

@@ -0,0 +1,21 @@
<?php
namespace {{namespace}};
use App\Interfaces\Widget;
/**
* Class {{class}}
* @package {{namespace}}
*/
class {{class}} extends Widget
{
/**
* Treat this method as a controller action.
* Return view() or other content to display.
*/
public function run()
{
//
}
}