Skip to content

Commit ce5da43

Browse files
committed
Rename flycheck-phpstan and Split package
1 parent a8f597b commit ce5da43

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

phpstan-flycheck.el renamed to flycheck-phpstan.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; phpstan-flycheck.el --- Flycheck integration for PHPStan -*- lexical-binding: t; -*-
1+
;;; flycheck-phpstan.el --- Flycheck integration for PHPStan -*- lexical-binding: t; -*-
22

33
;; Copyright (C) 2018 Friends of Emacs-PHP development
44

@@ -7,7 +7,7 @@
77
;; Version: 0.1.0
88
;; Keywords: convenience, php
99
;; Homepage: https://github.com/emacs-php/phpstan.el
10-
;; Package-Requires: ((emacs "24") (flycheck "26"))
10+
;; Package-Requires: ((emacs "24") (flycheck "26") (phpstan "0.1.0"))
1111

1212
;; This program is free software; you can redistribute it and/or modify
1313
;; it under the terms of the GNU General Public License as published by
@@ -33,7 +33,7 @@
3333
;; Usually it is defined dynamically by flycheck
3434
(defvar flycheck-phpstan-executable)
3535

36-
(defun phpstan-flycheck--enabled-and-set-variable ()
36+
(defun flycheck-phpstan--enabled-and-set-variable ()
3737
"Return path to phpstan configure file, and set buffer execute in side effect."
3838
(let ((enabled (not (null (or phpstan-working-dir (phpstan-get-config-file))))))
3939
(prog1 enabled
@@ -57,11 +57,11 @@
5757
(flycheck-save-buffer-to-temp #'flycheck-temp-file-inplace)
5858
(flycheck-save-buffer-to-temp #'flycheck-temp-file-system))))
5959
:working-directory (lambda (_) (phpstan-get-working-dir))
60-
:enabled (lambda () (phpstan-flycheck--enabled-and-set-variable))
60+
:enabled (lambda () (flycheck-phpstan--enabled-and-set-variable))
6161
:error-patterns
6262
((error line-start (1+ (not (any ":"))) ":" line ":" (message) line-end))
6363
:modes (php-mode)
6464
:next-checkers (php))
6565

66-
(provide 'phpstan-flycheck)
67-
;;; phpstan-flycheck.el ends here
66+
(provide 'flycheck-phpstan)
67+
;;; flycheck-phpstan.el ends here

0 commit comments

Comments
 (0)