larastan: isset.variable

pull/6327/head
Your Name 5 days ago
parent 2f70b66a75
commit 867adc0ec9

@ -124,7 +124,7 @@ class StoryComposeController extends Controller
], 422);
}
} finally {
if (! $localFs && isset($tempPath) && file_exists($tempPath)) {
if (! $localFs && file_exists($tempPath)) {
unlink($tempPath);
}
}

@ -248,7 +248,7 @@ class Validator extends Regex
preg_match(self::$patterns['valid_mentions_or_lists'], $list, $matches);
$matches = array_pad($matches, 5, '');
return isset($matches) && $matches[1] === '' && $matches[4] && !empty($matches[4]) && $matches[5] === '';
return $matches[1] === '' && $matches[4] && !empty($matches[4]) && $matches[5] === '';
}
/**

Loading…
Cancel
Save