Skip to content

Commit b501233

Browse files
committed
We're on PHP 5.4
1 parent d82286b commit b501233

File tree

271 files changed

+580
-580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+580
-580
lines changed

phpmyfaq/add.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* This is the page there a user can add a FAQ record.
44
*
5-
* PHP Version 5.3
5+
* PHP Version 5.4
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public License,
88
* v. 2.0. If a copy of the MPL was not distributed with this file, You can

phpmyfaq/admin/ajax.attachment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* AJAX: handles an attachment with the given id
44
*
5-
* PHP Version 5.3
5+
* PHP Version 5.4
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public License,
88
* v. 2.0. If a copy of the MPL was not distributed with this file, You can

phpmyfaq/admin/ajax.autosave.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Autosave handler.
44
*
5-
* PHP Version 5.3
5+
* PHP Version 5.4
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public License,
88
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
@@ -63,12 +63,12 @@
6363

6464
$tagging = new PMF_Tags($faqConfig);
6565

66-
$category = new PMF_Category($faqConfig, array(), false);
66+
$category = new PMF_Category($faqConfig, [], false);
6767
$category->setUser($currentAdminUser);
6868
$category->setGroups($currentAdminGroups);
6969

7070
if (!isset($categories['rubrik'])) {
71-
$categories['rubrik'] = array();
71+
$categories['rubrik'] = [];
7272
}
7373

7474
$recordData = array(

phpmyfaq/admin/ajax.category.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* AJAX: handling of Ajax category calls
44
*
5-
* PHP Version 5.3
5+
* PHP Version 5.4
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public License,
88
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
@@ -32,7 +32,7 @@
3232

3333
case 'getpermissions':
3434

35-
$category = new PMF_Category($faqConfig, array(), false);
35+
$category = new PMF_Category($faqConfig, [], false);
3636
$category->setUser($currentAdminUser);
3737
$category->setGroups($currentAdminGroups);
3838

phpmyfaq/admin/ajax.comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* AJAX: deletes comments with the given id
44
*
5-
* PHP Version 5.3
5+
* PHP Version 5.4
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public License,
88
* v. 2.0. If a copy of the MPL was not distributed with this file, You can

phpmyfaq/admin/ajax.group.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* AJAX: handling of Ajax group calls
44
*
5-
* PHP Version 5.3
5+
* PHP Version 5.4
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public License,
88
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
@@ -33,11 +33,11 @@
3333

3434
$user = new PMF_User($faqConfig);
3535
$userList = $user->getAllUsers();
36-
$groupList = ($user->perm instanceof PMF_Perm_Medium) ? $user->perm->getAllGroups() : array();
36+
$groupList = ($user->perm instanceof PMF_Perm_Medium) ? $user->perm->getAllGroups() : [];
3737

3838
// Returns all groups
3939
if ('get_all_groups' == $ajaxAction) {
40-
$groups = array();
40+
$groups = [];
4141
foreach ($groupList as $groupId) {
4242
$data = $user->perm->getGroupData($groupId);
4343
$groups[] = array(
@@ -60,7 +60,7 @@
6060

6161
// Return all users
6262
if ('get_all_users' == $ajaxAction) {
63-
$users = array();
63+
$users = [];
6464
foreach ($userList as $single_user) {
6565
$user->getUserById($single_user);
6666
$users[] = array('user_id' => $user->getUserId(),
@@ -72,7 +72,7 @@
7272
// Returns all group members
7373
if ('get_all_members' == $ajaxAction) {
7474
$memberList = $user->perm->getGroupMembers($groupId);
75-
$members = array();
75+
$members = [];
7676
foreach ($memberList as $single_member) {
7777
$user->getUserById($single_member);
7878
$members[] = array('user_id' => $user->getUserId(),

phpmyfaq/admin/ajax.ondemandurl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Performs link verification at demand of the user.
99
*
10-
* PHP Version 5.3
10+
* PHP Version 5.4
1111
*
1212
* This Source Code Form is subject to the terms of the Mozilla Public License,
1313
* v. 2.0. If a copy of the MPL was not distributed with this file, You can

phpmyfaq/admin/ajax.records.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* AJAX: handling of Ajax record calls
44
*
5-
* PHP Version 5.3
5+
* PHP Version 5.4
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public License,
88
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
@@ -33,7 +33,7 @@
3333
// array( 0 => array((int)id, (string)langugage, (int) checked)),
3434
// 1 => .....
3535
// )
36-
$items = isset($_GET['items']) && is_array($_GET['items']) ? $_GET['items'] : array();
36+
$items = isset($_GET['items']) && is_array($_GET['items']) ? $_GET['items'] : [];
3737

3838
if (!isset($items[0][2])) {
3939
$items[0][2] = 0;

phpmyfaq/admin/ajax.search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* AJAX: handling of Ajax search calls
44
*
5-
* PHP Version 5.3
5+
* PHP Version 5.4
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public License,
88
* v. 2.0. If a copy of the MPL was not distributed with this file, You can

phpmyfaq/admin/ajax.tags_list.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* AJAX: Search for tags
44
*
5-
* PHP Version 5.3
5+
* PHP Version 5.4
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public License,
88
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
@@ -45,7 +45,7 @@
4545

4646
if ($permission['editbt']) {
4747
$i = 0;
48-
$tagNames = array();
48+
$tagNames = [];
4949
foreach ($tags as $tagName) {
5050
$i++;
5151
if ($i <= PMF_TAGS_AUTOCOMPLETE_RESULT_SET_SIZE) {

0 commit comments

Comments
 (0)