Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 95-102 (lines=8) @@
92
    /**
93
     * {@inheritdoc}
94
     */
95
    public function size(BucketInterface $bucket, $name)
96
    {
97
        if (empty($response = $this->exists($bucket, $name))) {
98
            return false;
99
        }
100
101
        return (int)$response->getHeaderLine('Content-Length');
102
    }
103
104
    /**
105
     * {@inheritdoc}

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

@@ 144-151 (lines=8) @@
141
    /**
142
     * {@inheritdoc}
143
     */
144
    public function size(BucketInterface $bucket, $name)
145
    {
146
        if (empty($response = $this->exists($bucket, $name))) {
147
            return false;
148
        }
149
150
        return (int)$response->getHeaderLine('Content-Length');
151
    }
152
153
    /**
154
     * {@inheritdoc}