Code Duplication    Length = 7-7 lines in 2 locations

core/Container/Comment_Meta_Container.php 1 location

@@ 127-133 (lines=7) @@
124
	 * @param int $object_id
125
	 * @return bool
126
	 **/
127
	public function is_valid_attach_for_object( $object_id = null ) {
128
		$environment->get_environment_for_object( intval( $object_id ) );
129
		if ( ! $this->conditions_collection->is_fulfilled( $environment ) ) {
130
			return false;
131
		}
132
		return true;
133
	}
134
135
	/**
136
	 * Add meta box to the comment

core/Container/Theme_Options_Container.php 1 location

@@ 128-134 (lines=7) @@
125
	 * @param int $object_id
126
	 * @return bool
127
	 **/
128
	public function is_valid_attach_for_object( $object_id = null ) {
129
		$environment = $this->get_environment_for_object( intval( $object_id ) );
130
		if ( ! $this->conditions_collection->is_fulfilled( $environment ) ) {
131
			return false;
132
		}
133
		return true;
134
	}
135
136
	/**
137
	 * Add theme options container pages.