Code Duplication    Length = 9-9 lines in 8 locations

src/Resources/proxy/template.php 8 locations

@@ 57-65 (lines=9) @@
54
        return $event->result;
55
    }
56
57
    public function deleteItem($key)
58
    {
59
        $event = $this->start(__FUNCTION__, $key);
60
61
        try {
62
            return $event->result = parent::deleteItem($key);
63
        } finally {
64
            $event->end = microtime(true);
65
        }
66
    }
67
68
    public function save(CacheItemInterface $item)
@@ 68-76 (lines=9) @@
65
        }
66
    }
67
68
    public function save(CacheItemInterface $item)
69
    {
70
        $event = $this->start(__FUNCTION__, $item);
71
72
        try {
73
            return $event->result = parent::save($item);
74
        } finally {
75
            $event->end = microtime(true);
76
        }
77
    }
78
79
    public function saveDeferred(CacheItemInterface $item)
@@ 79-87 (lines=9) @@
76
        }
77
    }
78
79
    public function saveDeferred(CacheItemInterface $item)
80
    {
81
        $event = $this->start(__FUNCTION__, $item);
82
83
        try {
84
            return $event->result = parent::saveDeferred($item);
85
        } finally {
86
            $event->end = microtime(true);
87
        }
88
    }
89
90
    public function getItems(array $keys = [])
@@ 115-123 (lines=9) @@
112
        return $f();
113
    }
114
115
    public function clear()
116
    {
117
        $event = $this->start(__FUNCTION__);
118
119
        try {
120
            return $event->result = parent::clear();
121
        } finally {
122
            $event->end = microtime(true);
123
        }
124
    }
125
126
    public function deleteItems(array $keys)
@@ 126-134 (lines=9) @@
123
        }
124
    }
125
126
    public function deleteItems(array $keys)
127
    {
128
        $event = $this->start(__FUNCTION__, $keys);
129
130
        try {
131
            return $event->result = parent::deleteItems($keys);
132
        } finally {
133
            $event->end = microtime(true);
134
        }
135
    }
136
137
    public function commit()
@@ 137-145 (lines=9) @@
134
        }
135
    }
136
137
    public function commit()
138
    {
139
        $event = $this->start(__FUNCTION__);
140
141
        try {
142
            return $event->result = parent::commit();
143
        } finally {
144
            $event->end = microtime(true);
145
        }
146
    }
147
148
    public function invalidateTag($tag)
@@ 148-156 (lines=9) @@
145
        }
146
    }
147
148
    public function invalidateTag($tag)
149
    {
150
        $event = $this->start(__FUNCTION__, $tag);
151
152
        try {
153
            return $event->result = parent::invalidateTag($tag);
154
        } finally {
155
            $event->end = microtime(true);
156
        }
157
    }
158
159
    public function invalidateTags(array $tags)
@@ 159-167 (lines=9) @@
156
        }
157
    }
158
159
    public function invalidateTags(array $tags)
160
    {
161
        $event = $this->start(__FUNCTION__, $tags);
162
163
        try {
164
            return $event->result = parent::invalidateTags($tags);
165
        } finally {
166
            $event->end = microtime(true);
167
        }
168
    }
169
170
    public function __getCalls()