Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Feb 11, 2019
1 parent 7d448b4 commit a0953d2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/Command/App/CheckCode.php
Expand Up @@ -124,7 +124,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
if (!$input->getOption('skip-validate-info')) {
$infoChecker = new InfoChecker($this->infoParser, $this->appManager);

$infoChecker->listen('InfoChecker', 'invalidAppInfo', function($appId) use ($output) {
$infoChecker->listen('InfoChecker', 'invalidAppInfo', function ($appId) use ($output) {
$output->writeln("<error>$appId has invalid XML in appinfo.xml</error>");
});

Expand Down
2 changes: 1 addition & 1 deletion lib/private/App/InfoParser.php
Expand Up @@ -39,7 +39,7 @@ class InfoParser {
public function parse($file) {
if (!\is_file($file)) {
throw new AppNotFoundException(
sprintf('%s does not exist', $file)
\sprintf('%s does not exist', $file)
);
}

Expand Down
3 changes: 1 addition & 2 deletions tests/Core/Command/Apps/CheckCodeTest.php
Expand Up @@ -19,7 +19,6 @@
*
*/


namespace Tests\Core\Command\Config;

use OCP\App\IAppManager;
Expand All @@ -46,4 +45,4 @@ public function testWrongAppId() {
$this->commandTester = new CommandTester($command);
$this->commandTester->execute(['app-id' => 'hui-buh']);
}
}
}
2 changes: 1 addition & 1 deletion tests/lib/App/CodeChecker/InfoCheckerTest.php
Expand Up @@ -43,7 +43,7 @@ protected function setUp() {
->method('getAppPath')
->will(
$this->returnCallback(
function ($appId){
function ($appId) {
return \OC::$SERVERROOT . '/tests/apps/' . $appId;
}
)
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/App/InfoParserTest.php
Expand Up @@ -23,8 +23,8 @@ public function setUp() {
}

public function testParsingValidXml() {
$expectedData = json_decode(
file_get_contents(OC::$SERVERROOT . "/tests/data/app/expected-info.json"),
$expectedData = \json_decode(
\file_get_contents(OC::$SERVERROOT . "/tests/data/app/expected-info.json"),
true
);
$data = $this->parser->parse(OC::$SERVERROOT. "/tests/data/app/valid-info.xml");
Expand Down

0 comments on commit a0953d2

Please sign in to comment.