for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\Assets\Pipes\Make;
use Arcanedev\Assets\Helpers\Stub;
use Closure;
/**
* Class CopyGitIgnoreFile
*
* @package Arcanedev\Assets\Pipes\Make
* @author ARCANEDEV <[email protected]>
*/
abstract class CopyGitIgnoreFile
{
/* -----------------------------------------------------------------
| Main Method
| -----------------------------------------------------------------
* @param array $passable
* @param \Closure $next
* @return mixed
public function handle(array $passable, Closure $next)
$this->getStub($passable)
->save(base_path($passable['path'].'/.gitignore'));
return $next($passable);
}
| Other Methods
* Get the stub file.
* @return \Arcanedev\Assets\Helpers\Stub
protected function getStub(array $passable)
$passable
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return Stub::make("module/gitignore.stub");
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.