Lines Matching +full:php +full:- +full:lint

1 <?php
12 // <div class="plugin-bpmnio" id="__(bpmn|dmn)_js_<hash>">
25 protected string $lint = ''; // optional bpmnlint mode: on|off|inactive variable in syntax_plugin_bpmnio_bpmnio
29 require_once __DIR__ . '/../inc/link_processor.php';
49 $this->Lexer->addEntryPattern('<bpmnio.*?>(?=.*?</bpmnio>)', $mode, 'plugin_bpmnio_bpmnio');
54 $this->Lexer->addExitPattern('</bpmnio>', 'plugin_bpmnio_bpmnio');
66 $attrs = $this->buildAttributes($matched[1]);
69 $this->type = $attrs['type'] ?? 'bpmn';
70 $this->src = $attrs['src'] ?? '';
71 $this->zoom = $this->normalizeZoom($attrs['zoom'] ?? null) ?? '';
72 $this->lint = $this->resolveLint($attrs['lint'] ?? null, $this->type);
74 return [$state, $this->type, '', $pos, '', false, $this->zoom, $this->lint];
80 $inline = empty($this->src);
82 $match = $this->getMedia($this->src);
85 $state, $this->type, base64_encode(trim($match)),
86 $posStart, $posEnd, $inline, $this->zoom, $this->lint,
90 $this->type = '';
91 $this->src = '';
92 $this->zoom = '';
93 $this->lint = '';
130 * Per-diagram `lint` attribute wins when valid; otherwise the global plugin
132 * type the result is an empty string and no data-lint attribute is emitted.
134 * @param mixed $lint Raw attribute value (string|null|other)
137 private function resolveLint($lint, string $type): string argument
145 if (is_string($lint)) {
146 $normalized = strtolower(trim($lint));
152 $default = strtolower((string) $this->getConf('lint'));
160 $id = (new MediaResolver($ID))->resolveId($src);
175 … [$state, $type, $match, $posStart, $posEnd, $inline, $zoom, $lint] = array_pad($data, 8, '');
179 $renderer->doc .= <<<HTML
180 <div class="plugin-bpmnio">
181 <a href="https://github.com/Color-Of-Code/dokuwiki-plugin-bpmnio/issues/4">
194 $renderer->doc .= <<<HTML
195 <div class="plugin-bpmnio" id="{$bpmnid}">
205 $this->loadLinkProcessor();
209 $renderer->doc .= <<<HTML
220 $class = $renderer->startSectionEdit($posStart, $sectionEditData);
224 $zoomAttr = $zoom !== '' ? " data-zoom=\"{$zoom}\"" : '';
225 $lintAttr = $lint !== '' ? " data-lint=\"{$lint}\"" : '';
226 $renderer->doc .= <<<HTML
232 $renderer->finishSectionEdit($posEnd);
237 $renderer->doc .= <<<HTML