Skip to content

Commit 3f4d2c8

Browse files
jbrooksuktomschlick
authored andcommitted
Remove dead break statements (#14)
1 parent 4a7dbaf commit 3f4d2c8

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/HttpPush.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,9 @@ public static function getTypeByExtension(string $resourcePath) : string
7272
$parts = explode('.', $resourcePath);
7373
$extension = end($parts);
7474
switch ($extension) {
75-
case 'css':
76-
return 'style';
77-
break;
78-
79-
case 'js':
80-
return 'script';
81-
break;
82-
83-
default:
84-
return 'image';
85-
break;
75+
case 'css': return 'style';
76+
case 'js': return 'script';
77+
default: return 'image';
8678
}
8779
}
8880
}

0 commit comments

Comments
 (0)