src/Compiler/Compiler.php
private function findSlotById(string $id, array $slots)
    {
        $slot = null;
        foreach($slots as $s){
            $slot_id = $s['id'] ?? null;
            if ($slot_id == $id){
                $slot = $s;
                break;
            }
        }
        return $slot;
    }
private function findSlotById(string $id, array $slots)
    {
        $slot = null;
        foreach($slots as $s){
            $slot_id = $s['id'] ?? null;
            if ($slot_id == $id){
                $slot = $s;
                break;
            }
        }
        return $slot;
    }
private function findSlotById ( string $ id , array $ slots ) { $ slot = null ; foreach ( $ slots as $ s ) { $ slot_id = $ s [ 'id' ] ?? null ; if ( $ slot_id == $ id ) { $ slot = $ s ; break ; } } return $ slot ; }
Find slot by id

@param string $id
@param array $slots

@return array|null
Find slot by id