File tree Expand file tree Collapse file tree 4 files changed +21
-15
lines changed
src/org/netbeans/modules/php/phpcsfixer Expand file tree Collapse file tree 4 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 11Manifest-Version: 1.0
22OpenIDE-Module: org.netbeans.modules.php.phpcsfixer
33OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/php/phpcsfixer/Bundle.properties
4- OpenIDE-Module-Specification-Version: 0.4.3
5-
4+ OpenIDE-Module-Specification-Version: 0.5.2
Original file line number Diff line number Diff line change 102102 <specification-version >8.5.1</specification-version >
103103 </run-dependency >
104104 </dependency >
105+ <dependency >
106+ <code-name-base >org.openide.filesystems.nb</code-name-base >
107+ <build-prerequisite />
108+ <compile-dependency />
109+ <run-dependency >
110+ <specification-version >9.6.1</specification-version >
111+ </run-dependency >
112+ </dependency >
105113 <dependency >
106114 <code-name-base >org.openide.loaders</code-name-base >
107115 <build-prerequisite />
142150 <specification-version >8.19.1</specification-version >
143151 </run-dependency >
144152 </dependency >
153+ <dependency >
154+ <code-name-base >org.openide.util.ui</code-name-base >
155+ <build-prerequisite />
156+ <compile-dependency />
157+ <run-dependency >
158+ <specification-version >9.3.1</specification-version >
159+ </run-dependency >
160+ </dependency >
145161 </module-dependencies >
146162 <public-packages />
147163 </data >
Original file line number Diff line number Diff line change @@ -305,10 +305,7 @@ public String getPath() {
305305 boolean valid () {
306306 // TODO check whether form is consistent and complete
307307 String path = pathTextField .getText ();
308- if (StringUtils .isEmpty (path )) {
309- return false ;
310- }
311- return true ;
308+ return !StringUtils .isEmpty (path );
312309 }
313310 // Variables declaration - do not modify//GEN-BEGIN:variables
314311 private javax .swing .JButton browseButton ;
@@ -330,10 +327,7 @@ public boolean accept(File f) {
330327 return true ;
331328 }
332329 String name = f .getName ();
333- if (f .isFile () && name .startsWith (PhpCsFixer .NAME )) {
334- return true ;
335- }
336- return false ;
330+ return f .isFile () && name .startsWith (PhpCsFixer .NAME );
337331 }
338332
339333 @ Override
Original file line number Diff line number Diff line change 7171 @ ActionReference (path = "Loaders/folder/any/Actions" , position = 1600 ),
7272 @ ActionReference (path = "Loaders/text/x-php5/Actions" , position = 1600 ),
7373 @ ActionReference (path = "Editors/text/x-php5/Popup" , position = 600 ),
74- @ ActionReference (path = "Projects/org-netbeans-modules-php-phpproject /Actions" , position = 1100 )
74+ @ ActionReference (path = "Projects/org-netbeans-modules-php-project /Actions" , position = 1100 )
7575})
7676@ NbBundle .Messages ("PhpCsFixerActionsFactory.name=PHP CS Fixer" )
7777public class PhpCsFixerActionsFactory extends AbstractAction implements Presenter .Popup {
@@ -108,10 +108,7 @@ private boolean isInPhpModule() {
108108 return false ;
109109 }
110110 PhpModule phpModule = PhpModule .Factory .forFileObject (target );
111- if (phpModule == null ) {
112- return false ;
113- }
114- return true ;
111+ return phpModule != null ;
115112 }
116113
117114 //~ inner class
You can’t perform that action at this time.
0 commit comments