]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/formatter/FormatterFactory.php
Apply PHP Code Beautifier on source code for linter automatic fixes
[github/shaarli/Shaarli.git] / application / formatter / FormatterFactory.php
index 5f282f686b95ace2439c6db273be4ce78637f876..bb865aedfb06023372813b64c9defcf4f49d1d1d 100644 (file)
@@ -38,10 +38,10 @@ class FormatterFactory
      *
      * @return BookmarkFormatter instance.
      */
-    public function getFormatter(string $type = null)
+    public function getFormatter(string $type = null): BookmarkFormatter
     {
         $type = $type ? $type : $this->conf->get('formatter', 'default');
-        $className = '\\Shaarli\\Formatter\\Bookmark'. ucfirst($type) .'Formatter';
+        $className = '\\Shaarli\\Formatter\\Bookmark' . ucfirst($type) . 'Formatter';
         if (!class_exists($className)) {
             $className = '\\Shaarli\\Formatter\\BookmarkDefaultFormatter';
         }