Passed
Push — master ( 4ac39c...ddccf7 )
by Alain
03:15
created
src/View/Support/URIHelper.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -22,38 +22,38 @@
 block discarded – undo
22 22
 class URIHelper
23 23
 {
24 24
 
25
-    /**
26
-     * Check whether a given URI has a specific extension.
27
-     *
28
-     * @since 0.1.3
29
-     *
30
-     * @param string $uri       URI to check the extension of.
31
-     * @param string $extension Extension to check for.
32
-     *
33
-     * @return bool
34
-     */
35
-    public static function hasExtension($uri, $extension)
36
-    {
37
-        $uriLength       = mb_strlen($uri);
38
-        $extensionLength = mb_strlen($extension);
39
-        if ($extensionLength > $uriLength) {
40
-            return false;
41
-        }
25
+	/**
26
+	 * Check whether a given URI has a specific extension.
27
+	 *
28
+	 * @since 0.1.3
29
+	 *
30
+	 * @param string $uri       URI to check the extension of.
31
+	 * @param string $extension Extension to check for.
32
+	 *
33
+	 * @return bool
34
+	 */
35
+	public static function hasExtension($uri, $extension)
36
+	{
37
+		$uriLength       = mb_strlen($uri);
38
+		$extensionLength = mb_strlen($extension);
39
+		if ($extensionLength > $uriLength) {
40
+			return false;
41
+		}
42 42
 
43
-        return substr_compare($uri, $extension, $uriLength - $extensionLength, $extensionLength) === 0;
44
-    }
43
+		return substr_compare($uri, $extension, $uriLength - $extensionLength, $extensionLength) === 0;
44
+	}
45 45
 
46
-    /**
47
-     * Get the filename for an URI.
48
-     *
49
-     * @since 0.1.3
50
-     *
51
-     * @param string $uri URI to get the filename from.
52
-     *
53
-     * @return string Filename without path.
54
-     */
55
-    public static function getFilename($uri)
56
-    {
57
-        return basename($uri);
58
-    }
46
+	/**
47
+	 * Get the filename for an URI.
48
+	 *
49
+	 * @since 0.1.3
50
+	 *
51
+	 * @param string $uri URI to get the filename from.
52
+	 *
53
+	 * @return string Filename without path.
54
+	 */
55
+	public static function getFilename($uri)
56
+	{
57
+		return basename($uri);
58
+	}
59 59
 }
Please login to merge, or discard this patch.
src/View/Support/ExtensionCollection.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -24,24 +24,24 @@
 block discarded – undo
24 24
 class ExtensionCollection extends ArrayCollection
25 25
 {
26 26
 
27
-    /**
28
-     * Check whether a given URI has a specific extension.
29
-     *
30
-     * @since 0.1.0
31
-     *
32
-     * @param string $uri       URI to check the extension of.
33
-     * @param string $extension Extension to check for.
34
-     *
35
-     * @return bool
36
-     */
37
-    public static function hasExtension($uri, $extension)
38
-    {
39
-        $uriLength       = mb_strlen($uri);
40
-        $extensionLength = mb_strlen($extension);
41
-        if ($extensionLength > $uriLength) {
42
-            return false;
43
-        }
27
+	/**
28
+	 * Check whether a given URI has a specific extension.
29
+	 *
30
+	 * @since 0.1.0
31
+	 *
32
+	 * @param string $uri       URI to check the extension of.
33
+	 * @param string $extension Extension to check for.
34
+	 *
35
+	 * @return bool
36
+	 */
37
+	public static function hasExtension($uri, $extension)
38
+	{
39
+		$uriLength       = mb_strlen($uri);
40
+		$extensionLength = mb_strlen($extension);
41
+		if ($extensionLength > $uriLength) {
42
+			return false;
43
+		}
44 44
 
45
-        return substr_compare($uri, $extension, $uriLength - $extensionLength, $extensionLength) === 0;
46
-    }
45
+		return substr_compare($uri, $extension, $uriLength - $extensionLength, $extensionLength) === 0;
46
+	}
47 47
 }
Please login to merge, or discard this patch.