@@ -132,12 +132,12 @@ discard block |
||
132 | 132 | $servers = (!empty($this->config[ 'servers' ]) && is_array($this->config[ 'servers' ]) ? $this->config[ 'servers' ] : []); |
133 | 133 | if (count($servers) < 1) { |
134 | 134 | $servers = [ |
135 | - [ |
|
135 | + [ |
|
136 | 136 | 'host' => !empty($this->config[ 'host' ]) ? $this->config[ 'host' ] : '127.0.0.1', |
137 | 137 | 'port' => !empty($this->config[ 'port' ]) ? $this->config[ 'port' ] : 11211, |
138 | 138 | 'sasl_user' => !empty($this->config[ 'sasl_user' ]) ? $this->config[ 'sasl_user' ] : false, |
139 | 139 | 'sasl_password' => !empty($this->config[ 'sasl_password' ]) ? $this->config[ 'sasl_password' ] : false, |
140 | - ], |
|
140 | + ], |
|
141 | 141 | ]; |
142 | 142 | } |
143 | 143 | |
@@ -174,9 +174,9 @@ discard block |
||
174 | 174 | $date = (new \DateTime())->setTimestamp(time() - $stats[ 'uptime' ]); |
175 | 175 | |
176 | 176 | return (new driverStatistic()) |
177 | - ->setData(implode(', ', array_keys($this->itemInstances))) |
|
178 | - ->setInfo(sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats[ 'version' ], $date->format(DATE_RFC2822))) |
|
179 | - ->setRawData($stats) |
|
180 | - ->setSize($stats[ 'bytes' ]); |
|
177 | + ->setData(implode(', ', array_keys($this->itemInstances))) |
|
178 | + ->setInfo(sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats[ 'version' ], $date->format(DATE_RFC2822))) |
|
179 | + ->setRawData($stats) |
|
180 | + ->setSize($stats[ 'bytes' ]); |
|
181 | 181 | } |
182 | 182 | } |
183 | 183 | \ No newline at end of file |
@@ -131,12 +131,12 @@ discard block |
||
131 | 131 | $servers = (!empty($this->config[ 'servers' ]) && is_array($this->config[ 'servers' ]) ? $this->config[ 'servers' ] : []); |
132 | 132 | if (count($servers) < 1) { |
133 | 133 | $servers = [ |
134 | - [ |
|
134 | + [ |
|
135 | 135 | 'host' => !empty($this->config[ 'host' ]) ? $this->config[ 'host' ] : '127.0.0.1', |
136 | 136 | 'port' => !empty($this->config[ 'port' ]) ? $this->config[ 'port' ] : 11211, |
137 | 137 | 'sasl_user' => !empty($this->config[ 'sasl_user' ]) ? $this->config[ 'sasl_user' ] : false, |
138 | 138 | 'sasl_password' => !empty($this->config[ 'sasl_password' ]) ? $this->config[ 'sasl_password' ] : false, |
139 | - ], |
|
139 | + ], |
|
140 | 140 | ]; |
141 | 141 | } |
142 | 142 | |
@@ -173,9 +173,9 @@ discard block |
||
173 | 173 | $date = (new \DateTime())->setTimestamp(time() - $stats[ 'uptime' ]); |
174 | 174 | |
175 | 175 | return (new driverStatistic()) |
176 | - ->setData(implode(', ', array_keys($this->itemInstances))) |
|
177 | - ->setInfo(sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats[ 'version' ], $date->format(DATE_RFC2822))) |
|
178 | - ->setRawData($stats) |
|
179 | - ->setSize($stats[ 'bytes' ]); |
|
176 | + ->setData(implode(', ', array_keys($this->itemInstances))) |
|
177 | + ->setInfo(sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats[ 'version' ], $date->format(DATE_RFC2822))) |
|
178 | + ->setRawData($stats) |
|
179 | + ->setSize($stats[ 'bytes' ]); |
|
180 | 180 | } |
181 | 181 | } |
182 | 182 | \ No newline at end of file |