for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpToZephir\Converter\Printer\Expr;
use PhpParser\Node\Expr;
use PhpToZephir\Converter\SimplePrinter;
class StaticCallPrinter extends SimplePrinter
{
/**
* @return string
*/
public static function getType()
return 'pExpr_StaticCall';
}
* @param Expr\StaticCall $node
*
public function convert(Expr\StaticCall $node)
return (($node->class instanceof Expr\Variable) ? '{'.$this->dispatcher->p($node->class).'}' : $this->dispatcher->p($node->class)).'::'
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.
.($node->name instanceof Expr
? ($node->name instanceof Expr\Variable
|| $node->name instanceof Expr\ArrayDimFetch
? $this->dispatcher->p($node->name)
: '{'.$this->dispatcher->p($node->name).'}')
: $node->name)
.'('.$this->dispatcher->pCommaSeparated($node->args).')';
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.