Code Duplication    Length = 7-7 lines in 2 locations

engine/classes/ElggUser.php 1 location

@@ 58-64 (lines=7) @@
55
		switch ($name) {
56
			case 'prev_last_action':
57
			case 'last_login':
58
			case 'prev_last_login':
59
				if ($value !== null) {
60
					$this->attributes[$name] = (int) $value;
61
				} else {
62
					$this->attributes[$name] = null;
63
				}
64
				break;
65
66
			case 'salt':
67
			case 'password':

engine/classes/ElggEntity.php 1 location

@@ 230-236 (lines=7) @@
227
					break;
228
				case 'access_id':
229
				case 'owner_guid':
230
				case 'container_guid':
231
					if ($value !== null) {
232
						$this->attributes[$name] = (int) $value;
233
					} else {
234
						$this->attributes[$name] = null;
235
					}
236
					break;
237
				default:
238
					$this->attributes[$name] = $value;
239
					break;