Skip to content

Commit c6acaf5

Browse files
committed
Merge branch 'nb81'
Conflicts: manifest.mf
2 parents 97752ea + 69fabd4 commit c6acaf5

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

manifest.mf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Manifest-Version: 1.0
22
OpenIDE-Module: org.netbeans.modules.php.phpcsfixer
33
OpenIDE-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

nbproject/project.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@
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/>
@@ -142,6 +150,14 @@
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>

src/org/netbeans/modules/php/phpcsfixer/options/PhpCsFixerPanel.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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

src/org/netbeans/modules/php/phpcsfixer/ui/actions/PhpCsFixerActionsFactory.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
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")
7777
public 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

0 commit comments

Comments
 (0)