File tree Expand file tree Collapse file tree 14 files changed +209
-306
lines changed Expand file tree Collapse file tree 14 files changed +209
-306
lines changed Original file line number Diff line number Diff line change 17
17
- name : Run php-cs-fixer
18
18
uses : docker://oskarstark/php-cs-fixer-ga
19
19
with :
20
- args : --config=.php_cs .dist --allow-risky=yes
20
+ args : --config=.php-cs-fixer .dist.php --allow-risky=yes
21
21
22
22
- name : Commit changes
23
23
uses : stefanzweifel/git-auto-commit-action@v4.10.0
Original file line number Diff line number Diff line change
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 );
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
class Children extends Component
9
9
{
10
10
/**
11
- * The item items
11
+ * The item items.
12
12
*
13
13
* @var Collection
14
14
*/
15
15
public $ items ;
16
16
17
17
/**
18
- * Create the component instance
19
- *
20
- * @param Collection $items
21
- * @return void
18
+ * Create the component instance.
22
19
*/
23
20
public function __construct (Collection $ items )
24
21
{
25
22
$ this ->items = $ items ?? collect ();
26
23
}
27
24
28
25
/**
29
- * Get the view / contents that represents the component
26
+ * Get the view / contents that represents the component.
30
27
*
31
28
* @return \Illuminate\View\View
32
29
*/
Original file line number Diff line number Diff line change 8
8
class Divider extends Component
9
9
{
10
10
/**
11
- * The item
11
+ * The item.
12
12
*
13
13
* @var Item
14
14
*/
15
15
public $ item ;
16
16
17
17
/**
18
- * Create the component instance
19
- *
20
- * @param Item $item
21
- *
22
- * @return void
18
+ * Create the component instance.
23
19
*/
24
20
public function __construct (Item $ item )
25
21
{
26
22
$ this ->item = $ item ;
27
23
}
28
24
29
25
/**
30
- * Get the view / contents that represents the component
26
+ * Get the view / contents that represents the component.
31
27
*
32
28
* @return \Illuminate\View\View
33
29
*/
Original file line number Diff line number Diff line change 8
8
class Header extends Component
9
9
{
10
10
/**
11
- * The item
11
+ * The item.
12
12
*
13
13
* @var Item
14
14
*/
15
15
public $ item ;
16
16
17
17
/**
18
- * Create the component instance
19
- *
20
- * @param Item $item
21
- *
22
- * @return void
18
+ * Create the component instance.
23
19
*/
24
20
public function __construct (Item $ item )
25
21
{
26
22
$ this ->item = $ item ;
27
23
}
28
24
29
25
/**
30
- * Get the view / contents that represents the component
26
+ * Get the view / contents that represents the component.
31
27
*
32
28
* @return \Illuminate\View\View
33
29
*/
Original file line number Diff line number Diff line change 8
8
class Icon extends Component
9
9
{
10
10
/**
11
- * The item icon
11
+ * The item icon.
12
12
*
13
13
* @var string
14
14
*/
15
15
public $ icon ;
16
16
17
17
/**
18
- * The item
18
+ * The item.
19
19
*
20
20
* @var Item
21
21
*/
22
22
public $ item ;
23
23
24
24
/**
25
- * Create the component instance
26
- *
27
- * @param Item $item
28
- *
29
- * @return void
25
+ * Create the component instance.
30
26
*/
31
27
public function __construct (Item $ item )
32
28
{
@@ -35,7 +31,7 @@ public function __construct(Item $item)
35
31
}
36
32
37
33
/**
38
- * Get the view / contents that represents the component
34
+ * Get the view / contents that represents the component.
39
35
*
40
36
* @return \Illuminate\View\View
41
37
*/
Original file line number Diff line number Diff line change 8
8
class Item extends Component
9
9
{
10
10
/**
11
- * The item
11
+ * The item.
12
12
*
13
13
* @var Item
14
14
*/
15
15
public $ item ;
16
16
17
17
/**
18
- * Create the component instance
19
- *
20
- * @param MenusManagerItem $item
21
- * @return void
18
+ * Create the component instance.
22
19
*/
23
20
public function __construct (MenusManagerItem $ item )
24
21
{
25
22
$ this ->item = $ item ;
26
23
}
27
24
28
25
/**
29
- * Get the view / contents that represents the component
26
+ * Get the view / contents that represents the component.
30
27
*
31
28
* @return \Illuminate\View\View
32
29
*/
Original file line number Diff line number Diff line change 9
9
class Menu extends Component
10
10
{
11
11
/**
12
- * The menu items
12
+ * The menu items.
13
13
*
14
14
* @var Collection
15
15
*/
16
16
public $ items ;
17
-
17
+
18
18
/**
19
- * The menu
19
+ * The menu.
20
20
*
21
21
* @var string
22
22
*/
23
23
public $ menu ;
24
24
25
25
/**
26
- * Create the component instance
26
+ * Create the component instance.
27
27
*
28
- * @param string $type
29
- * @param string $message
30
- * @return void
28
+ * @param string $type
29
+ * @param string $message
30
+ * @param mixed $name
31
31
*/
32
32
public function __construct ($ name )
33
33
{
@@ -36,7 +36,7 @@ public function __construct($name)
36
36
}
37
37
38
38
/**
39
- * Get the view / contents that represents the component
39
+ * Get the view / contents that represents the component.
40
40
*
41
41
* @return \Illuminate\View\View
42
42
*/
You can’t perform that action at this time.
0 commit comments