浏览代码

Merge pull request #1775 from pulzarraider/admin_cs_fix

Admin minor CS fixes
Thomas 11 年之前
父节点
当前提交
2ce5212aed
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      Admin/Admin.php

+ 6 - 5
Admin/Admin.php

@@ -2565,9 +2565,9 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
     /**
      * Set custom per page options
      *
-     * @param $options
+     * @param array $options
      */
-    public function setPerPageOptions($options)
+    public function setPerPageOptions(array $options)
     {
         $this->perPageOptions = $options;
     }
@@ -2585,12 +2585,13 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
     /**
      * Returns true if the per page value is allowed, false otherwise
      *
-     * @param $per_page
+     * @param int $perPage
+     *
      * @return bool
      */
-    public function determinedPerPageValue($per_page)
+    public function determinedPerPageValue($perPage)
     {
-        return in_array($per_page, $this->perPageOptions);
+        return in_array($perPage, $this->perPageOptions);
     }
 
     /**