Code Duplication    Length = 9-9 lines in 2 locations

src/DeviceDetector.php 2 locations

@@ 33-41 (lines=9) @@
30
     * @param UserAgent $userAgent
31
     * @return bool
32
     */
33
    private static function checkIpad(Device $device, UserAgent $userAgent)
34
    {
35
        if (stripos($userAgent->getUserAgentString(), 'ipad') !== false) {
36
            $device->setName(Device::IPAD);
37
            return true;
38
        }
39
40
        return false;
41
    }
42
43
    /**
44
     * Determine if the device is iPhone.
@@ 50-58 (lines=9) @@
47
     * @param UserAgent $userAgent
48
     * @return bool
49
     */
50
    private static function checkIphone(Device $device, UserAgent $userAgent)
51
    {
52
        if (stripos($userAgent->getUserAgentString(), 'iphone;') !== false) {
53
            $device->setName(Device::IPHONE);
54
            return true;
55
        }
56
57
        return false;
58
    }
59
60
    /**
61
     * Determine if the device is Windows Phone.