mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-22 20:17:31 +00:00
Make methods static
This commit is contained in:
parent
c10906e56e
commit
cdefa25638
|
@ -16,7 +16,7 @@ class Partials
|
|||
*/
|
||||
public static function load($directoryName = 'filters')
|
||||
{
|
||||
$files = (new static())->getFilePattern($directoryName);
|
||||
$files = static::getFilePattern($directoryName);
|
||||
|
||||
return collect(glob($files))
|
||||
->map(function ($filename) {
|
||||
|
@ -36,7 +36,7 @@ class Partials
|
|||
*
|
||||
* @return string The full path.
|
||||
*/
|
||||
protected function getFilePattern($directoryName)
|
||||
protected static function getFilePattern($directoryName)
|
||||
{
|
||||
return getcwd() . DIRECTORY_SEPARATOR . $directoryName . DIRECTORY_SEPARATOR . '*.php';
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ class FakePartials extends Partials
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function getFilePattern($directoryName)
|
||||
protected static function getFilePattern($directoryName)
|
||||
{
|
||||
return __DIR__ . '/../../stubs/filters/*.php';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue