@@ -77,7 +77,7 @@ |
||
| 77 | 77 | |
| 78 | 78 | |
| 79 | 79 | private function toIndex($offset) { |
| 80 | - if ($offset < 0 || filter_var($offset, FILTER_VALIDATE_INT) === false) { |
|
| 80 | + if ($offset<0 || filter_var($offset, FILTER_VALIDATE_INT) === false) { |
|
| 81 | 81 | throw new TDBMInvalidOffsetException('Trying to access result set using offset "'.$offset.'". An offset must be a positive integer.'); |
| 82 | 82 | } |
| 83 | 83 | if ($this->statement === null) { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | class TDBMObjectArray extends \ArrayObject implements \JsonSerializable { |
| 29 | 29 | public function __get($var) { |
| 30 | 30 | $cnt = count($this); |
| 31 | - if ($cnt==1) |
|
| 31 | + if ($cnt == 1) |
|
| 32 | 32 | { |
| 33 | 33 | return $this[0]->__get($var); |
| 34 | 34 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | public function __set($var, $value) { |
| 46 | 46 | $cnt = count($this); |
| 47 | - if ($cnt==1) |
|
| 47 | + if ($cnt == 1) |
|
| 48 | 48 | { |
| 49 | 49 | return $this[0]->__set($var, $value); |
| 50 | 50 | } |
@@ -69,13 +69,13 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function __call($func_name, $values) { |
| 71 | 71 | |
| 72 | - if (strpos($func_name,"getarray_") === 0) { |
|
| 72 | + if (strpos($func_name, "getarray_") === 0) { |
|
| 73 | 73 | $column = substr($func_name, 9); |
| 74 | 74 | return $this->getarray($column); |
| 75 | - } elseif (strpos($func_name,"setarray_") === 0) { |
|
| 75 | + } elseif (strpos($func_name, "setarray_") === 0) { |
|
| 76 | 76 | $column = substr($func_name, 9); |
| 77 | 77 | return $this->setarray($column, $values[0]); |
| 78 | - } elseif (count($this)==1) { |
|
| 78 | + } elseif (count($this) == 1) { |
|
| 79 | 79 | $this[0]->__call($func_name, $values); |
| 80 | 80 | } |
| 81 | 81 | else |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - public function jsonSerialize(){ |
|
| 102 | + public function jsonSerialize() { |
|
| 103 | 103 | return (array) $this; |
| 104 | 104 | } |
| 105 | 105 | } |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * @param string $columnName |
| 86 | 86 | * @param string $value |
| 87 | 87 | */ |
| 88 | - public function __construct($tableName=null, $columnName=null, $value=null) { |
|
| 88 | + public function __construct($tableName = null, $columnName = null, $value = null) { |
|
| 89 | 89 | $this->tableName = $tableName; |
| 90 | 90 | $this->columnName = $columnName; |
| 91 | 91 | $this->value = $value; |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * @param string $columnName |
| 86 | 86 | * @param string $value |
| 87 | 87 | */ |
| 88 | - public function __construct($tableName=null, $columnName=null, $value=null) { |
|
| 88 | + public function __construct($tableName = null, $columnName = null, $value = null) { |
|
| 89 | 89 | $this->tableName = $tableName; |
| 90 | 90 | $this->columnName = $columnName; |
| 91 | 91 | $this->value = $value; |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * @param string $columnName |
| 86 | 86 | * @param string $value |
| 87 | 87 | */ |
| 88 | - public function __construct($tableName=null, $columnName=null, $value=null) { |
|
| 88 | + public function __construct($tableName = null, $columnName = null, $value = null) { |
|
| 89 | 89 | $this->tableName = $tableName; |
| 90 | 90 | $this->columnName = $columnName; |
| 91 | 91 | $this->value = $value; |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * @param string $columnName |
| 86 | 86 | * @param string $value |
| 87 | 87 | */ |
| 88 | - public function __construct($tableName=null, $columnName=null, $value=null) { |
|
| 88 | + public function __construct($tableName = null, $columnName = null, $value = null) { |
|
| 89 | 89 | $this->tableName = $tableName; |
| 90 | 90 | $this->columnName = $columnName; |
| 91 | 91 | $this->value = $value; |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * @param string $columnName |
| 86 | 86 | * @param string $value |
| 87 | 87 | */ |
| 88 | - public function __construct($tableName=null, $columnName=null, $value=null) { |
|
| 88 | + public function __construct($tableName = null, $columnName = null, $value = null) { |
|
| 89 | 89 | $this->tableName = $tableName; |
| 90 | 90 | $this->columnName = $columnName; |
| 91 | 91 | $this->value = $value; |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * @param string $columnName |
| 86 | 86 | * @param string $value |
| 87 | 87 | */ |
| 88 | - public function __construct($tableName=null, $columnName=null, $value=null) { |
|
| 88 | + public function __construct($tableName = null, $columnName = null, $value = null) { |
|
| 89 | 89 | $this->tableName = $tableName; |
| 90 | 90 | $this->columnName = $columnName; |
| 91 | 91 | $this->value = $value; |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | <div class="control-group"> |
| 30 | 30 | <label class="control-label">Store dates / timestamps in UTC:</label> |
| 31 | 31 | <div class="controls"> |
| 32 | - <input type="checkbox" name="storeInUtc" value="1" <?php echo $this->storeInUtc?'checked="checked"':"" ?>></input> |
|
| 32 | + <input type="checkbox" name="storeInUtc" value="1" <?php echo $this->storeInUtc ? 'checked="checked"' : "" ?>></input> |
|
| 33 | 33 | <span class="help-block">Select this option if you want timestamps to be stored in UTC. |
| 34 | 34 | If your application supports several time zones, you should select this option to store all dates in |
| 35 | 35 | the same time zone.</span> |