We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab4fddf + 658593c commit 7bc5ef8Copy full SHA for 7bc5ef8
ob-phpstan.el
@@ -49,7 +49,9 @@
49
(defun org-babel-execute:phpstan (body params)
50
"Org mode fish evaluate function"
51
(let ((tmp-file (org-babel-temp-file "phpstan-" ".php"))
52
- (body (concat "<?php\n" body))
+ (body (if (string-prefix-p "<" body)
53
+ body
54
+ (concat "<?php " body)))
55
(level (or (cdr (assoc :level params)) org-babel-phpstan-level)))
56
(with-temp-file tmp-file (insert (org-babel-expand-body:generic body params)))
57
(org-babel-eval (format "%s analyze %s --level %s --no-progress"
0 commit comments