Incorporated latest feedback: added use statement in code example and removed explicit type-cast
parent
b3e0126acf
commit
2f2f2e4f26
|
@ -112,8 +112,9 @@ Example:
|
||||||
namespace phpDocumentor\Composer;
|
namespace phpDocumentor\Composer;
|
||||||
|
|
||||||
use Composer\Package\PackageInterface;
|
use Composer\Package\PackageInterface;
|
||||||
|
use Composer\Installer\LibraryInstaller;
|
||||||
|
|
||||||
class TemplateInstaller extends \Composer\Installer\LibraryInstaller
|
class TemplateInstaller extends LibraryInstaller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
|
@ -137,7 +138,7 @@ Example:
|
||||||
*/
|
*/
|
||||||
public function supports($packageType)
|
public function supports($packageType)
|
||||||
{
|
{
|
||||||
return (bool)('phpdocumentor-template' === $packageType);
|
return ('phpdocumentor-template' === $packageType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue