Code Duplication    Length = 4-4 lines in 2 locations

src/Request/Batch.php 1 location

@@ 106-109 (lines=4) @@
103
            $optional .= pack('n', $options['serial_consistency']);
104
        }
105
    
106
        if (isset($options['default_timestamp'])) {
107
            $flags |= Query::FLAG_WITH_DEFAULT_TIMESTAMP;
108
            $optional .= Type\Bigint::binary($options['default_timestamp']);
109
        }
110
    
111
        if (!empty($options['names_for_values'])){
112
            /**

src/Request/Request.php 1 location

@@ 199-202 (lines=4) @@
196
            $optional .= pack('n', $options['serial_consistency']);
197
        }
198
199
        if (isset($options['default_timestamp'])) {
200
            $flags |= Query::FLAG_WITH_DEFAULT_TIMESTAMP;
201
            $optional .= Type\Bigint::binary($options['default_timestamp']);
202
        }
203
204
        if (!empty($options['names_for_values']))
205
            $flags |= Query::FLAG_WITH_NAMES_FOR_VALUES;