Skip to content

Commit

Permalink
Refactor paths and fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mrow4a committed Nov 28, 2018
1 parent 083f261 commit 6503a1c
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ sudo: true
before_install:
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh richdocuments $CORE_BRANCH $DB
- cd ../core
- php occ app:enable $APP

script:
# Test lint
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use \OC\Files\View;
use \OCP\AppFramework\Controller;
use OCP\Constants;
use \OCP\Constants;
use \OCP\IRequest;
use \OCP\IConfig;
use \OCP\IL10N;
Expand All @@ -28,20 +28,8 @@
use \OCA\Richdocuments\Db;
use \OCA\Richdocuments\Helper;
use \OCA\Richdocuments\Storage;
use \OCA\Richdocuments\DownloadResponse;

class ResponseException extends \Exception {
private $hint;

public function __construct($description, $hint = '') {
parent::__construct($description);
$this->hint = $hint;
}

public function getHint() {
return $this->hint;
}
}
use \OCA\Richdocuments\Http\DownloadResponse;
use \OCA\Richdocuments\Http\ResponseException;

class DocumentController extends Controller {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/downloadresponse.php → lib/http/DownloadResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* later.
*/

namespace OCA\Richdocuments;
namespace OCA\Richdocuments\Http;

use \OCP\AppFramework\Http;
use \OCP\IRequest;
Expand Down
24 changes: 24 additions & 0 deletions lib/http/ResponseException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* ownCloud - Richdocuments App
*
* @author Piotr Mrowczynski <[email protected]>
* @copyright 2018 Piotr Mrowczynski <[email protected]>
*
* This file is licensed under the Affero General Public License version 3 or
* later.
*/
namespace OCA\Richdocuments\Http;

class ResponseException extends \Exception {
private $hint;

public function __construct($description, $hint = '') {
parent::__construct($description);
$this->hint = $hint;
}

public function getHint() {
return $this->hint;
}
}
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
timeoutForLargeTests="900"
>
<testsuite name='unit'>
<directory suffix='test.php'>./tests/unit</directory>
<directory suffix='Test.php'>./tests/unit</directory>
</testsuite>
<!-- filters for code coverage -->
<filter>
Expand Down
File renamed without changes.

0 comments on commit 6503a1c

Please sign in to comment.