Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9a793cb

Browse files
committedMay 21, 2015
used PHP 5.4 syntax
1 parent 8b7efc1 commit 9a793cb

File tree

103 files changed

+756
-756
lines changed

Some content is hidden

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

103 files changed

+756
-756
lines changed
 

‎.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ matrix:
2525

2626
script:
2727
- vendor/bin/tester -p $PHP_BIN tests -s
28-
- php code-checker/src/code-checker.php
28+
- php temp/code-checker/src/code-checker.php --short-arrays
2929

3030
after_failure:
3131
# Print *.actual content
@@ -34,4 +34,4 @@ after_failure:
3434
before_script:
3535
# Install Nette Tester & Code Checker
3636
- composer update --no-interaction --prefer-source $dependencies
37-
- composer create-project nette/code-checker code-checker ~2.3 --no-interaction --prefer-source
37+
- composer create-project nette/code-checker temp/code-checker ~2.5 --no-interaction --prefer-source

‎src/Application/Application.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Application extends Nette\Object
5050
public $onError;
5151

5252
/** @var Request[] */
53-
private $requests = array();
53+
private $requests = [];
5454

5555
/** @var IPresenter */
5656
private $presenter;
@@ -169,7 +169,7 @@ public function processException(\Exception $e)
169169
$this->httpResponse->setCode($e instanceof BadRequestException ? ($e->getCode() ?: 404) : 500);
170170
}
171171

172-
$args = array('exception' => $e, 'request' => end($this->requests) ?: NULL);
172+
$args = ['exception' => $e, 'request' => end($this->requests) ?: NULL];
173173
if ($this->presenter instanceof UI\Presenter) {
174174
try {
175175
$this->presenter->forward(":$this->errorPresenter:", $args);

0 commit comments

Comments
 (0)
Please sign in to comment.