|
@@ -104,7 +104,7 @@ discard block |
|
|
block discarded – undo |
|
104
|
104
|
public function getClientMayorVersion() |
|
105
|
105
|
{ |
|
106
|
106
|
$clientVersion = $this->getClientVersion(); |
|
107
|
|
- return (int)substr($clientVersion, 0, strpos($clientVersion, '.')); |
|
|
107
|
+ return (int) substr($clientVersion, 0, strpos($clientVersion, '.')); |
|
108
|
108
|
} |
|
109
|
109
|
|
|
110
|
110
|
public function getClientVersion() |
|
@@ -139,7 +139,7 @@ discard block |
|
|
block discarded – undo |
|
139
|
139
|
public function getServerMayorVersion() |
|
140
|
140
|
{ |
|
141
|
141
|
preg_match('/\\d+(:?\\.\\d+)+/', $this->getServerVersion(), $matches); |
|
142
|
|
- return (int)substr($matches[0], 0, strpos($matches[0], '.')); |
|
|
142
|
+ return (int) substr($matches[0], 0, strpos($matches[0], '.')); |
|
143
|
143
|
} |
|
144
|
144
|
|
|
145
|
145
|
public function getServerVersion() |
Please login to merge, or discard this patch.