]> git.mxchange.org Git - friendica.git/commitdiff
Fix code style
authorArt4 <art4@wlabs.de>
Thu, 15 May 2025 07:15:23 +0000 (07:15 +0000)
committerArt4 <art4@wlabs.de>
Thu, 15 May 2025 07:15:23 +0000 (07:15 +0000)
src/Core/Addon/AddonInfo.php
tests/Unit/Core/Addon/AddonInfoTest.php
tests/Unit/Core/Addon/AddonManagerHelperTest.php

index 87bb5750f52c9f34c648641bb31c6823c3478b15..60a4b6dc708499c4a2fc025243cde0a2a5987645 100644 (file)
@@ -155,7 +155,8 @@ final class AddonInfo
 
        private string $status = '';
 
-       private function __construct() {
+       private function __construct()
+       {
        }
 
        public function getId(): string
index 5e9d2cc79a6bc52b6898950ebb901336f9f0b8df..20eb654f3a5c52d459aa13b93a4869c19d665ea1 100644 (file)
@@ -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);
index 9dbbbdfdd0b699728d329e75e03b83dfe4df6b7f..fae0502474d3c90c90598ccdcbb0ad220ab7e8a4 100644 (file)
@@ -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,
                        ],
                ]);