mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 20:20:34 +09:00
Add type hints for Laravel 10
This commit is contained in:
@@ -12,7 +12,7 @@ class SettingsSeederTest extends TestCase
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function test_returns_a_jsonmap_with_same_amount_of_items_as_language_directories_present()
|
||||
public function test_returns_a_jsonmap_with_same_amount_of_items_as_language_directories_present(): void
|
||||
{
|
||||
$languageDirectories = array_filter(glob(resource_path().'/lang/*'), 'is_dir');
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class IsImageTest extends TestCase
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function test_returns_true_when_file_is_image()
|
||||
public function test_returns_true_when_file_is_image(): void
|
||||
{
|
||||
$file = file_get_contents(__DIR__ . '/fixtures/heimdall-icon-small.png');
|
||||
|
||||
@@ -21,7 +21,7 @@ class IsImageTest extends TestCase
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function test_returns_false_when_file_extension_is_image_but_content_is_not()
|
||||
public function test_returns_false_when_file_extension_is_image_but_content_is_not(): void
|
||||
{
|
||||
$actual = isImage("<?php ?>", "png");
|
||||
|
||||
@@ -31,7 +31,7 @@ class IsImageTest extends TestCase
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function test_returns_false_when_file_extension_is_not_image_but_content_is()
|
||||
public function test_returns_false_when_file_extension_is_not_image_but_content_is(): void
|
||||
{
|
||||
$file = file_get_contents(__DIR__ . '/fixtures/heimdall-icon-small.png');
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class SlugTest extends TestCase
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function test_slug_returns_valid_tag_for_cn_characters_when_language_is_set_to_en_US()
|
||||
public function test_slug_returns_valid_tag_for_cn_characters_when_language_is_set_to_en_US(): void
|
||||
{
|
||||
$tag = str_slug('中文測試', '-', 'en_US');
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class LangTest extends TestCase
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function test_all_language_keys_are_defined()
|
||||
public function test_all_language_keys_are_defined(): void
|
||||
{
|
||||
$this->markTestSkipped('2022-11-14 Lot of keys missing. Enable this test to see them all.');
|
||||
$languageDirectories = array_filter(glob(resource_path().'/lang/*'), 'is_dir');
|
||||
|
||||
Reference in New Issue
Block a user