Skip to content

Commit a3050c9

Browse files
committed
Fix code style
1 parent 40450a0 commit a3050c9

File tree

6 files changed

+32
-46
lines changed

6 files changed

+32
-46
lines changed

CHANGELOG.md

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,20 @@
11
# Changelog
22

3-
All notable changes to `botble/git-commit-checker` will be documented in this file.
3+
All notable changes to `botble/dev-tool` will be documented in this file.
44

5-
## 2.1.2 - 2023-01-11
5+
## 1.0.2 - 2024-03-14
66

7-
- Bump version `laravel/pint`
7+
- Feat: Setting make commands by @dat-archielite in #1
8+
- Improve commands by @dat-archielite in #2
9+
- Feat: update new syntax dev tool by @quoc-archielite in #3
10+
- Improve: support run on Windows by @dinhquochan in #4
11+
- Improve: able to create a child theme by @dinhquochan in #5
12+
- Improve: theme stubs by @dinhquochan in #6
813

9-
## 2.1.1 - 2023-01-06
14+
## 1.0.1 - 2023-10-30
1015

11-
- Fix various bugs
16+
- Update CommandServiceProvider.php
1217

13-
## 2.1.0 - 2023-01-06
14-
15-
- Fix output render on Windows platform (https://github.com/botble/git-commit-checker/pull/10)
16-
17-
## 2.0.1 - 2023-01-05
18-
19-
- Add warning message "Run command to see coding standard detail issues"
20-
- Update version icon from README.md
21-
- Remove verbose when run `pint --test`
22-
23-
## 2.0.0 - 2023-01-05
24-
25-
- Drop support PHP 7.x, Laravel <= 8.x
26-
- Replace PHP Code Sniffer, PHPLint to Laravel Pint
27-
- Rename command `git:install-hooks` to `git-commit-checker:install`
28-
- Rename command `git:pre-commit-hook` to `git-commit-checker:pre-commit-hook`
29-
- Remove command `git:create-phpcs`
30-
- Remove TravisCI, StyleCI, Scrutinizer
31-
- Remove unnecessary files
32-
33-
## 1.0.0 - 2019-08-26
18+
## 1.0.0 - 2023-08-10
3419

3520
- First release.

stubs/theme/functions/functions.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ register_page_template([
55
]);
66

77
register_sidebar([
8-
'id' => 'second_sidebar',
9-
'name' => 'Second sidebar',
8+
'id' => 'second_sidebar',
9+
'name' => 'Second sidebar',
1010
'description' => 'This is a sample sidebar for {theme} theme',
1111
]);
1212

stubs/theme/functions/theme-options.stub

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,38 @@
33
app()->booted(function () {
44
theme_option()
55
->setField([
6-
'id' => 'copyright',
6+
'id' => 'copyright',
77
'section_id' => 'opt-text-subsection-general',
8-
'type' => 'text',
9-
'label' => __('Copyright'),
8+
'type' => 'text',
9+
'label' => __('Copyright'),
1010
'attributes' => [
11-
'name' => 'copyright',
12-
'value' => __('© :year Your Company. All right reserved.', ['year' => now()->format('Y')]),
11+
'name' => 'copyright',
12+
'value' => __('© :year Your Company. All right reserved.', ['year' => now()->format('Y')]),
1313
'options' => [
14-
'class' => 'form-control',
15-
'placeholder' => __('Change copyright'),
14+
'class' => 'form-control',
15+
'placeholder' => __('Change copyright'),
1616
'data-counter' => 250,
1717
],
1818
],
19-
'helper' => __('Copyright on footer of site'),
19+
'helper' => __('Copyright on footer of site'),
2020
])
2121
->setField([
22-
'id' => 'primary_font',
22+
'id' => 'primary_font',
2323
'section_id' => 'opt-text-subsection-general',
24-
'type' => 'googleFonts',
25-
'label' => __('Primary font'),
24+
'type' => 'googleFonts',
25+
'label' => __('Primary font'),
2626
'attributes' => [
27-
'name' => 'primary_font',
27+
'name' => 'primary_font',
2828
'value' => 'Roboto',
2929
],
3030
])
3131
->setField([
32-
'id' => 'primary_color',
32+
'id' => 'primary_color',
3333
'section_id' => 'opt-text-subsection-general',
34-
'type' => 'customColor',
35-
'label' => __('Primary color'),
34+
'type' => 'customColor',
35+
'label' => __('Primary color'),
3636
'attributes' => [
37-
'name' => 'primary_color',
37+
'name' => 'primary_color',
3838
'value' => '#ff2b4a',
3939
],
4040
]);

stubs/theme/routes/web.stub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Botble\Theme\Facades\Theme;
34
use Illuminate\Support\Facades\Route;
45
use Theme\{Theme}\Http\Controllers\{Theme}Controller;
56

stubs/theme/src/Http/Controllers/{Theme}Controller.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class {Theme}Controller extends PublicController
1111
return parent::getIndex();
1212
}
1313

14-
public function getView(?string $key = null)
14+
public function getView(?string $key = null, string $prefix = '')
1515
{
1616
return parent::getView($key);
1717
}

stubs/widget/{widget}.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class {Widget}Widget extends AbstractWidget
88
public function __construct()
99
{
1010
parent::__construct([
11-
'name' => __('{Widget}'),
11+
'name' => __('{Widget}'),
1212
'description' => __('Widget description'),
1313
]);
1414
}

0 commit comments

Comments
 (0)