Code Duplication    Length = 8-8 lines in 2 locations

source/Spiral/Storage/Servers/AmazonServer.php 1 location

@@ 82-89 (lines=8) @@
79
    /**
80
     * {@inheritdoc}
81
     */
82
    public function size(BucketInterface $bucket, $name)
83
    {
84
        if (empty($response = $this->exists($bucket, $name))) {
85
            return false;
86
        }
87
88
        return (int)$response->getHeaderLine('Content-Length');
89
    }
90
91
    /**
92
     * {@inheritdoc}

source/Spiral/Storage/Servers/RackspaceServer.php 1 location

@@ 131-138 (lines=8) @@
128
    /**
129
     * {@inheritdoc}
130
     */
131
    public function size(BucketInterface $bucket, $name)
132
    {
133
        if (empty($response = $this->exists($bucket, $name))) {
134
            return false;
135
        }
136
137
        return (int)$response->getHeaderLine('Content-Length');
138
    }
139
140
    /**
141
     * {@inheritdoc}