Code Duplication    Length = 7-8 lines in 2 locations

src/Syncer/Command/SyncTimings.php 2 locations

@@ 105-111 (lines=7) @@
102
                $timeEntrySent = false;
103
104
                // Log the entry if the client key exists
105
                if (is_array($this->clients)
106
                    && array_key_exists($timeEntry->getClient(), $this->clients)
107
                ) {
108
                    $this->logTask($timeEntry, $this->clients, $timeEntry->getClient());
109
110
                    $timeEntrySent = true;
111
                }
112
113
                // Log the entry if the project key exists
114
                if (is_array($this->projects)
@@ 114-121 (lines=8) @@
111
                }
112
113
                // Log the entry if the project key exists
114
                if (is_array($this->projects)
115
                    && array_key_exists($timeEntry->getProject(), $this->projects)
116
                    && !$timeEntrySent
117
                ) {
118
                    $this->logTask($timeEntry, $this->projects, $timeEntry->getProject());
119
120
                    $timeEntrySent = true;
121
                }
122
123
                if ($timeEntrySent) {
124
                    $this->io->success('TimeEntry ('. $timeEntry->getDescription() . ') sent to toggl');