for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nexus\Shell\Business\Model\Executor;
class ShellExec implements ExecutorInterface
{
/**
* @param string $command
*
* @return string
*/
public function execute(string $command): string
$result = shell_exec($command);
if ($result === null) {
$result = '';
}
return $result;