1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-04-09 10:15:44 +02:00

more style fixes

This commit is contained in:
Bernhard Posselt 2014-05-12 22:45:24 +02:00
parent 04d7d834f3
commit 1fbe0ea4cf
7 changed files with 7 additions and 6 deletions

View File

@ -25,6 +25,7 @@ class XPathArticleEnhancer implements ArticleEnhancer {
private $fileFactory;
private $maximumTimeout;
private $config;
private $regexXPathPair;
/**

View File

@ -21,6 +21,7 @@ use \OCA\News\Core\Db;
class MapperFactory {
private $dbType;
private $db;
public function __construct($dbType, Db $db) {
$this->dbType = $dbType;

View File

@ -54,7 +54,7 @@ class BusinessLayerTest extends \PHPUnit_Framework_TestCase {
->with($this->equalTo($id), $this->equalTo($user))
->will($this->returnValue($folder));
$result = $this->newsBusinessLayer->delete($id, $user);
$this->newsBusinessLayer->delete($id, $user);
}

View File

@ -296,8 +296,7 @@ class ItemBusinessLayerTest extends \PHPUnit_Framework_TestCase {
->method('deleteReadOlderThanThreshold')
->with($this->equalTo($this->threshold));
$result = $this->itemBusinessLayer->autoPurgeOld();
$this->itemBusinessLayer->autoPurgeOld();
}

View File

@ -359,7 +359,7 @@ class ItemMapperTest extends \OCA\News\Utility\MapperTestUtility {
$this->setMapperResult($sql1, $params1, array($row));
$this->setMapperResult($sql2, $params2);
$result = $this->mapper->deleteReadOlderThanThreshold($threshold);
$this->mapper->deleteReadOlderThanThreshold($threshold);
}

View File

@ -148,7 +148,7 @@ class ItemMapperTest extends \OCA\News\Utility\MapperTestUtility {
$this->setMapperResult($sql1, $params1, array($row));
$this->setMapperResult($sql2, $params2);
$result = $this->mapper->deleteReadOlderThanThreshold($threshold);
$this->mapper->deleteReadOlderThanThreshold($threshold);
}

View File

@ -58,7 +58,7 @@ abstract class ControllerTestUtility extends \PHPUnit_Framework_TestCase {
* @param Response $response the response which we want to test for headers
*/
protected function assertHeaders(array $expected=array(), Response $response){
$headers = $reponse->getHeaders();
$headers = $response->getHeaders();
foreach($expected as $header){
$this->assertTrue(in_array($header, $headers));
}