Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / template / plugin / SmallpagesFunctionTemplatePlugin.class.php
index 475c435f303265efde3cd589f021895a163f47d1..c5f5780dc9024160ac671eba3b7f92c2b74a7994 100644 (file)
@@ -1,55 +1,61 @@
 <?php
+
 namespace wcf\system\template\plugin;
+
 use wcf\system\template\TemplateEngine;
 
 /**
  * Template function plugin which generates simple sliding pagers.
- * 
+ *
  * Usage:
- *     {smallpages pages=10 link='page-%d.html'}
- *     
- *     assign to variable 'output'; do not print: 
- *     {smallpages pages=10 link='page-%d.html' assign='output'}
- *     
- *     assign to variable 'output' and do print also:
- *     {smallpages pages=10 link='page-%d.html' assign='output' print=true}
- * 
- * @author     Marcel Werk
- * @copyright  2001-2019 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package    WoltLabSuite\Core\System\Template\Plugin
+ *  {smallpages pages=10 link='page-%d.html'}
+ *
+ *  assign to variable 'output'; do not print:
+ *  {smallpages pages=10 link='page-%d.html' assign='output'}
+ *
+ *  assign to variable 'output' and do print also:
+ *  {smallpages pages=10 link='page-%d.html' assign='output' print=true}
+ *
+ * @author  Marcel Werk
+ * @copyright   2001-2019 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\System\Template\Plugin
  */
-class SmallpagesFunctionTemplatePlugin extends PagesFunctionTemplatePlugin {
-       /**
-        * @inheritDoc
-        */
-       const SHOW_LINKS = 7;
-       
-       /**
-        * @inheritDoc
-        */
-       protected $cssClassName = 'pagination small';
-       
-       /**
-        * @inheritDoc
-        */
-       protected function makePreviousLink($link, $pageNo) {
-               return '';
-       }
-       
-       /**
-        * @inheritDoc
-        */
-       protected function makeNextLink($link, $pageNo, $pages) {
-               return '';
-       }
-       
-       /**
-        * @inheritDoc
-        */
-       public function execute($tagArgs, TemplateEngine $tplObj) {
-               $tagArgs['page'] = 0;
-               
-               return parent::execute($tagArgs, $tplObj);
-       }
+class SmallpagesFunctionTemplatePlugin extends PagesFunctionTemplatePlugin
+{
+    /**
+     * @inheritDoc
+     */
+    const SHOW_LINKS = 7;
+
+    /**
+     * @inheritDoc
+     */
+    protected $cssClassName = 'pagination small';
+
+    /**
+     * @inheritDoc
+     */
+    protected function makePreviousLink($link, $pageNo)
+    {
+        return '';
+    }
+
+    /**
+     * @inheritDoc
+     */
+    protected function makeNextLink($link, $pageNo, $pages)
+    {
+        return '';
+    }
+
+    /**
+     * @inheritDoc
+     */
+    public function execute($tagArgs, TemplateEngine $tplObj)
+    {
+        $tagArgs['page'] = 0;
+
+        return parent::execute($tagArgs, $tplObj);
+    }
 }