Passed
Pull Request — main (#1)
by
unknown
03:16 queued 01:12
created
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.
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' => [MaterialIcon::class, 'dashboard'],
17
-    ],
18
-    [
19
-        'title' => 'Users',
20
-        'icon' => [FontAwesomeIcon::class, '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' => [MaterialIcon::class, 'dashboard'],
17
+	],
18
+	[
19
+		'title' => 'Users',
20
+		'icon' => [FontAwesomeIcon::class, '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/Traits/ViewComposerTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 		view()
17 17
 			->composer(
18 18
 				['mdp::layouts.main', 'mdp::layouts.user.auth-v1'],
19
-				static function (View $view) use ($pageTitle) {
19
+				static function(View $view) use ($pageTitle) {
20 20
 					$data = $view->getData();
21 21
 
22 22
 					if (array_key_exists('mdp', $data)) {
Please login to merge, or discard this patch.
src/Helpers/MenuItem.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $words = explode(' ', $this->getTitle());
59 59
 
60 60
         $abbrArray = array_map(
61
-            static function ($word) {
61
+            static function($word) {
62 62
                 $array = mb_str_split($word);
63 63
 
64 64
                 return current($array);
Please login to merge, or discard this patch.
Indentation   +161 added lines, -161 removed lines patch added patch discarded remove patch
@@ -17,165 +17,165 @@
 block discarded – undo
17 17
 
18 18
 class MenuItem
19 19
 {
20
-    private Request $request;
21
-    private string $title;
22
-    private string $menuItemLinkType;
23
-    private string $link;
24
-    private string $baseLink;
25
-    private ?Icon $icon;
26
-    private Collection $children;
27
-    private UuidInterface $hash;
28
-    private string $abbr;
29
-    private bool $isChild;
30
-    private array $classes = [
31
-        'nav-item',
32
-    ];
33
-
34
-    public function __construct(
35
-        string $title,
36
-        string $menuItemLinkType,
37
-        string $link,
38
-        ?Icon  $icon = null,
39
-        array  $children = [],
40
-        bool   $isChild = false
41
-    )
42
-    {
43
-        $this->title = $title;
44
-        $this->menuItemLinkType = $menuItemLinkType;
45
-        $this->link = $this->baseLink = $link;
46
-        $this->icon = $icon;
47
-        $this->children = collect($children);
48
-        $this->isChild = $isChild;
49
-        $this->hash = Uuid::fromString(md5($this->title));
50
-        $this->request = resolve(Request::class);
51
-
52
-        $this->setAbbr();
53
-        $this->setActive();
54
-    }
55
-
56
-    private function setAbbr(): void
57
-    {
58
-        $words = explode(' ', $this->getTitle());
59
-
60
-        $abbrArray = array_map(
61
-            static function ($word) {
62
-                $array = mb_str_split($word);
63
-
64
-                return current($array);
65
-            },
66
-            $words
67
-        );
68
-
69
-        $abbrString = mb_strtoupper(implode('', $abbrArray));
70
-
71
-        $this->abbr = preg_replace(
72
-            '/([^0-9A-Za-zА-я])/u',
73
-            '',
74
-            $abbrString
75
-        );
76
-    }
77
-
78
-    public function getTitle(): string
79
-    {
80
-        return $this->title;
81
-    }
82
-
83
-    private function setActive(): void
84
-    {
85
-        /** @var Route $route */
86
-        $route = $this->request->route();
87
-
88
-        if (!is_null($route)) {
89
-            switch ($this->menuItemLinkType) {
90
-                case MenuItemLinkType::ROUTE:
91
-                    if ($this->getBaseLink() === $route->getName()) {
92
-                        $this->classes[] = 'active';
93
-                    }
94
-
95
-                    break;
96
-                case MenuItemLinkType::URI:
97
-                    $match0 = mb_strpos(
98
-                            $route->uri(),
99
-                            $this->getBaseLink()
100
-                        ) === 0;
101
-
102
-                    if ($match0) {
103
-                        $this->classes[] = 'active';
104
-                    }
105
-                    break;
106
-            }
107
-        }
108
-    }
109
-
110
-    private function getBaseLink(): string
111
-    {
112
-        return $this->baseLink;
113
-    }
114
-
115
-    public function getLink(): string
116
-    {
117
-        $uri = '#';
118
-
119
-        switch ($this->hasChildren()) {
120
-            case true:
121
-                $uri = sprintf('#%s', $this->getMenuItemHash());
122
-                break;
123
-            case false:
124
-                switch ($this->menuItemLinkType) {
125
-                    case MenuItemLinkType::ROUTE:
126
-                        try {
127
-                            $uri = route($this->link);
128
-                        } catch (Throwable $exception) {
129
-                            Log::error(sprintf('Menu Build Item issue : %s', $exception->getMessage()));
130
-                        }
131
-                        break;
132
-                    case MenuItemLinkType::URI:
133
-                        $uri = $this->link;
134
-                        break;
135
-                }
136
-                break;
137
-        }
138
-
139
-        return $uri;
140
-    }
141
-
142
-    public function hasChildren(): bool
143
-    {
144
-        return $this->children->isNotEmpty();
145
-    }
146
-
147
-    public function getMenuItemHash(): string
148
-    {
149
-        return $this->hash->toString();
150
-    }
151
-
152
-    public function hasIcon(): bool
153
-    {
154
-        return !is_null($this->getIcon());
155
-    }
156
-
157
-    public function getIcon(): ?Icon
158
-    {
159
-        return $this->icon;
160
-    }
161
-
162
-    public function isChild(): bool
163
-    {
164
-        return $this->isChild;
165
-    }
166
-
167
-    public function getChildren(): Collection
168
-    {
169
-        return $this->children;
170
-    }
171
-
172
-    public function getAbbr(): string
173
-    {
174
-        return $this->abbr;
175
-    }
176
-
177
-    public function getClasses(): string
178
-    {
179
-        return implode(' ', $this->classes);
180
-    }
20
+	private Request $request;
21
+	private string $title;
22
+	private string $menuItemLinkType;
23
+	private string $link;
24
+	private string $baseLink;
25
+	private ?Icon $icon;
26
+	private Collection $children;
27
+	private UuidInterface $hash;
28
+	private string $abbr;
29
+	private bool $isChild;
30
+	private array $classes = [
31
+		'nav-item',
32
+	];
33
+
34
+	public function __construct(
35
+		string $title,
36
+		string $menuItemLinkType,
37
+		string $link,
38
+		?Icon  $icon = null,
39
+		array  $children = [],
40
+		bool   $isChild = false
41
+	)
42
+	{
43
+		$this->title = $title;
44
+		$this->menuItemLinkType = $menuItemLinkType;
45
+		$this->link = $this->baseLink = $link;
46
+		$this->icon = $icon;
47
+		$this->children = collect($children);
48
+		$this->isChild = $isChild;
49
+		$this->hash = Uuid::fromString(md5($this->title));
50
+		$this->request = resolve(Request::class);
51
+
52
+		$this->setAbbr();
53
+		$this->setActive();
54
+	}
55
+
56
+	private function setAbbr(): void
57
+	{
58
+		$words = explode(' ', $this->getTitle());
59
+
60
+		$abbrArray = array_map(
61
+			static function ($word) {
62
+				$array = mb_str_split($word);
63
+
64
+				return current($array);
65
+			},
66
+			$words
67
+		);
68
+
69
+		$abbrString = mb_strtoupper(implode('', $abbrArray));
70
+
71
+		$this->abbr = preg_replace(
72
+			'/([^0-9A-Za-zА-я])/u',
73
+			'',
74
+			$abbrString
75
+		);
76
+	}
77
+
78
+	public function getTitle(): string
79
+	{
80
+		return $this->title;
81
+	}
82
+
83
+	private function setActive(): void
84
+	{
85
+		/** @var Route $route */
86
+		$route = $this->request->route();
87
+
88
+		if (!is_null($route)) {
89
+			switch ($this->menuItemLinkType) {
90
+				case MenuItemLinkType::ROUTE:
91
+					if ($this->getBaseLink() === $route->getName()) {
92
+						$this->classes[] = 'active';
93
+					}
94
+
95
+					break;
96
+				case MenuItemLinkType::URI:
97
+					$match0 = mb_strpos(
98
+							$route->uri(),
99
+							$this->getBaseLink()
100
+						) === 0;
101
+
102
+					if ($match0) {
103
+						$this->classes[] = 'active';
104
+					}
105
+					break;
106
+			}
107
+		}
108
+	}
109
+
110
+	private function getBaseLink(): string
111
+	{
112
+		return $this->baseLink;
113
+	}
114
+
115
+	public function getLink(): string
116
+	{
117
+		$uri = '#';
118
+
119
+		switch ($this->hasChildren()) {
120
+			case true:
121
+				$uri = sprintf('#%s', $this->getMenuItemHash());
122
+				break;
123
+			case false:
124
+				switch ($this->menuItemLinkType) {
125
+					case MenuItemLinkType::ROUTE:
126
+						try {
127
+							$uri = route($this->link);
128
+						} catch (Throwable $exception) {
129
+							Log::error(sprintf('Menu Build Item issue : %s', $exception->getMessage()));
130
+						}
131
+						break;
132
+					case MenuItemLinkType::URI:
133
+						$uri = $this->link;
134
+						break;
135
+				}
136
+				break;
137
+		}
138
+
139
+		return $uri;
140
+	}
141
+
142
+	public function hasChildren(): bool
143
+	{
144
+		return $this->children->isNotEmpty();
145
+	}
146
+
147
+	public function getMenuItemHash(): string
148
+	{
149
+		return $this->hash->toString();
150
+	}
151
+
152
+	public function hasIcon(): bool
153
+	{
154
+		return !is_null($this->getIcon());
155
+	}
156
+
157
+	public function getIcon(): ?Icon
158
+	{
159
+		return $this->icon;
160
+	}
161
+
162
+	public function isChild(): bool
163
+	{
164
+		return $this->isChild;
165
+	}
166
+
167
+	public function getChildren(): Collection
168
+	{
169
+		return $this->children;
170
+	}
171
+
172
+	public function getAbbr(): string
173
+	{
174
+		return $this->abbr;
175
+	}
176
+
177
+	public function getClasses(): string
178
+	{
179
+		return implode(' ', $this->classes);
180
+	}
181 181
 }
Please login to merge, or discard this patch.
src/Helpers/DemoMenuVisibilityResolver.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 
7 7
 class DemoMenuVisibilityResolver extends MenuVisibilityResolver
8 8
 {
9
-    /**
10
-     * @inheritDoc
11
-     */
12
-    public function resolve(mixed $valueOrValues): bool
13
-    {
14
-        return in_array('sudo', $valueOrValues, true);
15
-    }
9
+	/**
10
+	 * @inheritDoc
11
+	 */
12
+	public function resolve(mixed $valueOrValues): bool
13
+	{
14
+		return in_array('sudo', $valueOrValues, true);
15
+	}
16 16
 }
Please login to merge, or discard this patch.
src/Providers/Composers/MdpViewComposer.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 
10 10
 class MdpViewComposer
11 11
 {
12
-    private MaterialDashboardPro $mdp;
12
+	private MaterialDashboardPro $mdp;
13 13
 
14
-    public function __construct(MaterialDashboardPro $mdp)
15
-    {
16
-        $this->mdp = $mdp;
17
-    }
14
+	public function __construct(MaterialDashboardPro $mdp)
15
+	{
16
+		$this->mdp = $mdp;
17
+	}
18 18
 
19
-    public function compose(View $view): void
20
-    {
21
-        $view->with('mdp', $this->mdp);
22
-    }
19
+	public function compose(View $view): void
20
+	{
21
+		$view->with('mdp', $this->mdp);
22
+	}
23 23
 }
Please login to merge, or discard this patch.
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::get('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::get('', [TestDashboardController::class, 'dashboard'])->name('index');
16 16
 					}
17 17
 				);
Please login to merge, or discard this patch.
src/Providers/CoreServiceProvider.php 2 patches
Indentation   +121 added lines, -121 removed lines patch added patch discarded remove patch
@@ -12,125 +12,125 @@
 block discarded – undo
12 12
 
13 13
 class CoreServiceProvider extends ServiceProvider
14 14
 {
15
-    public function register(): void
16
-    {
17
-    }
18
-
19
-    public function boot(Factory $view): void
20
-    {
21
-        $this->registerPublishableConfigs();
22
-        $this->registerPublishableAssets();
23
-        $this->registerViews();
24
-        $this->registerViewComposers($view);
25
-        $this->registerRoutes();
26
-        $this->registerLocales();
27
-    }
28
-
29
-    public function registerPublishableConfigs(): void
30
-    {
31
-        $baseDir = __DIR__ . DIRECTORY_SEPARATOR . '..';
32
-        $configs = sprintf('%s%s%s', $baseDir, DIRECTORY_SEPARATOR, 'config');
33
-        $mdpCoreConfig = sprintf(
34
-            '%s%s%s%s%s',
35
-            $configs,
36
-            DIRECTORY_SEPARATOR,
37
-            'mdp',
38
-            DIRECTORY_SEPARATOR,
39
-            'core.php'
40
-        );
41
-
42
-        $mdpMenuConfig = sprintf(
43
-            '%s%s%s%s%s',
44
-            $configs,
45
-            DIRECTORY_SEPARATOR,
46
-            'mdp',
47
-            DIRECTORY_SEPARATOR,
48
-            'menu.php'
49
-        );
50
-
51
-        $this->publishes(
52
-            [
53
-                $mdpCoreConfig => config_path(
54
-                    sprintf(
55
-                        '%s%s%s',
56
-                        'mdp',
57
-                        DIRECTORY_SEPARATOR,
58
-                        'core.php'
59
-                    )
60
-                ),
61
-                $mdpMenuConfig => config_path(
62
-                    sprintf(
63
-                        '%s%s%s',
64
-                        'mdp',
65
-                        DIRECTORY_SEPARATOR,
66
-                        'menu.php'
67
-                    )
68
-                ),
69
-            ]
70
-        );
71
-    }
72
-
73
-    public function registerPublishableAssets(): void
74
-    {
75
-        $packagePublic = __DIR__ . DIRECTORY_SEPARATOR .
76
-            '..' . DIRECTORY_SEPARATOR .
77
-            'resources' . DIRECTORY_SEPARATOR .
78
-            'assets';
79
-
80
-        $this->publishes(
81
-            [
82
-                $packagePublic => public_path('assets/mdp'),
83
-            ]
84
-        );
85
-    }
86
-
87
-    public function registerViews(): void
88
-    {
89
-        $this->loadViewsFrom(
90
-            __DIR__ . DIRECTORY_SEPARATOR .
91
-            '..' . DIRECTORY_SEPARATOR .
92
-            'resources' . DIRECTORY_SEPARATOR .
93
-            'views',
94
-            'mdp'
95
-        );
96
-    }
97
-
98
-    public function registerViewComposers(Factory $view): void
99
-    {
100
-        $view->composer('mdp::layouts.user.auth-v1', MdpViewComposer::class);
101
-        $view->composer('mdp::layouts.main', MdpViewComposer::class);
102
-    }
103
-
104
-    public function registerRoutes(): void
105
-    {
106
-        if (Config::get('mdp.core.module.routes.enabled', false)) {
107
-            $this->loadRoutesFrom(
108
-                __DIR__ . DIRECTORY_SEPARATOR .
109
-                '..' . DIRECTORY_SEPARATOR .
110
-                'routes' . DIRECTORY_SEPARATOR .
111
-                'mdp' . DIRECTORY_SEPARATOR .
112
-                'auth.php'
113
-            );
114
-
115
-            $this->loadRoutesFrom(
116
-                __DIR__ . DIRECTORY_SEPARATOR .
117
-                '..' . DIRECTORY_SEPARATOR .
118
-                'routes' . DIRECTORY_SEPARATOR .
119
-                'mdp' . DIRECTORY_SEPARATOR .
120
-                'dashboard.php'
121
-            );
122
-        }
123
-    }
124
-
125
-    public function registerLocales(): void
126
-    {
127
-        $baseDir = __DIR__ . DIRECTORY_SEPARATOR . '..';
128
-        $locales = sprintf('%s%s%s', $baseDir, DIRECTORY_SEPARATOR, 'lang');
129
-
130
-        $this->publishes([
131
-            sprintf('%s/%s/mdp.php', $locales, 'ua') => lang_path(sprintf('%s/mdp.php', 'ua')),
132
-            sprintf('%s/%s/mdp.php', $locales, 'en') => lang_path(sprintf('%s/mdp.php', 'en')),
133
-            sprintf('%s/%s/mdp.php', $locales, 'kz') => lang_path(sprintf('%s/mdp.php', 'kz')),
134
-        ]);
135
-    }
15
+	public function register(): void
16
+	{
17
+	}
18
+
19
+	public function boot(Factory $view): void
20
+	{
21
+		$this->registerPublishableConfigs();
22
+		$this->registerPublishableAssets();
23
+		$this->registerViews();
24
+		$this->registerViewComposers($view);
25
+		$this->registerRoutes();
26
+		$this->registerLocales();
27
+	}
28
+
29
+	public function registerPublishableConfigs(): void
30
+	{
31
+		$baseDir = __DIR__ . DIRECTORY_SEPARATOR . '..';
32
+		$configs = sprintf('%s%s%s', $baseDir, DIRECTORY_SEPARATOR, 'config');
33
+		$mdpCoreConfig = sprintf(
34
+			'%s%s%s%s%s',
35
+			$configs,
36
+			DIRECTORY_SEPARATOR,
37
+			'mdp',
38
+			DIRECTORY_SEPARATOR,
39
+			'core.php'
40
+		);
41
+
42
+		$mdpMenuConfig = sprintf(
43
+			'%s%s%s%s%s',
44
+			$configs,
45
+			DIRECTORY_SEPARATOR,
46
+			'mdp',
47
+			DIRECTORY_SEPARATOR,
48
+			'menu.php'
49
+		);
50
+
51
+		$this->publishes(
52
+			[
53
+				$mdpCoreConfig => config_path(
54
+					sprintf(
55
+						'%s%s%s',
56
+						'mdp',
57
+						DIRECTORY_SEPARATOR,
58
+						'core.php'
59
+					)
60
+				),
61
+				$mdpMenuConfig => config_path(
62
+					sprintf(
63
+						'%s%s%s',
64
+						'mdp',
65
+						DIRECTORY_SEPARATOR,
66
+						'menu.php'
67
+					)
68
+				),
69
+			]
70
+		);
71
+	}
72
+
73
+	public function registerPublishableAssets(): void
74
+	{
75
+		$packagePublic = __DIR__ . DIRECTORY_SEPARATOR .
76
+			'..' . DIRECTORY_SEPARATOR .
77
+			'resources' . DIRECTORY_SEPARATOR .
78
+			'assets';
79
+
80
+		$this->publishes(
81
+			[
82
+				$packagePublic => public_path('assets/mdp'),
83
+			]
84
+		);
85
+	}
86
+
87
+	public function registerViews(): void
88
+	{
89
+		$this->loadViewsFrom(
90
+			__DIR__ . DIRECTORY_SEPARATOR .
91
+			'..' . DIRECTORY_SEPARATOR .
92
+			'resources' . DIRECTORY_SEPARATOR .
93
+			'views',
94
+			'mdp'
95
+		);
96
+	}
97
+
98
+	public function registerViewComposers(Factory $view): void
99
+	{
100
+		$view->composer('mdp::layouts.user.auth-v1', MdpViewComposer::class);
101
+		$view->composer('mdp::layouts.main', MdpViewComposer::class);
102
+	}
103
+
104
+	public function registerRoutes(): void
105
+	{
106
+		if (Config::get('mdp.core.module.routes.enabled', false)) {
107
+			$this->loadRoutesFrom(
108
+				__DIR__ . DIRECTORY_SEPARATOR .
109
+				'..' . DIRECTORY_SEPARATOR .
110
+				'routes' . DIRECTORY_SEPARATOR .
111
+				'mdp' . DIRECTORY_SEPARATOR .
112
+				'auth.php'
113
+			);
114
+
115
+			$this->loadRoutesFrom(
116
+				__DIR__ . DIRECTORY_SEPARATOR .
117
+				'..' . DIRECTORY_SEPARATOR .
118
+				'routes' . DIRECTORY_SEPARATOR .
119
+				'mdp' . DIRECTORY_SEPARATOR .
120
+				'dashboard.php'
121
+			);
122
+		}
123
+	}
124
+
125
+	public function registerLocales(): void
126
+	{
127
+		$baseDir = __DIR__ . DIRECTORY_SEPARATOR . '..';
128
+		$locales = sprintf('%s%s%s', $baseDir, DIRECTORY_SEPARATOR, 'lang');
129
+
130
+		$this->publishes([
131
+			sprintf('%s/%s/mdp.php', $locales, 'ua') => lang_path(sprintf('%s/mdp.php', 'ua')),
132
+			sprintf('%s/%s/mdp.php', $locales, 'en') => lang_path(sprintf('%s/mdp.php', 'en')),
133
+			sprintf('%s/%s/mdp.php', $locales, 'kz') => lang_path(sprintf('%s/mdp.php', 'kz')),
134
+		]);
135
+	}
136 136
 }
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function registerPublishableConfigs(): void
30 30
     {
31
-        $baseDir = __DIR__ . DIRECTORY_SEPARATOR . '..';
31
+        $baseDir = __DIR__.DIRECTORY_SEPARATOR.'..';
32 32
         $configs = sprintf('%s%s%s', $baseDir, DIRECTORY_SEPARATOR, 'config');
33 33
         $mdpCoreConfig = sprintf(
34 34
             '%s%s%s%s%s',
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
 
73 73
     public function registerPublishableAssets(): void
74 74
     {
75
-        $packagePublic = __DIR__ . DIRECTORY_SEPARATOR .
76
-            '..' . DIRECTORY_SEPARATOR .
77
-            'resources' . DIRECTORY_SEPARATOR .
75
+        $packagePublic = __DIR__.DIRECTORY_SEPARATOR.
76
+            '..'.DIRECTORY_SEPARATOR.
77
+            'resources'.DIRECTORY_SEPARATOR.
78 78
             'assets';
79 79
 
80 80
         $this->publishes(
@@ -87,9 +87,9 @@  discard block
 block discarded – undo
87 87
     public function registerViews(): void
88 88
     {
89 89
         $this->loadViewsFrom(
90
-            __DIR__ . DIRECTORY_SEPARATOR .
91
-            '..' . DIRECTORY_SEPARATOR .
92
-            'resources' . DIRECTORY_SEPARATOR .
90
+            __DIR__.DIRECTORY_SEPARATOR.
91
+            '..'.DIRECTORY_SEPARATOR.
92
+            'resources'.DIRECTORY_SEPARATOR.
93 93
             'views',
94 94
             'mdp'
95 95
         );
@@ -105,18 +105,18 @@  discard block
 block discarded – undo
105 105
     {
106 106
         if (Config::get('mdp.core.module.routes.enabled', false)) {
107 107
             $this->loadRoutesFrom(
108
-                __DIR__ . DIRECTORY_SEPARATOR .
109
-                '..' . DIRECTORY_SEPARATOR .
110
-                'routes' . DIRECTORY_SEPARATOR .
111
-                'mdp' . DIRECTORY_SEPARATOR .
108
+                __DIR__.DIRECTORY_SEPARATOR.
109
+                '..'.DIRECTORY_SEPARATOR.
110
+                'routes'.DIRECTORY_SEPARATOR.
111
+                'mdp'.DIRECTORY_SEPARATOR.
112 112
                 'auth.php'
113 113
             );
114 114
 
115 115
             $this->loadRoutesFrom(
116
-                __DIR__ . DIRECTORY_SEPARATOR .
117
-                '..' . DIRECTORY_SEPARATOR .
118
-                'routes' . DIRECTORY_SEPARATOR .
119
-                'mdp' . DIRECTORY_SEPARATOR .
116
+                __DIR__.DIRECTORY_SEPARATOR.
117
+                '..'.DIRECTORY_SEPARATOR.
118
+                'routes'.DIRECTORY_SEPARATOR.
119
+                'mdp'.DIRECTORY_SEPARATOR.
120 120
                 'dashboard.php'
121 121
             );
122 122
         }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
     public function registerLocales(): void
126 126
     {
127
-        $baseDir = __DIR__ . DIRECTORY_SEPARATOR . '..';
127
+        $baseDir = __DIR__.DIRECTORY_SEPARATOR.'..';
128 128
         $locales = sprintf('%s%s%s', $baseDir, DIRECTORY_SEPARATOR, 'lang');
129 129
 
130 130
         $this->publishes([
Please login to merge, or discard this patch.