Upgrade to 4.0.0
This commit is contained in:
@@ -20,8 +20,6 @@ class LanguageRules
|
||||
/**
|
||||
* Validates if the language can be created
|
||||
*
|
||||
* @param \Kirby\Cms\Language $language
|
||||
* @return bool
|
||||
* @throws \Kirby\Exception\DuplicateException If the language already exists
|
||||
*/
|
||||
public static function create(Language $language): bool
|
||||
@@ -43,8 +41,6 @@ class LanguageRules
|
||||
|
||||
/**
|
||||
* Validates if the language can be updated
|
||||
*
|
||||
* @param \Kirby\Cms\Language $language
|
||||
*/
|
||||
public static function update(Language $language)
|
||||
{
|
||||
@@ -55,8 +51,6 @@ class LanguageRules
|
||||
/**
|
||||
* Validates if the language code is formatted correctly
|
||||
*
|
||||
* @param \Kirby\Cms\Language $language
|
||||
* @return bool
|
||||
* @throws \Kirby\Exception\InvalidArgumentException If the language code is not valid
|
||||
*/
|
||||
public static function validLanguageCode(Language $language): bool
|
||||
@@ -77,8 +71,6 @@ class LanguageRules
|
||||
/**
|
||||
* Validates if the language name is formatted correctly
|
||||
*
|
||||
* @param \Kirby\Cms\Language $language
|
||||
* @return bool
|
||||
* @throws \Kirby\Exception\InvalidArgumentException If the language name is invalid
|
||||
*/
|
||||
public static function validLanguageName(Language $language): bool
|
||||
|
||||
Reference in New Issue
Block a user