|
40 | 40 | ;;
|
41 | 41 | ;; Return path to PHP executable file with the project settings overriding.
|
42 | 42 | ;;
|
43 |
| -;; ### `php-project-get-phan-executable()' |
44 |
| -;; |
45 |
| -;; Return path to Phan executable file with the project settings overriding. |
46 |
| -;; Phan is a static analyzer and LSP server implementation for PHP. |
47 |
| -;; See https://github.com/phan/phan |
48 |
| -;; |
49 | 43 | ;; ## `.dir-locals.el' support
|
50 | 44 | ;;
|
51 | 45 | ;; - `php-project-coding-style'
|
|
59 | 53 | ;; - `php-project-php-executable'
|
60 | 54 | ;; - Path to project specific PHP executable file.
|
61 | 55 | ;; - If you want to use a file different from the system wide `php' command.
|
62 |
| -;; - `php-project-phan-executable' |
63 |
| -;; - Path to project specific Phan executable file. |
64 |
| -;; - When not specified explicitly, it is automatically searched from |
65 |
| -;; Composer's dependency of the project and `exec-path'. |
66 | 56 | ;;
|
67 | 57 |
|
68 | 58 | ;;; Code:
|
@@ -142,10 +132,6 @@ defines constants, and sets the class loaders.")
|
142 | 132 | (put 'php-project-php-executable 'safe-local-variable
|
143 | 133 | #'(lambda (v) (and (stringp v) (file-executable-p v))))
|
144 | 134 |
|
145 |
| - (defvar-local php-project-phan-executable nil |
146 |
| - "Path to phan executable file.") |
147 |
| - (put 'php-project-phan-executable 'safe-local-variable #'php-project--eval-bootstrap-scripts) |
148 |
| - |
149 | 135 | (defvar-local php-project-coding-style nil
|
150 | 136 | "Symbol value of the coding style of the project that PHP major mode refers to.
|
151 | 137 |
|
@@ -240,13 +226,6 @@ Typically it is `pear', `drupal', `wordpress', `symfony2' and `psr2'.")
|
240 | 226 | ((boundp 'php-executable) php-executable)
|
241 | 227 | (t (executable-find "php"))))
|
242 | 228 |
|
243 |
| -(defun php-project-get-phan-executable () |
244 |
| - "Return path to phan executable file." |
245 |
| - (or (car-safe (php-project--eval-bootstrap-scripts |
246 |
| - (list php-project-phan-executable |
247 |
| - (cons 'root "vendor/bin/phan")))) |
248 |
| - (executable-find "phan"))) |
249 |
| - |
250 | 229 | (defun php-project-get-file-html-template-type (filename)
|
251 | 230 | "Return symbol T, NIL or `auto' by `FILENAME'."
|
252 | 231 | (cond
|
|
0 commit comments