Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lisp/php-flymake.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
;;; Code:
(require 'flymake)
(require 'cl-lib)
(require 'php-core)
(eval-and-compile
(require 'flymake-proc))
(eval-when-compile
Expand Down Expand Up @@ -101,7 +102,7 @@ See `flymake-diagnostic-functions' about REPORT-FN and ARGS parameters."
(defun php-flymake--build-command-line (file)
"Return the command line for `php -l' FILE."
(let* ((command-args (or php-flymake-executable-command-args
(list (or (bound-and-true-p php-executable) "php"))))
(list php-executable)))
(cmd (car-safe command-args))
(default-directory (expand-file-name "~")))
(unless (or (file-executable-p cmd)
Expand Down
11 changes: 5 additions & 6 deletions lisp/php-project.el
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
;;; Code:
(eval-when-compile
(require 'cl-lib))
(require 'php-core)
(require 'projectile nil t)

;; Constants
Expand Down Expand Up @@ -217,12 +218,10 @@ Typically it is `pear', `drupal', `wordpress', `symfony2' and `psr2'.")

(defun php-project-get-php-executable ()
"Return path to PHP executable file."
(cond
((and (stringp php-project-php-executable)
(file-executable-p php-project-php-executable))
php-project-php-executable)
((boundp 'php-executable) php-executable)
(t (executable-find "php"))))
(if (and (stringp php-project-php-executable)
(file-executable-p php-project-php-executable))
php-project-php-executable
php-executable))

(defun php-project-get-file-html-template-type (filename)
"Return symbol T, NIL or `auto' by `FILENAME'."
Expand Down
Loading