@@ -124,7 +124,7 @@ |
||
124 | 124 | ) { |
125 | 125 | call_user_func_array($this->accessors[$propertyName][$processor], array($this, &$row, $propertyName, $fieldName)); |
126 | 126 | } elseif ($fieldName) { |
127 | - if($processor == P_CONTAINER_IMPORTER) { |
|
127 | + if ($processor == P_CONTAINER_IMPORTER) { |
|
128 | 128 | $this->$propertyName = $row[$fieldName]; |
129 | 129 | } else { |
130 | 130 | $row[$fieldName] = $this->$propertyName; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $that = $this; |
104 | 104 | |
105 | 105 | $this->assignAccessor('type', P_CONTAINER_SETTER, |
106 | - function ($that, $value) { |
|
106 | + function($that, $value) { |
|
107 | 107 | $that->type = $value; |
108 | 108 | $array = get_unit_param($value); |
109 | 109 | $that->unitInfo = $array; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | // This crap code is until php 5.4+. There we can use $this binding for lambdas |
119 | 119 | $fieldName = $this->properties[$propertyName = 'timeStart'][P_DB_FIELD]; |
120 | 120 | $this->assignAccessor($propertyName, P_CONTAINER_IMPORTER, |
121 | - function (V2UnitContainer $that, &$row, $propertyName, $fieldName) use ($fieldName) { |
|
121 | + function(V2UnitContainer $that, &$row, $propertyName, $fieldName) use ($fieldName) { |
|
122 | 122 | if (isset($row[$fieldName])) { |
123 | 123 | $dateTime = new \DateTime($row[$fieldName]); |
124 | 124 | } else { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } |
129 | 129 | ); |
130 | 130 | $this->assignAccessor($propertyName, P_CONTAINER_EXPORTER, |
131 | - function (V2UnitContainer $that, &$row, $propertyName, $fieldName) use ($fieldName) { |
|
131 | + function(V2UnitContainer $that, &$row, $propertyName, $fieldName) use ($fieldName) { |
|
132 | 132 | $dateTime = $that->$propertyName; |
133 | 133 | if ($dateTime instanceof \DateTime) { |
134 | 134 | $row[$fieldName] = $dateTime->format(FMT_DATE_TIME_SQL); |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | |
141 | 141 | $fieldName = $this->properties[$propertyName = 'timeFinish'][P_DB_FIELD]; |
142 | 142 | $this->assignAccessor($propertyName, P_CONTAINER_IMPORTER, |
143 | - function (V2UnitContainer $that, &$row, $propertyName, $fieldName) { |
|
143 | + function(V2UnitContainer $that, &$row, $propertyName, $fieldName) { |
|
144 | 144 | if (isset($row[$fieldName])) { |
145 | 145 | $dateTime = new \DateTime($row[$fieldName]); |
146 | 146 | } else { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | } |
151 | 151 | ); |
152 | 152 | $this->assignAccessor($propertyName, P_CONTAINER_EXPORTER, |
153 | - function (V2UnitContainer $that, &$row, $propertyName, $fieldName) { |
|
153 | + function(V2UnitContainer $that, &$row, $propertyName, $fieldName) { |
|
154 | 154 | $dateTime = $that->$propertyName; |
155 | 155 | if ($dateTime instanceof \DateTime) { |
156 | 156 | $row[$fieldName] = $dateTime->format(FMT_DATE_TIME_SQL); |