Merge branch 'develop' into feature/admin-gpm-dependencies

This commit is contained in:
Flavio Copes
2016-03-16 11:46:51 +01:00
18 changed files with 111 additions and 42 deletions

View File

@@ -261,7 +261,7 @@ class Admin
* @return Data\Data|null
* @throws \RuntimeException
*/
public function data($type, $post = array())
public function data($type, array $post = [])
{
static $data = [];
@@ -270,7 +270,7 @@ class Admin
}
if (!$post) {
$post = isset($_POST) ? $_POST : [];
$post = isset($_POST['data']) ? $_POST['data'] : [];
}
switch ($type) {