@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Brightoak\WordPressTools; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | 5 | use Brightoak\WordPressTools\Exceptions\InvalidArgumentException; |
6 | +use Illuminate\Support\Str; |
|
7 | 7 | |
8 | 8 | class CustomPostType |
9 | 9 | { |
@@ -84,6 +84,9 @@ |
||
84 | 84 | return $this; |
85 | 85 | } |
86 | 86 | |
87 | + /** |
|
88 | + * @param string $singular |
|
89 | + */ |
|
87 | 90 | protected function calculateLabels($singular) |
88 | 91 | { |
89 | 92 | $singular = ($this->getSingularLabel()) ?? str_replace('_', ' ', $singular); |