for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Vivait\BootstrapBundle\Model;
/**
* Class PolymorphicTrait
* @mixin PolymorphicInterface
* @package Vivait\BootstrapBundle\Model
*/
trait PolymorphicTrait {
* @return $this
public static function generatePolyObject($poly_alias) {
$objs = self::generateAllPolyObjects();
generateAllPolyObjects()
Vivait\BootstrapBundle\Model\PolymorphicTrait
generatePolyObject()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
foreach($objs as $obj) {
if($obj->getPolyAlias() == $poly_alias) {
return $obj;
}
return null;
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.