Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #231 from AtomLinter/arcanemagus/update-deps
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
Arcanemagus authored Sep 17, 2019
2 parents 786a28f + a429afb commit 6fdffdb
Show file tree
Hide file tree
Showing 3 changed files with 2,133 additions and 2,548 deletions.
10 changes: 5 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ const getConfig = async (filePath) => {
return null;
};

const phpScopedEditor = editor => (
editor.getCursors().some(cursor => (
cursor.getScopeDescriptor().getScopesArray().some(scope => (
const phpScopedEditor = (editor) => (
editor.getCursors().some((cursor) => (
cursor.getScopeDescriptor().getScopesArray().some((scope) => (
scope === phpEmbeddedScope
))
))
);

const removePHP = str => str.replace(/<\?(?:php|=)?(?:[\s\S])+?\?>/gi, (match) => {
const removePHP = (str) => str.replace(/<\?(?:php|=)?(?:[\s\S])+?\?>/gi, (match) => {
const newlines = match.match(/\r?\n|\r/g);
const newlineCount = newlines ? newlines.length : 0;

Expand Down Expand Up @@ -102,7 +102,7 @@ export default {
},

deactivate() {
this.idleCallbacks.forEach(callbackID => window.cancelIdleCallback(callbackID));
this.idleCallbacks.forEach((callbackID) => window.cancelIdleCallback(callbackID));
this.idleCallbacks.clear();
this.subscriptions.dispose();
},
Expand Down
Loading

0 comments on commit 6fdffdb

Please sign in to comment.