Passed
Pull Request — main (#1)
by Roman
02:09
created
src/View/Components/Widgets/CardWidget.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -7,24 +7,24 @@
 block discarded – undo
7 7
 class CardWidget extends Component
8 8
 {
9 9
 
10
-    protected static string $name = 'card-widget';
10
+	protected static string $name = 'card-widget';
11 11
 
12
-    public function __construct(public string $title, public string $description)
13
-    {
14
-    }
12
+	public function __construct(public string $title, public string $description)
13
+	{
14
+	}
15 15
 
16
-    /**
17
-     * @inheritDoc
18
-     */
19
-    public function render(): string
20
-    {
21
-        return view(
22
-            sprintf(
23
-                '%s::%s',
24
-                CoreServiceProvider::VIEWS_NAMESPACE,
25
-                'elements.widgets.simple-card'
26
-            )
27
-        )
28
-            ->render();
29
-    }
16
+	/**
17
+	 * @inheritDoc
18
+	 */
19
+	public function render(): string
20
+	{
21
+		return view(
22
+			sprintf(
23
+				'%s::%s',
24
+				CoreServiceProvider::VIEWS_NAMESPACE,
25
+				'elements.widgets.simple-card'
26
+			)
27
+		)
28
+			->render();
29
+	}
30 30
 }
31 31
\ No newline at end of file
Please login to merge, or discard this patch.
src/View/Components/ComponentRegistrar.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -7,20 +7,20 @@
 block discarded – undo
7 7
 
8 8
 final class ComponentRegistrar
9 9
 {
10
-    private array $components = [
11
-        CardWidget::class
12
-    ];
10
+	private array $components = [
11
+		CardWidget::class
12
+	];
13 13
 
14
-    public function register(): void
15
-    {
16
-        array_map(
17
-            fn(string $class) => Blade::component(
18
-                forward_static_call(
19
-                    sprintf('%s::getComponentName', $class)
20
-                ),
21
-                $class
22
-            ),
23
-            $this->components
24
-        );
25
-    }
14
+	public function register(): void
15
+	{
16
+		array_map(
17
+			fn(string $class) => Blade::component(
18
+				forward_static_call(
19
+					sprintf('%s::getComponentName', $class)
20
+				),
21
+				$class
22
+			),
23
+			$this->components
24
+		);
25
+	}
26 26
 }
27 27
\ No newline at end of file
Please login to merge, or discard this patch.