Passed
Push — main ( 80eaa4...6887aa )
by Roman
04:54 queued 02:32
created
src/lang/en/mdp.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -1,46 +1,46 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'labels' => [
5
-        'fixed-plugin' => [
6
-            'sidebar_filter' => 'Sidebar Filter',
7
-            'sidebar_background' => 'Sidebar Background',
8
-            'images' => 'Images',
9
-        ],
10
-        'nav_bar' => [
11
-            'toggle_nav' => 'Toggle Navigation',
12
-            'search' => [
13
-                'placeholder' => 'Search...',
14
-            ],
15
-            'profile' => 'Profile',
16
-            'settings' => 'Settings',
17
-            'log_out' => 'Log Out',
18
-        ],
19
-        'auth' => [
20
-            'sign_up' => 'Sign Up',
21
-            'sign_in' => 'Sign In',
22
-        ]
23
-    ],
24
-    'layouts' => [
25
-        'user' => [
26
-            'auth-v1' => [
27
-                'sign_up' => 'Sign Up',
28
-                'sign_in' => 'Sign In',
29
-            ]
30
-        ]
31
-    ],
32
-    'forms' => [
33
-        'user' => [
34
-            'labels' => [
35
-                'sign_in' => 'Login',
36
-                'submit' => 'Let\'s Go'
37
-            ],
38
-            'sign_in' => [
39
-                'placeholders' => [
40
-                    'email' => 'ex. [email protected]',
41
-                    'password' => '********'
42
-                ]
43
-            ]
44
-        ]
45
-    ]
4
+	'labels' => [
5
+		'fixed-plugin' => [
6
+			'sidebar_filter' => 'Sidebar Filter',
7
+			'sidebar_background' => 'Sidebar Background',
8
+			'images' => 'Images',
9
+		],
10
+		'nav_bar' => [
11
+			'toggle_nav' => 'Toggle Navigation',
12
+			'search' => [
13
+				'placeholder' => 'Search...',
14
+			],
15
+			'profile' => 'Profile',
16
+			'settings' => 'Settings',
17
+			'log_out' => 'Log Out',
18
+		],
19
+		'auth' => [
20
+			'sign_up' => 'Sign Up',
21
+			'sign_in' => 'Sign In',
22
+		]
23
+	],
24
+	'layouts' => [
25
+		'user' => [
26
+			'auth-v1' => [
27
+				'sign_up' => 'Sign Up',
28
+				'sign_in' => 'Sign In',
29
+			]
30
+		]
31
+	],
32
+	'forms' => [
33
+		'user' => [
34
+			'labels' => [
35
+				'sign_in' => 'Login',
36
+				'submit' => 'Let\'s Go'
37
+			],
38
+			'sign_in' => [
39
+				'placeholders' => [
40
+					'email' => 'ex. [email protected]',
41
+					'password' => '********'
42
+				]
43
+			]
44
+		]
45
+	]
46 46
 ];
