mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 11:54:31 +02:00
Fix code style
This commit is contained in:
parent
075e9eaaa9
commit
44c8cd118c
3 changed files with 24 additions and 23 deletions
|
@ -155,7 +155,8 @@ final class AddonInfo
|
|||
|
||||
private string $status = '';
|
||||
|
||||
private function __construct() {
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
public function getId(): string
|
||||
|
|
|
@ -41,15 +41,15 @@ class AddonInfoTest extends TestCase
|
|||
*/
|
||||
TEXT,
|
||||
[
|
||||
'id' => 'test',
|
||||
'name' => 'Test Addon',
|
||||
'id' => 'test',
|
||||
'name' => 'Test Addon',
|
||||
'description' => 'adds awesome features to friendica',
|
||||
|
||||
'maintainers' => [
|
||||
['name' => 'Robin'],
|
||||
],
|
||||
'version' => '100.4.50-beta.5',
|
||||
'status' => 'beta',
|
||||
'status' => 'beta',
|
||||
],
|
||||
],
|
||||
'without-maintainer' => [
|
||||
|
@ -66,14 +66,14 @@ class AddonInfoTest extends TestCase
|
|||
*/
|
||||
TEXT,
|
||||
[
|
||||
'id' => 'test',
|
||||
'name' => 'Test Addon',
|
||||
'id' => 'test',
|
||||
'name' => 'Test Addon',
|
||||
'description' => 'adds awesome features to friendica',
|
||||
'authors' => [
|
||||
'authors' => [
|
||||
['name' => 'Sam'],
|
||||
],
|
||||
'version' => '100.4.50-beta.5',
|
||||
'status' => 'beta',
|
||||
'status' => 'beta',
|
||||
],
|
||||
],
|
||||
'complete' => [
|
||||
|
@ -93,10 +93,10 @@ class AddonInfoTest extends TestCase
|
|||
*/
|
||||
TEXT,
|
||||
[
|
||||
'id' => 'test',
|
||||
'name' => 'Test Addon',
|
||||
'id' => 'test',
|
||||
'name' => 'Test Addon',
|
||||
'description' => 'adds awesome features to friendica',
|
||||
'authors' => [
|
||||
'authors' => [
|
||||
['name' => 'Sam'],
|
||||
['name' => 'Sam With Mail', 'link' => 'mail@example.org'],
|
||||
],
|
||||
|
@ -105,7 +105,7 @@ class AddonInfoTest extends TestCase
|
|||
['name' => 'Robin With Profile', 'link' => 'https://example.org/profile/robin'],
|
||||
],
|
||||
'version' => '100.4.50-beta.5',
|
||||
'status' => 'beta',
|
||||
'status' => 'beta',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
@ -155,13 +155,13 @@ class AddonInfoTest extends TestCase
|
|||
);
|
||||
|
||||
$data = [
|
||||
'id' => $info->getId(),
|
||||
'name' => $info->getName(),
|
||||
'id' => $info->getId(),
|
||||
'name' => $info->getName(),
|
||||
'description' => $info->getDescription(),
|
||||
'authors' => $info->getAuthors(),
|
||||
'authors' => $info->getAuthors(),
|
||||
'maintainers' => $info->getMaintainers(),
|
||||
'version' => $info->getVersion(),
|
||||
'status' => $info->getStatus(),
|
||||
'version' => $info->getVersion(),
|
||||
'status' => $info->getStatus(),
|
||||
];
|
||||
|
||||
$this->assertSame($expected, $data);
|
||||
|
|
|
@ -60,7 +60,7 @@ class AddonManagerHelperTest extends TestCase
|
|||
$config->method('get')->willReturn([
|
||||
'helloaddon' => [
|
||||
'last_update' => 1738760499,
|
||||
'admin' => false,
|
||||
'admin' => false,
|
||||
],
|
||||
]);
|
||||
|
||||
|
@ -90,7 +90,7 @@ class AddonManagerHelperTest extends TestCase
|
|||
$config->method('get')->willReturn([
|
||||
'helloaddon' => [
|
||||
'last_update' => 1738760499,
|
||||
'admin' => false,
|
||||
'admin' => false,
|
||||
],
|
||||
]);
|
||||
|
||||
|
@ -114,11 +114,11 @@ class AddonManagerHelperTest extends TestCase
|
|||
$config->method('get')->willReturn([
|
||||
'helloaddon' => [
|
||||
'last_update' => 1738760499,
|
||||
'admin' => false,
|
||||
'admin' => false,
|
||||
],
|
||||
'addonwithadminsettings' => [
|
||||
'last_update' => 1738760499,
|
||||
'admin' => true,
|
||||
'admin' => true,
|
||||
],
|
||||
]);
|
||||
|
||||
|
@ -360,7 +360,7 @@ class AddonManagerHelperTest extends TestCase
|
|||
$config->method('get')->willReturn([
|
||||
'helloaddon' => [
|
||||
'last_update' => 1234567890,
|
||||
'admin' => false,
|
||||
'admin' => false,
|
||||
],
|
||||
]);
|
||||
|
||||
|
@ -406,7 +406,7 @@ class AddonManagerHelperTest extends TestCase
|
|||
$config->method('get')->willReturn([
|
||||
$addonName => [
|
||||
'last_update' => 0,
|
||||
'admin' => false,
|
||||
'admin' => false,
|
||||
],
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue