Code Duplication    Length = 15-15 lines in 2 locations

framework/Data/SqlMap/Statements/TMappedStatement.php 1 location

@@ 934-948 (lines=15) @@
931
		}
932
	}
933
934
	public function __sleep()
935
	{
936
		$exprops = [];
937
		$cn = __CLASS__;
938
		if (!count($this->_selectQueue)) {
939
			$exprops[] = "\0$cn\0_selectQueue";
940
		}
941
		if (null === $this->_groupBy) {
942
			$exprops[] = "\0$cn\0_groupBy";
943
		}
944
		if (!$this->_IsRowDataFound) {
945
			$exprops[] = "\0$cn\0_IsRowDataFound";
946
		}
947
		return array_diff(parent::__sleep(), $exprops);
948
	}
949
}
950

framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php 1 location

@@ 200-214 (lines=15) @@
197
		return $this->_list;
198
	}
199
200
	public function __sleep()
201
	{
202
		$exprops = [];
203
		$cn = __CLASS__;
204
		if (!count($this->_tree)) {
205
			$exprops[] = "\0$cn\0_tree";
206
		}
207
		if (!count($this->_entries)) {
208
			$exprops[] = "\0$cn\0_entries";
209
		}
210
		if (!count($this->_list)) {
211
			$exprops[] = "\0$cn\0_list";
212
		}
213
		return array_diff(parent::__sleep(), $exprops);
214
	}
215
}
216