From cdb0fb5aa05d9725887817776677edcedf0aefc5 Mon Sep 17 00:00:00 2001 From: Luca Patera Date: Sat, 9 Jan 2021 22:09:01 +0100 Subject: [PATCH] Removed useless checks --- src/Console/LarexExportCommand.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Console/LarexExportCommand.php b/src/Console/LarexExportCommand.php index 57d42a2..6736573 100644 --- a/src/Console/LarexExportCommand.php +++ b/src/Console/LarexExportCommand.php @@ -116,12 +116,6 @@ private function translate(): int //get first two columns values [$group, $key] = $columns; - //check if group is filled - if ($group === '') { - $this->warn("Missing group name at line {$line}. The row will be skipped."); - continue; - } - //check if key is filled if ($key === '') { $this->warn("Missing key name at line {$line}. The row will be skipped."); @@ -143,11 +137,6 @@ private function translate(): int "{$group}.{$key} at line {$line}, column {$column} ({$header[$j]}) " . "is missing. It will be skipped." ); - } catch (Exception $e) { - $this->warn( - "{$group}.{$key} at line {$line}, column {$column} ({$header[$j]}) " . - "is not valid. It will be skipped." - ); } }