Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions settings/Controller/CheckSetupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
use OCP\IConfig;
use OCP\IL10N;
use OCP\IRequest;
use OC_Util;
use OCP\IURLGenerator;

/**
Expand Down Expand Up @@ -253,7 +252,7 @@ public function rescanFailedIntegrityCheck() {

/**
* @NoCSRFRequired
* @return DataResponse
* @return DataResponse | DataDisplayResponse
*/
public function getFailedIntegrityCheckFiles() {
if(!$this->checker->isCodeCheckEnforced()) {
Expand Down Expand Up @@ -339,8 +338,9 @@ public function check() {
protected function isEndOfLive() {
$eol = false;

//PHP 5.4 is EOL on 14 Sep 2015
if (version_compare(PHP_VERSION, '5.5.0') === -1) {
// PHP 5.4 is EOL on 14 Sep 2015
// PHP 5.5 is EOL on 21 Jul 2016
if (version_compare(PHP_VERSION, '5.6.0') === -1) {
$eol = true;
return $eol;
}
Expand Down
3 changes: 3 additions & 0 deletions tests/Settings/Controller/CheckSetupControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

namespace Tests\Settings\Controller;

use GuzzleHttp\Exception\ClientException;
use OC\Settings\Controller\CheckSetupController;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataDisplayResponse;
Expand Down Expand Up @@ -452,6 +453,7 @@ public function testIsBuggyNss400() {
->will($this->returnValue(['ssl_version' => 'NSS/1.0.2b']));
$client = $this->getMockBuilder('\OCP\Http\Client\IClient')
->disableOriginalConstructor()->getMock();
/** @var ClientException | \PHPUnit_Framework_MockObject_MockObject $exception */
$exception = $this->getMockBuilder('\GuzzleHttp\Exception\ClientException')
->disableOriginalConstructor()->getMock();
$response = $this->getMockBuilder('\GuzzleHttp\Message\ResponseInterface')
Expand Down Expand Up @@ -486,6 +488,7 @@ public function testIsBuggyNss200() {
->will($this->returnValue(['ssl_version' => 'NSS/1.0.2b']));
$client = $this->getMockBuilder('\OCP\Http\Client\IClient')
->disableOriginalConstructor()->getMock();
/** @var ClientException | \PHPUnit_Framework_MockObject_MockObject $exception */
$exception = $this->getMockBuilder('\GuzzleHttp\Exception\ClientException')
->disableOriginalConstructor()->getMock();
$response = $this->getMockBuilder('\GuzzleHttp\Message\ResponseInterface')
Expand Down