47 47
\ No newline at end of file
Please login to merge, or discard this patch.
src/lang/kz/mdp.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -1,46 +1,46 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'labels' => [
5
-        'fixed-plugin' => [
6
-            'sidebar_filter' => 'Бүйірлік тақта сүзгісі',
7
-            'sidebar_background' => 'Бүйірлік тақтаның фоны',
8
-            'images' => 'Суреттер',
9
-        ],
10
-        'nav_bar' => [
11
-            'toggle_nav' => 'Навигацияны ауыстыру',
12
-            'search' => [
13
-                'placeholder' => 'Іздеу...',
14
-            ],
15
-            'profile' => 'Профиль',
16
-            'settings' => 'Параметрлер',
17
-            'log_out' => 'Жүйеден шығу',
18
-        ],
19
-        'auth' => [
20
-            'sign_up' => 'Тіркелу',
21
-            'sign_in' => 'Кіру',
22
-        ]
23
-    ],
24
-    'layouts' => [
25
-        'user' => [
26
-            'auth-v1' => [
27
-                'sign_up' => 'Тіркелу',
28
-                'sign_in' => 'Кіру',
29
-            ]
30
-        ]
31
-    ],
32
-    'forms' => [
33
-        'user' => [
34
-            'labels' => [
35
-                'sign_in' => 'Логин',
36
-                'submit' => 'Жүйеге кіру'
37
-            ],
38
-            'sign_in' => [
39
-                'placeholders' => [
40
-                    'email' => '[email protected]',
41
-                    'password' => '********'
42
-                ]
43
-            ]
44
-        ]
45
-    ]
4
+	'labels' => [
5
+		'fixed-plugin' => [
6
+			'sidebar_filter' => 'Бүйірлік тақта сүзгісі',
7
+			'sidebar_background' => 'Бүйірлік тақтаның фоны',
8
+			'images' => 'Суреттер',
9
+		],
10
+		'nav_bar' => [
11
+			'toggle_nav' => 'Навигацияны ауыстыру',
12
+			'search' => [
13
+				'placeholder' => 'Іздеу...',
14
+			],
15
+			'profile' => 'Профиль',
16
+			'settings' => 'Параметрлер',
17
+			'log_out' => 'Жүйеден шығу',
18
+		],
19
+		'auth' => [
20
+			'sign_up' => 'Тіркелу',
21
+			'sign_in' => 'Кіру',
22
+		]
23
+	],
24
+	'layouts' => [
25
+		'user' => [
26
+			'auth-v1' => [
27
+				'sign_up' => 'Тіркелу',
28
+				'sign_in' => 'Кіру',
29
+			]
30
+		]
31
+	],
32
+	'forms' => [
33
+		'user' => [
34
+			'labels' => [
35
+				'sign_in' => 'Логин',
36
+				'submit' => 'Жүйеге кіру'
37
+			],
38
+			'sign_in' => [
39
+				'placeholders' => [
40
+					'email' => '[email protected]',
41
+					'password' => '********'
42
+				]
43
+			]
44
+		]
45
+	]
46 46
 ];
47 47
\ No newline at end of file
Please login to merge, or discard this patch.
src/lang/ua/mdp.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -1,46 +1,46 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'labels' => [
5
-        'fixed-plugin' => [
6
-            'sidebar_filter' => 'Фільтри',
7
-            'sidebar_background' => 'Фон',
8
-            'images' => 'Світлини',
9
-        ],
10
-        'nav_bar' => [
11
-            'toggle_nav' => 'Toggle Navigation',
12
-            'search' => [
13
-                'placeholder' => 'Пошук',
14
-            ],
15
-            'profile' => 'Профіль',
16
-            'settings' => 'Налаштування',
17
-            'log_out' => 'Деавторизуватись',
18
-        ],
19
-        'auth' => [
20
-            'sign_up' => 'Реєстрація',
21
-            'sign_in' => 'Авторизація',
22
-        ]
23
-    ],
24
-    'layouts' => [
25
-        'user' => [
26
-            'auth-v1' => [
27
-                'sign_up' => 'Реєстрація',
28
-                'sign_in' => 'Авторизація',
29
-            ]
30
-        ]
31
-    ],
32
-    'forms' => [
33
-        'user' => [
34
-            'labels' => [
35
-                'sign_in' => 'Авторизація',
36
-                'submit' => 'Авторизуватись'
37
-            ],
38
-            'sign_in' => [
39
-                'placeholders' => [
40
-                    'email' => 'до прикладу [email protected]',
41
-                    'password' => '********'
42
-                ]
43
-            ]
44
-        ]
45
-    ]
4
+	'labels' => [
5
+		'fixed-plugin' => [
6
+			'sidebar_filter' => 'Фільтри',
7
+			'sidebar_background' => 'Фон',
8
+			'images' => 'Світлини',
9
+		],
10
+		'nav_bar' => [
11
+			'toggle_nav' => 'Toggle Navigation',
12
+			'search' => [
13
+				'placeholder' => 'Пошук',
14
+			],
15
+			'profile' => 'Профіль',
16
+			'settings' => 'Налаштування',
17
+			'log_out' => 'Деавторизуватись',
18
+		],
19
+		'auth' => [
20
+			'sign_up' => 'Реєстрація',
21
+			'sign_in' => 'Авторизація',
22
+		]
23
+	],
24
+	'layouts' => [
25
+		'user' => [
26
+			'auth-v1' => [
27
+				'sign_up' => 'Реєстрація',
28
+				'sign_in' => 'Авторизація',
29
+			]
30
+		]
31
+	],
32
+	'forms' => [
33
+		'user' => [
34
+			'labels' => [
35
+				'sign_in' => 'Авторизація',
36
+				'submit' => 'Авторизуватись'
37
+			],
38
+			'sign_in' => [
39
+				'placeholders' => [
40
+					'email' => 'до прикладу [email protected]',
41
+					'password' => '********'
42
+				]
43
+			]
44
+		]
45
+	]
46 46
 ];
