Code Duplication    Length = 7-7 lines in 2 locations

src/storage/storage/DocumentTypesStorage.php 1 location

@@ 117-123 (lines=7) @@
114
        $this->save();
115
    }
116
117
    private function getBricks()
118
    {
119
        if (!$this->bricks instanceof BricksStorage) {
120
            $this->bricks = new BricksStorage($this->repository);
121
        }
122
        return $this->bricks;
123
    }
124
}

src/storage/Storage.php 1 location

@@ 217-223 (lines=7) @@
214
        /**
215
         * @return BricksStorage
216
         */
217
        public function getBricks()
218
        {
219
            if (!$this->bricks instanceof BricksStorage) {
220
                $this->bricks = new BricksStorage($this->repository);
221
            }
222
            return $this->bricks;
223
        }
224
225
        /**
226
         * Get the image set