Passed
Push — main ( 8e0a3d...46d6c5 )
by Roman
02:27
created
src/routes/mdp/auth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 Route::name('kield01.mdp.')
7 7
 	->prefix('mdp')
8 8
 	->group(
9
-		static function () {
9
+		static function() {
10 10
 			Route::any('login', [TestAuthController::class, 'login'])->name('user.login');
11 11
 			Route::post('login', [TestAuthController::class, 'auth'])->name('user.auth');
12 12
 
Please login to merge, or discard this patch.
src/routes/mdp/dashboard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 Route::name('kield01.mdp.dashboard.')
9 9
 	->prefix('mdp')
10 10
 	->group(
11
-		static function () {
11
+		static function() {
12 12
 			Route::prefix('dashboard')
13 13
 				->group(
14
-					static function () {
14
+					static function() {
15 15
 						Route::any('', [TestDashboardController::class, 'dashboard'])->name('index');
16 16
 					}
17 17
 				);
Please login to merge, or discard this patch.
src/config/mdp/menu.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -7,25 +7,25 @@
 block discarded – undo
7 7
 use KielD01\LaravelMaterialDashboardPro\Helpers\MenuItemLinkType;
8 8
 
9 9
 return [
10
-    [
11
-        'title' => 'Dashboard',
12
-        'link' => [
13
-            'type' => MenuItemLinkType::ROUTE,
14
-            'route' => 'dashboard.index',
15
-        ],
16
-        'icon' => new MaterialIcon('dashboard'),
17
-    ],
18
-    [
19
-        'title' => 'Users',
20
-        'icon' => new FontAwesomeIcon('login'),
21
-        'children' => [
22
-            [
23
-                'title' => 'Create User',
24
-                'link' => [
25
-                    'type' => MenuItemLinkType::ROUTE,
26
-                    'route' => 'users.create',
27
-                ],
28
-            ]
29
-        ]
30
-    ],
10
+	[
11
+		'title' => 'Dashboard',
12
+		'link' => [
13
+			'type' => MenuItemLinkType::ROUTE,
14
+			'route' => 'dashboard.index',
15
+		],
16
+		'icon' => new MaterialIcon('dashboard'),
17
+	],
18
+	[
19
+		'title' => 'Users',
20
+		'icon' => new FontAwesomeIcon('login'),
21
+		'children' => [
22
+			[
23
+				'title' => 'Create User',
24
+				'link' => [
25
+					'type' => MenuItemLinkType::ROUTE,
26
+					'route' => 'users.create',
27
+				],
28
+			]
29
+		]
30
+	],
31 31
 ];
Please login to merge, or discard this patch.
src/Helpers/MenuItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 		$words = explode(' ', $this->getTitle());
57 57
 
58 58
 		$abbrArray = array_map(
59
-			static function ($word) {
59
+			static function($word) {
60 60
 				$array = mb_str_split($word);
61 61
 
62 62
 				return current($array);
Please login to merge, or discard this patch.
src/Helpers/MenuBuilder.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
 		foreach ($menuItems as $index => $menuItem) {
26 26
 			if (!array_key_exists('can', $menuItem) || $menuResolver->resolve($menuItem['can'])) {
27 27
 				$link = array_key_exists('link', $menuItem) ?
28
-					$menuItem['link'] :
29
-					['type' => MenuItemLinkType::URI, 'uri' => '#'];
28
+					$menuItem['link'] : ['type' => MenuItemLinkType::URI, 'uri' => '#'];
30 29
 
31 30
 				$hasIcon = array_key_exists('icon', $menuItem);
32 31
 
Please login to merge, or discard this patch.