Completed
Push — master ( ab1148...78a8ff )
by Christopher
02:58
created
Connection.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -424,8 +424,6 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -206,8 +206,8 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
DataReader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,10 +71,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Query.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,11 +88,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.