Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 583f8a1

Browse files
committed
Merge branch 'release/4.1.0'
2 parents 178ef04 + ac1de1e commit 583f8a1

26 files changed

Lines changed: 2097 additions & 1987 deletions

.travis.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
language: php
2-
3-
env:
4-
global:
5-
# - GLPI_SOURCE="https://github.com/glpi-project/glpi -b 9.2/bugfixes"
6-
- PHPUNIT_ARGS="--verbose --debug"
7-
- CS=7.2
8-
matrix:
9-
# - GLPI_BRANCH=9.2.1
10-
# - GLPI_BRANCH=9.2/bugfixes
11-
# - GLPI_BRANCH=master
12-
13-
php:
2+
php:
143
- 5.6
154
- 7.0
165
- 7.1
176
- 7.2
187
- nightly
198

20-
allow_failures:
21-
- php: nightly
9+
env:
10+
# global:
11+
# matrix:
12+
# - GLPI_BRANCH=9.2.1
13+
# - GLPI_BRANCH=9.2/bugfixes
14+
# - GLPI_BRANCH=master
15+
16+
matrix:
17+
allow_failures:
18+
- php: nightly
2219

2320
before_script:
2421
# - mysql -u root -e 'create database glpitest;'
@@ -28,12 +25,11 @@ before_script:
2825
# - if [ -e scripts/cliinstall.php ] ; then php scripts/cliinstall.php --db=glpitest --user=root --tests ; fi
2926
# - if [ -e tools/cliinstall.php ] ; then php tools/cliinstall.php --db=glpitest --user=root --tests ; fi
3027
# - cd plugins/formcreator
31-
- rm composer.lock
28+
- composer self-update
3229
- composer install
3330

3431
script:
35-
# - vendor/bin/phpunit $PHPUNIT_ARGS
36-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "$CS" ]] ; then vendor/bin/robo --no-interaction code:cs; fi
32+
- vendor/bin/robo --no-interaction code:cs
3733

3834
cache:
3935
directories:

.tx/config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[main]
22
host = https://www.transifex.com
33

4-
[glpi-plugin-mantisbt.en_gbpo]
4+
[glpi-plugin-mantisbt.mantis-pot]
55
file_filter = locales/<lang>.po
66
source_file = locales/mantis.pot
77
source_lang = en_GB
8+
type = PO

ajax/ajax.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,21 +252,21 @@
252252
}
253253

254254
if ($conf->fields['status_after_escalation'] != 0) {
255-
$res = $ticket->update(array(
255+
$res = $ticket->update([
256256
'id' => $ticket->fields['id'],
257257
'status' => $conf->fields['status_after_escalation']
258-
));
258+
]);
259259

260260
if ($_POST['linkedTicket'] == 'true' && $_POST['itemType'] == 'Ticket') {
261261
$tickets = Ticket_Ticket::getLinkedTicketsTo($id_ticket);
262262

263263
foreach ($tickets as $link_ticket) {
264264
$t = new ticket();
265265
$t->getFromDB($link_ticket['tickets_id']);
266-
$t->update(array(
266+
$t->update([
267267
'id' => $t->fields['id'],
268268
'status' => $conf->fields['status_after_escalation']
269-
));
269+
]);
270270
}
271271
}
272272
}

composer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
2-
"minimum-stability": "dev",
3-
"prefer-stable": true,
42
"require": {
53
"php": ">= 5.6.0"
64
},
75
"require-dev": {
8-
"glpi-project/tools": "^0.1.0",
9-
"glpi-project/coding-standard": "0.5.0"
6+
"glpi-project/tools": "^0.1"
7+
},
8+
"config": {
9+
"platform": {
10+
"php": "5.6"
11+
}
1012
}
1113
}

0 commit comments

Comments
 (0)