Code Duplication    Length = 3-3 lines in 2 locations

src/cli/Database/Base/Connection.php 1 location

@@ 877-879 (lines=3) @@
874
                    case 'peer':
875
                        $stmt->bindValue($identifier, $this->peer, PDO::PARAM_STR);
876
                        break;
877
                    case 'started':
878
                        $stmt->bindValue($identifier, $this->started ? $this->started->format("Y-m-d H:i:s") : null, PDO::PARAM_STR);
879
                        break;
880
                    case 'type':
881
                        $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR);
882
                        break;

src/cli/Database/Base/Subscription.php 1 location

@@ 1109-1111 (lines=3) @@
1106
                    case 'subscription_id':
1107
                        $stmt->bindValue($identifier, $this->subscription_id, PDO::PARAM_INT);
1108
                        break;
1109
                    case 'started':
1110
                        $stmt->bindValue($identifier, $this->started ? $this->started->format("Y-m-d H:i:s") : null, PDO::PARAM_STR);
1111
                        break;
1112
                    case 'stopped':
1113
                        $stmt->bindValue($identifier, $this->stopped ? $this->stopped->format("Y-m-d H:i:s") : null, PDO::PARAM_STR);
1114
                        break;