Completed
Push — master ( 52ee14...16f440 )
by Manuel
11:23 queued 08:50
created
app/Utilities/ExtractNetwork.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -4,27 +4,27 @@
 block discarded – undo
4 4
 
5 5
 class ExtractNetwork
6 6
 {
7
-    /**
8
-     * Extract the network from the ip address.
9
-     *
10
-     * @param string $ip
11
-     *
12
-     * @return string $network
13
-     */
14
-    public static function fromIp($ip)
15
-    {
16
-        if (starts_with($ip, '192.168.')) {
17
-            return '192.168.0.0/16';
18
-        }
7
+	/**
8
+	 * Extract the network from the ip address.
9
+	 *
10
+	 * @param string $ip
11
+	 *
12
+	 * @return string $network
13
+	 */
14
+	public static function fromIp($ip)
15
+	{
16
+		if (starts_with($ip, '192.168.')) {
17
+			return '192.168.0.0/16';
18
+		}
19 19
 
20
-        if (starts_with($ip, '10.')) {
21
-            return '10.0.0.0/8';
22
-        }
20
+		if (starts_with($ip, '10.')) {
21
+			return '10.0.0.0/8';
22
+		}
23 23
 
24
-        if (preg_match('/^172\.(1[6-9]|2[0-9]|3[01])\./', $ip)) {
25
-            return '172.16.0.0/12';
26
-        }
24
+		if (preg_match('/^172\.(1[6-9]|2[0-9]|3[01])\./', $ip)) {
25
+			return '172.16.0.0/12';
26
+		}
27 27
 
28
-        return 'Internet';
29
-    }
28
+		return 'Internet';
29
+	}
30 30
 }
Please login to merge, or discard this patch.