47 47
\ 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
@@ -8,20 +8,20 @@
 block discarded – undo
8 8
 
9 9
 final class ComponentRegistrar
10 10
 {
11
-    private array $components = [
12
-        CardWidget::class
13
-    ];
11
+	private array $components = [
12
+		CardWidget::class
13
+	];
14 14
 
15
-    public function register(): void
16
-    {
17
-        array_map(
18
-            fn(string $class) => Blade::component(
19
-                forward_static_call(
20
-                    sprintf('%s::getComponentName', $class)
21
-                ) ?? Str::camel($class),
22
-                $class
23
-            ),
24
-            $this->components
25
-        );
26
-    }
15
+	public function register(): void
16
+	{
17
+		array_map(
18
+			fn(string $class) => Blade::component(
19
+				forward_static_call(
20
+					sprintf('%s::getComponentName', $class)
21
+				) ?? Str::camel($class),
22
+				$class
23
+			),
24
+			$this->components
25
+		);
26
+	}
27 27
 }
28 28
\ No newline at end of file
Please login to merge, or discard this patch.
src/View/Components/Widgets/Component.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 
5 5
 abstract class Component extends \Illuminate\View\Component
6 6
 {
7
-    protected static ?string $name = null;
7
+	protected static ?string $name = null;
8 8
 
9
-    public static function getComponentName(): ?string
10
-    {
11
-        return static::$name;
12
-    }
9
+	public static function getComponentName(): ?string
10
+	{
11
+		return static::$name;
12
+	}
13 13
 }
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
src/View/Components/Widgets/CardWidget.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -6,28 +6,28 @@
 block discarded – undo
6 6
 
7 7
 class CardWidget extends Component
8 8
 {
9
-    protected static ?string $name = 'card-widget';
10
-    public string $title;
11
-    public string $description;
9
+	protected static ?string $name = 'card-widget';
10
+	public string $title;
11
+	public string $description;
12 12
 
13
-    public function __construct($title, $description)
14
-    {
15
-        $this->title = $title;
16
-        $this->description = $description;
17
-    }
13
+	public function __construct($title, $description)
14
+	{
15
+		$this->title = $title;
16
+		$this->description = $description;
17
+	}
18 18
 
19
-    /**
20
-     * @inheritDoc
21
-     */
22
-    public function render(): string
23
-    {
24
-        return view(
25
-            sprintf(
26
-                '%s::%s',
27
-                CoreServiceProvider::VIEWS_NAMESPACE,
28
-                'elements.widgets.simple-card'
29
-            )
30
-        )
31
-            ->render();
32
-    }
19
+	/**
20
+	 * @inheritDoc
21
+	 */
22
+	public function render(): string
23
+	{
24
+		return view(
25
+			sprintf(
26
+				'%s::%s',
27
+				CoreServiceProvider::VIEWS_NAMESPACE,
28
+				'elements.widgets.simple-card'
29
+			)
30
+		)
31
+			->render();
32
+	}
33 33
 }
Please login to merge, or discard this patch.
src/MaterialDashboardPro.php 1 patch
Indentation   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -10,81 +10,81 @@
 block discarded – undo
10 10
 
11 11
 class MaterialDashboardPro
