Skip to content

Commit

Permalink
PSR-2 for stub files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gravitano committed Jun 24, 2015
1 parent 6772f60 commit 027e988
Show file tree
Hide file tree
Showing 15 changed files with 433 additions and 438 deletions.
108 changes: 54 additions & 54 deletions src/Pingpong/Generators/Stubs/console.stub
Original file line number Diff line number Diff line change
Expand Up @@ -4,64 +4,64 @@ use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;

class $CLASS$ extends Command {
class $CLASS$ extends Command
{
/**
* The console command name.
*
* @var string
*/
protected $name = '$COMMAND$';

/**
* The console command name.
*
* @var string
*/
protected $name = '$COMMAND$';
/**
* The console command description.
*
* @var string
*/
protected $description = '$DESCRIPTION$';

/**
* The console command description.
*
* @var string
*/
protected $description = '$DESCRIPTION$';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}

/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
//
}

/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
//
}
/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return [
['example', InputArgument::REQUIRED, 'An example argument.'],
];
}

/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return [
['example', InputArgument::REQUIRED, 'An example argument.'],
];
}

/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [
['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null],
];
}
/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [
['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null],
];
}

}
8 changes: 3 additions & 5 deletions src/Pingpong/Generators/Stubs/controller/plain.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

use $ROOT_NAMESPACE$Http\Requests;
use $ROOT_NAMESPACE$Http\Controllers\Controller;

use Illuminate\Http\Request;

class $CLASS$ extends Controller {

//

class $CLASS$ extends Controller
{
//
}
139 changes: 69 additions & 70 deletions src/Pingpong/Generators/Stubs/controller/resource.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,83 +2,82 @@

use $ROOT_NAMESPACE$Http\Requests;
use $ROOT_NAMESPACE$Http\Controllers\Controller;

use Illuminate\Http\Request;

class $CLASS$ extends Controller {

/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
//
}
class $CLASS$ extends Controller
{
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
//
}

/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store()
{
//
}
/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store()
{
//
}

/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
//
}
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
//
}

/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
//
}

/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id)
{
//
}

/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
}

}
Loading

0 comments on commit 027e988

Please sign in to comment.