Code Duplication    Length = 8-10 lines in 2 locations

src/Column/MultiAction.php 1 location

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

src/DataGrid.php 1 location

@@ 1110-1117 (lines=8) @@
1107
	 * @return Column\Action
1108
	 * @throws DataGridException
1109
	 */
1110
	public function getAction($key)
1111
	{
1112
		if (!isset($this->actions[$key])) {
1113
			throw new DataGridException("There is no action at key [$key] defined.");
1114
		}
1115
1116
		return $this->actions[$key];
1117
	}
1118
1119
1120
	/**