for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
/**
* Copyright Andrea Heigl <[email protected]>
*
* Licenses under the MIT-license. For details see the included file LICENSE.md
*/
namespace Callingallpapers\Subcommands\Sessionize\Parser;
use DOMDocument;
use DOMXPath;
class EventName
{
public function parse(DOMDocument $dom, DOMXPath $xpath)
$dom
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$confPath = $xpath->query('//h4');
if (! $confPath || $confPath->length == 0) {
throw new \InvalidArgumentException('The CfP does not seem to have an eventname');
}
return trim($confPath->item(0)->textContent);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.