mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00

- add james-heinrich/getid3 library as a dependency to composer.json - update DEPENDENCIES.md file - fix episodes table migration script - add js devDependencies: prettier, @prettier/plugin-php and lint-staged to automatically format staged files before commit - reformat all files to the prettier format - refactor code by separating some logic as helper functions - overwrite existing files when uploading new files with the same name fixes #1
37 lines
987 B
PHP
37 lines
987 B
PHP
<?php namespace Config;
|
|
|
|
class Validation
|
|
{
|
|
//--------------------------------------------------------------------
|
|
// Setup
|
|
//--------------------------------------------------------------------
|
|
|
|
/**
|
|
* Stores the classes that contain the
|
|
* rules that are available.
|
|
*
|
|
* @var array
|
|
*/
|
|
public $ruleSets = [
|
|
\CodeIgniter\Validation\Rules::class,
|
|
\CodeIgniter\Validation\FormatRules::class,
|
|
\CodeIgniter\Validation\FileRules::class,
|
|
\CodeIgniter\Validation\CreditCardRules::class,
|
|
];
|
|
|
|
/**
|
|
* Specifies the views that are used to display the
|
|
* errors.
|
|
*
|
|
* @var array
|
|
*/
|
|
public $templates = [
|
|
'list' => 'CodeIgniter\Validation\Views\list',
|
|
'single' => 'CodeIgniter\Validation\Views\single',
|
|
];
|
|
|
|
//--------------------------------------------------------------------
|
|
// Rules
|
|
//--------------------------------------------------------------------
|
|
}
|