File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 15
15
16
16
class PagerException extends FrameworkException
17
17
{
18
- public static function forInvalidTemplate (?string $ template = null ): self
18
+ /**
19
+ * Throws when the template is invalid.
20
+ *
21
+ * @return static
22
+ */
23
+ public static function forInvalidTemplate (?string $ template = null )
19
24
{
20
25
return new static (lang ('Pager.invalidTemplate ' , [$ template ]));
21
26
}
22
27
23
- public static function forInvalidPaginationGroup (?string $ group = null ): self
28
+ /**
29
+ * Throws when the group is invalid.
30
+ *
31
+ * @return static
32
+ */
33
+ public static function forInvalidPaginationGroup (?string $ group = null )
24
34
{
25
35
return new static (lang ('Pager.invalidPaginationGroup ' , [$ group ]));
26
36
}
Original file line number Diff line number Diff line change @@ -25,24 +25,30 @@ class PublisherException extends FrameworkException
25
25
*
26
26
* @param string $from The source file
27
27
* @param string $to The destination file
28
+ *
29
+ * @return static
28
30
*/
29
- public static function forCollision (string $ from , string $ to ): self
31
+ public static function forCollision (string $ from , string $ to )
30
32
{
31
33
return new static (lang ('Publisher.collision ' , [filetype ($ to ), $ from , $ to ]));
32
34
}
33
35
34
36
/**
35
37
* Throws when given a destination that is not in the list of allowed directories.
38
+ *
39
+ * @return static
36
40
*/
37
- public static function forDestinationNotAllowed (string $ destination ): self
41
+ public static function forDestinationNotAllowed (string $ destination )
38
42
{
39
43
return new static (lang ('Publisher.destinationNotAllowed ' , [$ destination ]));
40
44
}
41
45
42
46
/**
43
47
* Throws when a file fails to match the allowed pattern for its destination.
48
+ *
49
+ * @return static
44
50
*/
45
- public static function forFileNotAllowed (string $ file , string $ directory , string $ pattern ): self
51
+ public static function forFileNotAllowed (string $ file , string $ directory , string $ pattern )
46
52
{
47
53
return new static (lang ('Publisher.fileNotAllowed ' , [$ file , $ directory , $ pattern ]));
48
54
}
You can’t perform that action at this time.
0 commit comments