Skip to content

Commit b3c594c

Browse files
Merge pull request #8 from hexadog/develop
Develop
2 parents b2408c1 + bd875dd commit b3c594c

File tree

14 files changed

+209
-306
lines changed

14 files changed

+209
-306
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Run php-cs-fixer
1818
uses: docker://oskarstark/php-cs-fixer-ga
1919
with:
20-
args: --config=.php_cs.dist --allow-risky=yes
20+
args: --config=.php-cs-fixer.dist.php --allow-risky=yes
2121

2222
- name: Commit changes
2323
uses: stefanzweifel/git-auto-commit-action@v4.10.0

.php-cs-fixer.dist.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->notPath('vendor/*')
5+
->notPath('resources/*')
6+
->notPath('database/*')
7+
->notPath('storage/*')
8+
->notPath('node_modules/*')
9+
->in([
10+
__DIR__ . '/src',
11+
])
12+
->name('*.php')
13+
->notName('*.blade.php')
14+
->ignoreDotFiles(true)
15+
->ignoreVCS(true);
16+
17+
$config = new PhpCsFixer\Config();
18+
19+
return $config
20+
->setRules([
21+
'@PSR2' => true,
22+
'@PhpCsFixer' => true,
23+
'concat_space' => [
24+
'spacing' => 'one'
25+
]
26+
])
27+
->setFinder($finder);

.php_cs.dist

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/Components/Children.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,22 @@
88
class Children extends Component
99
{
1010
/**
11-
* The item items
11+
* The item items.
1212
*
1313
* @var Collection
1414
*/
1515
public $items;
1616

1717
/**
18-
* Create the component instance
19-
*
20-
* @param Collection $items
21-
* @return void
18+
* Create the component instance.
2219
*/
2320
public function __construct(Collection $items)
2421
{
2522
$this->items = $items ?? collect();
2623
}
2724

2825
/**
29-
* Get the view / contents that represents the component
26+
* Get the view / contents that represents the component.
3027
*
3128
* @return \Illuminate\View\View
3229
*/

src/Components/Divider.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,22 @@
88
class Divider extends Component
99
{
1010
/**
11-
* The item
11+
* The item.
1212
*
1313
* @var Item
1414
*/
1515
public $item;
1616

1717
/**
18-
* Create the component instance
19-
*
20-
* @param Item $item
21-
*
22-
* @return void
18+
* Create the component instance.
2319
*/
2420
public function __construct(Item $item)
2521
{
2622
$this->item = $item;
2723
}
2824

2925
/**
30-
* Get the view / contents that represents the component
26+
* Get the view / contents that represents the component.
3127
*
3228
* @return \Illuminate\View\View
3329
*/

src/Components/Header.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,22 @@
88
class Header extends Component
99
{
1010
/**
11-
* The item
11+
* The item.
1212
*
1313
* @var Item
1414
*/
1515
public $item;
1616

1717
/**
18-
* Create the component instance
19-
*
20-
* @param Item $item
21-
*
22-
* @return void
18+
* Create the component instance.
2319
*/
2420
public function __construct(Item $item)
2521
{
2622
$this->item = $item;
2723
}
2824

2925
/**
30-
* Get the view / contents that represents the component
26+
* Get the view / contents that represents the component.
3127
*
3228
* @return \Illuminate\View\View
3329
*/

src/Components/Icon.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,21 @@
88
class Icon extends Component
99
{
1010
/**
11-
* The item icon
11+
* The item icon.
1212
*
1313
* @var string
1414
*/
1515
public $icon;
1616

1717
/**
18-
* The item
18+
* The item.
1919
*
2020
* @var Item
2121
*/
2222
public $item;
2323

2424
/**
25-
* Create the component instance
26-
*
27-
* @param Item $item
28-
*
29-
* @return void
25+
* Create the component instance.
3026
*/
3127
public function __construct(Item $item)
3228
{
@@ -35,7 +31,7 @@ public function __construct(Item $item)
3531
}
3632

3733
/**
38-
* Get the view / contents that represents the component
34+
* Get the view / contents that represents the component.
3935
*
4036
* @return \Illuminate\View\View
4137
*/

src/Components/Item.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,22 @@
88
class Item extends Component
99
{
1010
/**
11-
* The item
11+
* The item.
1212
*
1313
* @var Item
1414
*/
1515
public $item;
1616

1717
/**
18-
* Create the component instance
19-
*
20-
* @param MenusManagerItem $item
21-
* @return void
18+
* Create the component instance.
2219
*/
2320
public function __construct(MenusManagerItem $item)
2421
{
2522
$this->item = $item;
2623
}
2724

2825
/**
29-
* Get the view / contents that represents the component
26+
* Get the view / contents that represents the component.
3027
*
3128
* @return \Illuminate\View\View
3229
*/

src/Components/Menu.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@
99
class Menu extends Component
1010
{
1111
/**
12-
* The menu items
12+
* The menu items.
1313
*
1414
* @var Collection
1515
*/
1616
public $items;
17-
17+
1818
/**
19-
* The menu
19+
* The menu.
2020
*
2121
* @var string
2222
*/
2323
public $menu;
2424

2525
/**
26-
* Create the component instance
26+
* Create the component instance.
2727
*
28-
* @param string $type
29-
* @param string $message
30-
* @return void
28+
* @param string $type
29+
* @param string $message
30+
* @param mixed $name
3131
*/
3232
public function __construct($name)
3333
{
@@ -36,7 +36,7 @@ public function __construct($name)
3636
}
3737

3838
/**
39-
* Get the view / contents that represents the component
39+
* Get the view / contents that represents the component.
4040
*
4141
* @return \Illuminate\View\View
4242
*/

0 commit comments

Comments
 (0)