@@ -28,7 +28,7 @@ discard block  | 
                                                    ||
| 28 | 28 | public function getClientMayorVersion()  | 
                                                        
| 29 | 29 |      { | 
                                                        
| 30 | 30 | $clientVersion = $this->clientVersion();  | 
                                                        
| 31 | - return (int)substr($clientVersion, 0, strpos($clientVersion, '.'));  | 
                                                        |
| 31 | + return (int) substr($clientVersion, 0, strpos($clientVersion, '.'));  | 
                                                        |
| 32 | 32 | }  | 
                                                        
| 33 | 33 | |
| 34 | 34 | /**  | 
                                                        
@@ -241,9 +241,9 @@ discard block  | 
                                                    ||
| 241 | 241 | /**  | 
                                                        
| 242 | 242 | * @return int  | 
                                                        
| 243 | 243 | */  | 
                                                        
| 244 | -    public function getServerMayorVersion(){ | 
                                                        |
| 244 | +    public function getServerMayorVersion() { | 
                                                        |
| 245 | 245 |          preg_match('/\\d+(:?\\.\\d+)+/', $this->serverVersion(), $matches); | 
                                                        
| 246 | - return (int)substr($matches[0], 0, strpos($matches[0], '.'));  | 
                                                        |
| 246 | + return (int) substr($matches[0], 0, strpos($matches[0], '.'));  | 
                                                        |
| 247 | 247 | }  | 
                                                        
| 248 | 248 | |
| 249 | 249 | /**  | 
                                                        
@@ -241,7 +241,8 @@  | 
                                                    ||
| 241 | 241 | /**  | 
                                                        
| 242 | 242 | * @return int  | 
                                                        
| 243 | 243 | */  | 
                                                        
| 244 | -    public function getServerMayorVersion(){ | 
                                                        |
| 244 | + public function getServerMayorVersion()  | 
                                                        |
| 245 | +    { | 
                                                        |
| 245 | 246 |          preg_match('/\\d+(:?\\.\\d+)+/', $this->serverVersion(), $matches); | 
                                                        
| 246 | 247 | return (int)substr($matches[0], 0, strpos($matches[0], '.'));  | 
                                                        
| 247 | 248 | }  | 
                                                        
@@ -7,4 +7,6 @@  | 
                                                    ||
| 7 | 7 | * @package Jpina\Oci8  | 
                                                        
| 8 | 8 | * @see http://php.net/manual/en/book.oci8.php  | 
                                                        
| 9 | 9 | */  | 
                                                        
| 10 | -class Cursor extends Statement {} | 
                                                        |
| 10 | +class Cursor extends Statement  | 
                                                        |
| 11 | +{ | 
                                                        |
| 12 | +}  | 
                                                        |
@@ -49,8 +49,7 @@ discard block  | 
                                                    ||
| 49 | 49 | $maxTableLength = -1,  | 
                                                        
| 50 | 50 | $maxItemLength = -1,  | 
                                                        
| 51 | 51 | $type = SQLT_AFC  | 
                                                        
| 52 | - )  | 
                                                        |
| 53 | -    { | 
                                                        |
| 52 | +    ) { | 
                                                        |
| 54 | 53 | return oci_bind_array_by_name($this->statement, $name, $varArray, $maxTableLength, $maxItemLength, $type);  | 
                                                        
| 55 | 54 | }  | 
                                                        
| 56 | 55 | |
@@ -69,8 +68,7 @@ discard block  | 
                                                    ||
| 69 | 68 | &$variable,  | 
                                                        
| 70 | 69 | $maxLength = -1,  | 
                                                        
| 71 | 70 | $type = SQLT_CHR  | 
                                                        
| 72 | - )  | 
                                                        |
| 73 | -    { | 
                                                        |
| 71 | +    ) { | 
                                                        |
| 74 | 72 | return oci_bind_by_name($this->statement, $bvName, $variable, $maxLength, $type);  | 
                                                        
| 75 | 73 | }  | 
                                                        
| 76 | 74 | |
@@ -26,8 +26,7 @@  | 
                                                    ||
| 26 | 26 | $connectionString = null,  | 
                                                        
| 27 | 27 | $characterSet = null,  | 
                                                        
| 28 | 28 | $sessionMode = 0  | 
                                                        
| 29 | - )  | 
                                                        |
| 30 | -    { | 
                                                        |
| 29 | +    ) { | 
                                                        |
| 31 | 30 | $this->connection = oci_connect($username, $password, $connectionString, $characterSet, $sessionMode);  | 
                                                        
| 32 | 31 | |
| 33 | 32 | return $this->connection;  |