-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #695 from ctietze/bugfix/674-cant-move-mp3
Bugfix #674 cant move / edit mp3
- Loading branch information
Showing
7 changed files
with
270 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
namespace JukeBox\Utils; | ||
|
||
/** | ||
* Util class containing File functions | ||
* @package JukeBox\Utils | ||
*/ | ||
class Files { | ||
|
||
/** | ||
* Build path depending on the system directory separator | ||
* @param string $pieces the file pieces | ||
* @return string the filepath | ||
*/ | ||
public static function buildPath(...$pieces) { | ||
return implode(DIRECTORY_SEPARATOR, $pieces); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
namespace JukeBox\Utils; | ||
|
||
/** | ||
* Util class containing String functions | ||
* @package JukeBox\Utils | ||
*/ | ||
class Strings { | ||
|
||
/** | ||
* Check if the ... | ||
* @param string $haystack contains the ... | ||
* @param string $needle and | ||
* @return bool return true if found | ||
*/ | ||
public static function startsWith($haystack, $needle) { | ||
|
||
$length = strlen($needle); | ||
return (substr($haystack, 0, $length) === $needle); | ||
} | ||
} |
Oops, something went wrong.