Code Duplication    Length = 9-9 lines in 2 locations

src/EventSubscriber/HttpCacheEventSubscriber.php 2 locations

@@ 137-145 (lines=9) @@
134
            return;
135
        }
136
137
        if (null !== $age = $configuration->getSMaxAge()) {
138
            if (!is_numeric($age)) {
139
                $now = microtime(true);
140
141
                $age = ceil(
142
                  strtotime($configuration->getSMaxAge(), $now) - $now
143
                );
144
            }
145
146
            $response->setSharedMaxAge($age);
147
        }
148
@@ 149-157 (lines=9) @@
146
            $response->setSharedMaxAge($age);
147
        }
148
149
        if (null !== $age = $configuration->getMaxAge()) {
150
            if (!is_numeric($age)) {
151
                $now = microtime(true);
152
153
                $age = ceil(
154
                  strtotime($configuration->getMaxAge(), $now) - $now
155
                );
156
            }
157
158
            $response->setMaxAge($age);
159
        }
160