Skip to content

Commit 62bff7e

Browse files
committed
fix: Shorten the syntax
1 parent c564374 commit 62bff7e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎system/Commands/Translation/LocalizationFinder.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public function run(array $params)
4949
{
5050
$this->verbose = array_key_exists('verbose', $params);
5151
$this->showNew = array_key_exists('show-new', $params);
52-
$optionLocale = ! empty($params['locale']) ? $params['locale'] : null;
53-
$optionDir = ! empty($params['dir']) ? $params['dir'] : null;
52+
$optionLocale = $params['locale'] ?? null;
53+
$optionDir = $params['dir'] ?? null;
5454
$currentLocale = Locale::getDefault();
5555
$currentDir = APPPATH;
5656
$this->languagePath = $currentDir . 'Language';

0 commit comments

Comments
 (0)