From cdefa2563889eef646a630ad65da9cfe0ec592d7 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Sun, 26 Aug 2018 20:48:33 +0100
Subject: [PATCH] Make methods static

---
 src/Service/Partials.php            | 4 ++--
 tests/Unit/Service/PartialsTest.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Service/Partials.php b/src/Service/Partials.php
index c03e306..70fe0cb 100644
--- a/src/Service/Partials.php
+++ b/src/Service/Partials.php
@@ -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';
     }
diff --git a/tests/Unit/Service/PartialsTest.php b/tests/Unit/Service/PartialsTest.php
index 71e7f82..802f1bf 100644
--- a/tests/Unit/Service/PartialsTest.php
+++ b/tests/Unit/Service/PartialsTest.php
@@ -29,7 +29,7 @@ class FakePartials extends Partials
     /**
      * {@inheritdoc}
      */
-    protected function getFilePattern($directoryName)
+    protected static function getFilePattern($directoryName)
     {
         return __DIR__ . '/../../stubs/filters/*.php';
     }