1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 14:42:31 +01:00
flox/backend/app/helpers.php
Viktor Geringer 74f733710e Implement refresh data (#81)
* update translations

* split helper file

* implement refresh informations

* add tests

* update production files

* move refresh all to a seperate request

* update production files
2017-07-28 11:37:33 +02:00

21 lines
388 B
PHP

<?php
function increaseTimeLimit()
{
set_time_limit(config('app.PHP_TIME_LIMIT'));
}
function getFileName($file)
{
return $file->changed->name ?? $file->name;
}
function mediaType($mediaType)
{
return $mediaType == 'movies' ? 'movie' : 'tv';
}
function getSlug($title)
{
return str_slug($title) != '' ? str_slug($title) : 'no-slug-available';
}