Code Duplication    Length = 3-3 lines in 2 locations

Service/TenantResolver.php 2 locations

@@ 91-93 (lines=3) @@
88
89
        $subdomain = null;
90
91
        if (count($parts) === 1 && $parts[0] !== 'www') {
92
            $subdomain = $parts[0];
93
        }
94
95
        return !empty($subdomain);
96
    }
@@ 157-159 (lines=3) @@
154
155
        $subdomain = null;
156
157
        if (count($parts) === 1 && $parts[0] !== 'www') {
158
            $subdomain = $parts[0];
159
        }
160
161
        $tenant = $this->tenantRepository->findOneBy(array('subdomain' => $subdomain));
162