Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.

Commit 2d756b4

Browse files
Merge pull request #84 from alexislefebvre/upgrade-travis-ci
Update Travis CI configuration
2 parents 092a244 + 8d2df7a commit 2d756b4

File tree

2 files changed

+29
-28
lines changed

2 files changed

+29
-28
lines changed

.travis.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cache:
1515
- $HOME/.composer/cache
1616

1717
php:
18-
- 7.1
18+
- 7.2
1919

2020
stages:
2121
- analysis
@@ -26,18 +26,18 @@ jobs:
2626
- stage: analysis
2727
name: "php-cs-fixer"
2828
before_install:
29-
- docker pull jakzal/phpqa:alpine
29+
- docker pull jakzal/phpqa:1.25-php7.2-alpine
3030
script:
31-
- docker run --volume $PWD:/app --workdir /app jakzal/phpqa:alpine php-cs-fixer fix src/ --dry-run
31+
- docker run --volume $PWD:/app --workdir /app jakzal/phpqa:1.25-php7.2-alpine php-cs-fixer fix src/ --dry-run
3232
- name: "phpstan"
3333
install:
3434
- composer install --no-interaction --profile --no-progress
3535
script:
36-
- docker run --volume $PWD:/app --workdir /app jakzal/phpqa:alpine phpstan analyse --level 6 src/ --no-progress
36+
- docker run --volume $PWD:/app --workdir /app jakzal/phpqa:1.25-php7.2-alpine phpstan analyse --level 6 src/ --no-progress
3737

3838
- stage: test
39-
name: "PHP 7.1 / Symfony 3.4"
40-
php: 7.1
39+
name: "PHP 7.3 / Symfony 3.4"
40+
php: 7.3
4141
env:
4242
- SYMFONY_VERSION="3.4.*"
4343
before_install:
@@ -74,10 +74,10 @@ jobs:
7474
after_success:
7575
- php ./vendor/bin/test-reporter
7676
- travis_retry php vendor/bin/coveralls -v --config .coveralls.yml
77-
- name: "PHP 7.1 / Symfony 4.2"
78-
php: 7.1
77+
- name: "PHP 7.3 / Symfony 4.4"
78+
php: 7.3
7979
env:
80-
- SYMFONY_VERSION="^4.2"
80+
- SYMFONY_VERSION="^4.4"
8181
before_install:
8282
- phpenv config-rm xdebug.ini
8383

@@ -89,10 +89,10 @@ jobs:
8989
- php ./vendor/bin/phpspec run --format=pretty
9090
- php ./vendor/bin/phpunit $PHPUNIT_FLAGS
9191
- php ./vendor/bin/behat --colors --strict --format=progress -vv
92-
- name: "PHP 7.2 / Symfony 4.2"
92+
- name: "PHP 7.2 / Symfony 4.4"
9393
php: 7.2
9494
env:
95-
- SYMFONY_VERSION="^4.2"
95+
- SYMFONY_VERSION="^4.4"
9696
before_install:
9797
- phpenv config-rm xdebug.ini
9898

@@ -105,10 +105,10 @@ jobs:
105105
- php ./vendor/bin/phpunit $PHPUNIT_FLAGS
106106
- php ./vendor/bin/behat --colors --strict --format=progress -vv
107107

108-
- name: "PHP 7.3 / Symfony 4.3"
108+
- name: "PHP 7.3 / Symfony 4.4"
109109
php: 7.3
110110
env:
111-
- SYMFONY_VERSION="^4.3"
111+
- SYMFONY_VERSION="^4.4"
112112
before_install:
113113
- ''
114114

src/Command/StatusesReadCommand.php

+16-15
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,22 @@ protected function displayTweets(
6868
foreach ($tweets as $tweet) {
6969
$this->table->addRows(
7070
[
71-
[
72-
$this->formatCell(
73-
'info',
74-
$tweet->getUser()->getName(),
75-
13
76-
),
77-
$this->formatCell(
78-
'comment',
79-
$tweet->getText(),
80-
40
81-
),
82-
$tweet->getCreatedAt()->format('Y-m-d H:i'),
83-
],
84-
// empty row between tweets
85-
['', '', ''], ]
71+
[
72+
$this->formatCell(
73+
'info',
74+
$tweet->getUser()->getName(),
75+
13
76+
),
77+
$this->formatCell(
78+
'comment',
79+
$tweet->getText(),
80+
40
81+
),
82+
$tweet->getCreatedAt()->format('Y-m-d H:i'),
83+
],
84+
// empty row between tweets
85+
['', '', ''],
86+
]
8687
);
8788
}
8889

0 commit comments

Comments
 (0)