for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Riclep\StoryblokForms\Traits;
use Riclep\StoryblokForms\Blocks\LsfFieldset;
use Riclep\StoryblokForms\Blocks\LsfRepeatingFieldset;
trait InFieldset
{
protected $inFieldSet = false;
protected $isRepeating = false;
protected function initInFieldset() {
if ($this->parent() instanceof LsfFieldset) {
parent()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
if ($this->/** @scrutinizer ignore-call */ parent() instanceof LsfFieldset) {
$this->inFieldSet = true;
}
if ($this->parent() instanceof LsfRepeatingFieldset) {
$this->isRepeating = true;