@@ -424,8 +424,6 @@ |
||
| 424 | 424 | /** |
| 425 | 425 | * Send LDAP pagination control. |
| 426 | 426 | * |
| 427 | - * @param int $pageSize |
|
| 428 | - * @param bool $isCritical |
|
| 429 | 427 | * @param string $cookie |
| 430 | 428 | * @return bool |
| 431 | 429 | */ |
@@ -206,8 +206,8 @@ |
||
| 206 | 206 | $results[] = $result; |
| 207 | 207 | } while ($cookie !== null && $cookie != ''); |
| 208 | 208 | |
| 209 | - if($this->offset > 0){ |
|
| 210 | - $results = $results[intval($this->offset/$this->pageSize -1)]; |
|
| 209 | + if ($this->offset > 0) { |
|
| 210 | + $results = $results[intval($this->offset / $this->pageSize - 1)]; |
|
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | return new DataReader($this, $results); |
@@ -71,10 +71,10 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function __construct(Connection $conn, $results, $config = []) |
| 73 | 73 | { |
| 74 | - $this->_conn = $conn; |
|
| 74 | + $this->_conn = $conn; |
|
| 75 | 75 | $this->_results = $results; |
| 76 | 76 | |
| 77 | - if(is_array($this->_results)){ |
|
| 77 | + if (is_array($this->_results)) { |
|
| 78 | 78 | foreach ($this->_results as $result) { |
| 79 | 79 | $this->_count += $this->_conn->countEntries($result); |
| 80 | 80 | $this->setEntries($result); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * @param resource $result |
| 99 | 99 | * @return void |
| 100 | 100 | */ |
| 101 | - protected function setEntries($result){ |
|
| 101 | + protected function setEntries($result) { |
|
| 102 | 102 | $identifier = ldap_first_entry( |
| 103 | 103 | $this->_conn->resource, |
| 104 | 104 | $result |
@@ -88,11 +88,11 @@ |
||
| 88 | 88 | |
| 89 | 89 | $select = (is_array($this->select)) ? $this->select : []; |
| 90 | 90 | |
| 91 | - if(ctype_digit((string) $this->limit)){ |
|
| 91 | + if (ctype_digit((string) $this->limit)) { |
|
| 92 | 92 | $db->pageSize = $this->limit; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - if(ctype_digit((string) $this->offset)){ |
|
| 95 | + if (ctype_digit((string) $this->offset)) { |
|
| 96 | 96 | $db->offset = $this->offset == 0 ? 1 : $this->offset; |
| 97 | 97 | } |
| 98 | 98 | |