Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 13, 2019. It is now read-only.

Commit 9280f97

Browse files
committed
Fix: change config empty checking
1 parent aec64ab commit 9280f97

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎Plugin/Deployer.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,21 @@ protected function getOptions($config)
142142
{
143143
$options = [];
144144

145-
if ($config['task'] != null) {
145+
if (!empty($config['task'])) {
146146
$options[] = $config['task'];
147147
} else {
148148
$options[] = 'deploy';
149149
}
150150

151-
if ($config['stage'] != null) {
151+
if (empty($config['stage'])) {
152152
$options[] = $config['stage'];
153153
}
154154

155-
if ($config['verbosity'] != null) {
155+
if (empty($config['verbosity'])) {
156156
$options[] = $this->getVerbosityOption($config['verbosity']);
157157
}
158158

159-
if ($config['file'] != null) {
159+
if (empty($config['file'])) {
160160
$options[] = '--file=' . $config['file'];
161161
}
162162

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /