Code Duplication    Length = 7-7 lines in 2 locations

src/Command/Show.php 2 locations

@@ 142-148 (lines=7) @@
139
140
        } else {
141
            // check for options first
142
            if ($input->getOption(self::OPTION_TO)) {
143
                // test for valid format
144
                $tmpDate = strtotime($input->getOption(self::OPTION_TO));
145
                if ($tmpDate !== false) {
146
                    $toDate = $tmpDate;
147
                }
148
            }
149
            if ($input->getOption(self::OPTION_FROM)) {
150
                // test for valid format
151
                $tmpDate = strtotime($input->getOption(self::OPTION_FROM));
@@ 149-155 (lines=7) @@
146
                    $toDate = $tmpDate;
147
                }
148
            }
149
            if ($input->getOption(self::OPTION_FROM)) {
150
                // test for valid format
151
                $tmpDate = strtotime($input->getOption(self::OPTION_FROM));
152
                if ($tmpDate !== false) {
153
                    $fromDate = $tmpDate;
154
                }
155
            }
156
        }
157
158
        // check for an amount limiting keyword