Passed
Push — main ( ed59e2...50ff97 )
by Roman
02:11
created
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.
src/lang/en/mdp.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,42 +1,42 @@
 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
-    ],
20
-    'layouts' => [
21
-        'user' => [
22
-            'auth-v1' => [
23
-                'sign_up' => 'Sign Up',
24
-                'sign_in' => 'Sign In',
25
-            ]
26
-        ]
27
-    ],
28
-    'forms' => [
29
-        'user' => [
30
-            'labels' => [
31
-                'sign_in' => 'Login',
32
-                'submit' => 'Let\'s Go'
33
-            ],
34
-            'sign_in' => [
35
-                'placeholders' => [
36
-                    'email' => 'ex. [email protected]',
37
-                    'password' => '********'
38
-                ]
39
-            ]
40
-        ]
41
-    ]
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
+	],
20
+	'layouts' => [
21
+		'user' => [
22
+			'auth-v1' => [
23
+				'sign_up' => 'Sign Up',
24
+				'sign_in' => 'Sign In',
25
+			]
26
+		]
27
+	],
28
+	'forms' => [
29
+		'user' => [
30
+			'labels' => [
31
+				'sign_in' => 'Login',
32
+				'submit' => 'Let\'s Go'
33
+			],
34
+			'sign_in' => [
35
+				'placeholders' => [
36
+					'email' => 'ex. [email protected]',
37
+					'password' => '********'
38
+				]
39
+			]
40
+		]
41
+	]
42 42
 ];
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
src/lang/kz/mdp.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,42 +1,42 @@
 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
-    ],
20
-    'layouts' => [
21
-        'user' => [
22
-            'auth-v1' => [
23
-                'sign_up' => 'Sign Up',
24
-                'sign_in' => 'Sign In',
25
-            ]
26
-        ]
27
-    ],
28
-    'forms' => [
29
-        'user' => [
30
-            'labels' => [
31
-                'sign_in' => 'Login',
32
-                'submit' => 'Let\'s Go'
33
-            ],
34
-            'sign_in' => [
35
-                'placeholders' => [
36
-                    'email' => 'ex. [email protected]',
37
-                    'password' => '********'
38
-                ]
39
-            ]
40
-        ]
41
-    ]
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
+	],
20
+	'layouts' => [
21
+		'user' => [
22
+			'auth-v1' => [
23
+				'sign_up' => 'Sign Up',
24
+				'sign_in' => 'Sign In',
25
+			]
26
+		]
27
+	],
28
+	'forms' => [
29
+		'user' => [
30
+			'labels' => [
31
+				'sign_in' => 'Login',
32
+				'submit' => 'Let\'s Go'
33
+			],
34
+			'sign_in' => [
35
+				'placeholders' => [
36
+					'email' => 'ex. [email protected]',
37
+					'password' => '********'
38
+				]
39
+			]
40
+		]
41
+	]
42 42
 ];
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
src/lang/ua/mdp.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,42 +1,42 @@
 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
-    ],
20
-    'layouts' => [
21
-        'user' => [
22
-            'auth-v1' => [
23
-                'sign_up' => 'Реєстрація',
24
-                'sign_in' => 'Авторизація',
25
-            ]
26
-        ]
27
-    ],
28
-    'forms' => [
29
-        'user' => [
30
-            'labels' => [
31
-                'sign_in' => 'Авторизація',
32
-                'submit' => 'Авторизуватись'
33
-            ],
34
-            'sign_in' => [
35
-                'placeholders' => [
36
-                    'email' => 'до прикладу [email protected]',
37
-                    'password' => '********'
38
-                ]
39
-            ]
40
-        ]
41
-    ]
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
+	],
20
+	'layouts' => [
21
+		'user' => [
22
+			'auth-v1' => [
23
+				'sign_up' => 'Реєстрація',
24
+				'sign_in' => 'Авторизація',
25
+			]
26
+		]
27
+	],
28
+	'forms' => [
29
+		'user' => [
30
+			'labels' => [
31
+				'sign_in' => 'Авторизація',
32
+				'submit' => 'Авторизуватись'
33
+			],
34
+			'sign_in' => [
35
+				'placeholders' => [
36
+					'email' => 'до прикладу [email protected]',
37
+					'password' => '********'
38
+				]
39
+			]
40
+		]
41
+	]
42 42
 ];
43 43
\ No newline at end of file
Please login to merge, or discard this patch.