12 12
 {
13
-    private Request $request;
14
-    private array $menu = [];
15
-    private string $pageTitle = 'Page';
16
-    private $user = null;
17
-
18
-    private string $backgroundUrl = 'https://picsum.photos/2880/1920?blur=2';
19
-
20
-    /**
21
-     * @param Request $request
22
-     */
23
-    public function __construct(Request $request)
24
-    {
25
-        $this->request = $request;
26
-        $this->setMenu();
27
-        $this->setUser($this->request->user());
28
-        $this->setBackgroundUrl();
29
-    }
30
-
31
-    public function getRandomBackgroundUrl(): string
32
-    {
33
-        return $this->backgroundUrl;
34
-    }
35
-
36
-    /**
37
-     * @return void
38
-     */
39
-    private function setMenu(): void
40
-    {
41
-        /** @var MenuBuilder $menuBuilder */
42
-        $menuBuilder = resolve(MenuBuilder::class);
43
-        $this->menu = $menuBuilder->build();
44
-    }
45
-
46
-    /**
47
-     * @param Model|null $user
48
-     * @return $this
49
-     */
50
-    private function setUser(?Model $user): static
51
-    {
52
-        $this->user = $user;
53
-
54
-        return $this;
55
-    }
56
-
57
-    public function setBackgroundUrl(): static
58
-    {
59
-        $this->backgroundUrl = config('mdp.core.static.login_image', $this->backgroundUrl);
60
-
61
-        return $this;
62
-    }
63
-
64
-    public function hasUser(string $guard = null)
65
-    {
66
-        return $this->request->user($guard) ?? false;
67
-    }
68
-
69
-    public function getUser()
70
-    {
71
-        return $this->user;
72
-    }
73
-
74
-    public function getPageTitle(): string
75
-    {
76
-        return $this->pageTitle;
77
-    }
78
-
79
-    public function setPageTitle(string $pageTitle): static
80
-    {
81
-        $this->pageTitle = $pageTitle;
82
-
83
-        return $this;
84
-    }
85
-
86
-    public function getMenu(): array
87
-    {
88
-        return $this->menu;
89
-    }
13
+	private Request $request;
14
+	private array $menu = [];
15
+	private string $pageTitle = 'Page';
16
+	private $user = null;
17
+
18
+	private string $backgroundUrl = 'https://picsum.photos/2880/1920?blur=2';
19
+
20
+	/**
21
+	 * @param Request $request
22
+	 */
23
+	public function __construct(Request $request)
24
+	{
25
+		$this->request = $request;
26
+		$this->setMenu();
27
+		$this->setUser($this->request->user());
28
+		$this->setBackgroundUrl();
29
+	}
30
+
31
+	public function getRandomBackgroundUrl(): string
32
+	{
33
+		return $this->backgroundUrl;
34
+	}
35
+
36
+	/**
37
+	 * @return void
38
+	 */
39
+	private function setMenu(): void
40
+	{
41
+		/** @var MenuBuilder $menuBuilder */
42
+		$menuBuilder = resolve(MenuBuilder::class);
43
+		$this->menu = $menuBuilder->build();
44
+	}
45
+
46
+	/**
47
+	 * @param Model|null $user
48
+	 * @return $this
49
+	 */
50
+	private function setUser(?Model $user): static
51
+	{
52
+		$this->user = $user;
53
+
54
+		return $this;
55
+	}
56
+
57
+	public function setBackgroundUrl(): static
58
+	{
59
+		$this->backgroundUrl = config('mdp.core.static.login_image', $this->backgroundUrl);
60
+
61
+		return $this;
62
+	}
63
+
64
+	public function hasUser(string $guard = null)
65
+	{
66
+		return $this->request->user($guard) ?? false;
67
+	}
68
+
69
+	public function getUser()
70
+	{
71
+		return $this->user;
72
+	}
73
+
74
+	public function getPageTitle(): string
75
+	{
76
+		return $this->pageTitle;
77
+	}
78
+
79
+	public function setPageTitle(string $pageTitle): static
80
+	{
81
+		$this->pageTitle = $pageTitle;
82
+
83
+		return $this;
84
+	}
85
+
86
+	public function getMenu(): array
87
+	{
88
+		return $this->menu;
89
+	}
90 90
 }
Please login to merge, or discard this patch.