@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function getTableFullName() |
| 43 | 43 | { |
| 44 | - return "'" . $this->getTableName() . "'"; |
|
| 44 | + return "'".$this->getTableName()."'"; |
|
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | public function getTableFullName() |
| 50 | 50 | { |
| 51 | 51 | //MSSQL alway returns the catalog, schem and table names. |
| 52 | - return '[' . $this->getCatalogName() . '].[' . $this->getSchemaName() . '].[' . $this->getTableName() . ']'; |
|
| 52 | + return '['.$this->getCatalogName().'].['.$this->getSchemaName().'].['.$this->getTableName().']'; |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | E_USER_NOTICE => "User Notice", |
| 47 | 47 | E_STRICT => "Runtime Notice" |
| 48 | 48 | ]; |
| 49 | - $errorType = isset($errorTypes[$errno])?$errorTypes[$errno]:'Unknown Error'; |
|
| 49 | + $errorType = isset($errorTypes[$errno]) ? $errorTypes[$errno] : 'Unknown Error'; |
|
| 50 | 50 | parent::__construct("[$errorType] $errstr (@line $errline in file $errfile)."); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | public function __toString() |
| 49 | 49 | { |
| 50 | - return (string)$this->_s; |
|
| 50 | + return (string) $this->_s; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | public function toJavaScriptLiteral() |
@@ -20,9 +20,9 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | class THttpUtility |
| 22 | 22 | { |
| 23 | - private static $_encodeTable = ['<' => '<','>' => '>','"' => '"']; |
|
| 24 | - private static $_decodeTable = ['<' => '<','>' => '>','"' => '"']; |
|
| 25 | - private static $_stripTable = ['<' => '','>' => '','"' => '']; |
|
| 23 | + private static $_encodeTable = ['<' => '<', '>' => '>', '"' => '"']; |
|
| 24 | + private static $_decodeTable = ['<' => '<', '>' => '>', '"' => '"']; |
|
| 25 | + private static $_stripTable = ['<' => '', '>' => '', '"' => '']; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * HTML-encodes a string. |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | $code = strtoupper($this->getToggleKey()); |
| 87 | 87 | $info = '(<a href="http://web.archive.org/web/20060512041505/gleepglop.com/javascripts/logger/" target="_blank">more info</a>).'; |
| 88 | 88 | $link = '<a href="javascript:if(logConsole)logConsole.toggle()">toggle the javascript log console.</a>'; |
| 89 | - $usage = 'Press ALT-' . $code . ' (Or CTRL-' . $code . ' on OS X) to'; |
|
| 89 | + $usage = 'Press ALT-'.$code.' (Or CTRL-'.$code.' on OS X) to'; |
|
| 90 | 90 | $writer->write("{$usage} {$link} {$info}"); |
| 91 | 91 | } |
| 92 | 92 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | public function writeLine($str = '') |
| 55 | 55 | { |
| 56 | - $this->write($str . "\n"); |
|
| 56 | + $this->write($str."\n"); |
|
| 57 | 57 | } |
| 58 | 58 | } |
| 59 | 59 | |
@@ -23,6 +23,6 @@ |
||
| 23 | 23 | { |
| 24 | 24 | private $_generate; |
| 25 | 25 | |
| 26 | - public function getGenerate(){ return $this->_generate; } |
|
| 27 | - public function setGenerate($value){ $this->_generate = $value; } |
|
| 26 | + public function getGenerate() { return $this->_generate; } |
|
| 27 | + public function setGenerate($value) { $this->_generate = $value; } |
|
| 28 | 28 | } |
| 29 | 29 | \ No newline at end of file |
@@ -26,18 +26,18 @@ |
||
| 26 | 26 | private $_keys; |
| 27 | 27 | private $_method = TMappedStatement::QUERY_FOR_LIST; |
| 28 | 28 | |
| 29 | - public function getStatement(){ return $this->_statement; } |
|
| 30 | - public function setStatement($value){ $this->_statement = $value; } |
|
| 29 | + public function getStatement() { return $this->_statement; } |
|
| 30 | + public function setStatement($value) { $this->_statement = $value; } |
|
| 31 | 31 | |
| 32 | - public function getResultProperty(){ return $this->_property; } |
|
| 33 | - public function setResultProperty($value){ $this->_property = $value; } |
|
| 32 | + public function getResultProperty() { return $this->_property; } |
|
| 33 | + public function setResultProperty($value) { $this->_property = $value; } |
|
| 34 | 34 | |
| 35 | - public function getResultObject(){ return $this->_resultObject; } |
|
| 36 | - public function setResultObject($value){ $this->_resultObject = $value; } |
|
| 35 | + public function getResultObject() { return $this->_resultObject; } |
|
| 36 | + public function setResultObject($value) { $this->_resultObject = $value; } |
|
| 37 | 37 | |
| 38 | - public function getKeys(){ return $this->_keys; } |
|
| 39 | - public function setKeys($value){ $this->_keys = $value; } |
|
| 38 | + public function getKeys() { return $this->_keys; } |
|
| 39 | + public function setKeys($value) { $this->_keys = $value; } |
|
| 40 | 40 | |
| 41 | - public function getMethod(){ return $this->_method; } |
|
| 42 | - public function setMethod($value){ $this->_method = $value; } |
|
| 41 | + public function getMethod() { return $this->_method; } |
|
| 42 | + public function setMethod($value) { $this->_method = $value; } |
|
| 43 | 43 | } |
| 44 | 44 | \ No newline at end of file |