We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac07587 + f7c16d1 commit d402504Copy full SHA for d402504
src/GitWrapper/GitCommand.php
@@ -272,7 +272,7 @@ public function setFlag($option)
272
*/
273
public function getOption($option, $default = null)
274
{
275
- return (isset($this->options[$option])) ? $this->options[$option] : $default;
+ return $this->options[$option] ?? $default;
276
}
277
278
/**
src/GitWrapper/GitWrapper.php
@@ -180,7 +180,7 @@ public function unsetEnvVar($var)
180
181
public function getEnvVar($var, $default = null)
182
183
- return isset($this->env[$var]) ? $this->env[$var] : $default;
+ return $this->env[$var] ?? $default;
184
185
186
0 commit comments