diff --git a/src/Monolog/Handler/GelfHandler.php b/src/Monolog/Handler/GelfHandler.php
index <HASH>..<HASH> 100644
--- a/src/Monolog/Handler/GelfHandler.php
+++ b/src/Monolog/Handler/GelfHandler.php
@@ -41,26 +41,26 @@ class GelfHandler extends AbstractProcessingHandler
     }
 
     /**
-     * {@inheritDoc}
+     * {@inheritdoc}
      */
-    protected function getDefaultFormatter()
+    public function close()
     {
-        return new GelfMessageFormatter();
+        $this->publisher = null;
     }
 
     /**
      * {@inheritdoc}
      */
-    public function close()
+    protected function write(array $record)
     {
-        $this->publisher = null;
+        $this->publisher->publish($record['formatted']);
     }
 
     /**
-     * {@inheritdoc}
+     * {@inheritDoc}
      */
-    public function write(array $record)
+    protected function getDefaultFormatter()
     {
-        $this->publisher->publish($record['formatted']);
+        return new GelfMessageFormatter();
     }
 }
write method should be protected, and protected methods after public methods