Code Duplication    Length = 7-7 lines in 2 locations

src/Command/AbstractReadCommand.php 2 locations

@@ 129-135 (lines=7) @@
126
127
        } else {
128
            // check for options first
129
            if ($input->getOption(self::OPTION_TO)) {
130
                // test for valid format
131
                $tmpDate = strtotime($input->getOption(self::OPTION_TO));
132
                if ($tmpDate !== false) {
133
                    $toDate = $tmpDate;
134
                }
135
            }
136
            if ($input->getOption(self::OPTION_FROM)) {
137
                // test for valid format
138
                $tmpDate = strtotime($input->getOption(self::OPTION_FROM));
@@ 136-142 (lines=7) @@
133
                    $toDate = $tmpDate;
134
                }
135
            }
136
            if ($input->getOption(self::OPTION_FROM)) {
137
                // test for valid format
138
                $tmpDate = strtotime($input->getOption(self::OPTION_FROM));
139
                if ($tmpDate !== false) {
140
                    $fromDate = $tmpDate;
141
                }
142
            }
143
        }
144
145
        // check for an amount limiting keyword