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

@@ 1041-1043 (lines=3) @@
1038
                    case 'subscription_id':
1039
                        $stmt->bindValue($identifier, $this->subscription_id, PDO::PARAM_INT);
1040
                        break;
1041
                    case 'started':
1042
                        $stmt->bindValue($identifier, $this->started ? $this->started->format("Y-m-d H:i:s") : null, PDO::PARAM_STR);
1043
                        break;
1044
                    case 'stopped':
1045
                        $stmt->bindValue($identifier, $this->stopped ? $this->stopped->format("Y-m-d H:i:s") : null, PDO::PARAM_STR);
1046
                        break;