Code Duplication    Length = 8-10 lines in 2 locations

src/Column/MultiAction.php 1 location

@@ 133-142 (lines=10) @@
130
	 * @param  string $key
131
	 * @return Action
132
	 */
133
	public function getAction($key)
134
	{
135
		if (!isset($this->actions[$key])) {
136
			throw new DataGridException(
137
				"There is no action at key [$key] defined for MultiAction."
138
			);
139
		}
140
141
		return $this->actions[$key];
142
	}
143
144
145
	/**

src/DataGrid.php 1 location

@@ 1124-1131 (lines=8) @@
1121
	 * @return Column\Action
1122
	 * @throws DataGridException
1123
	 */
1124
	public function getAction($key)
1125
	{
1126
		if (!isset($this->actions[$key])) {
1127
			throw new DataGridException("There is no action at key [$key] defined.");
1128
		}
1129
1130
		return $this->actions[$key];
1131
	}
1132
1133
1134
	/**