Skip to content

Commit

Permalink
fix bug permission data result folder
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardovilarinho committed Oct 26, 2017
1 parent 0d46c22 commit 022facb
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 51,685 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
/bin
#Entry generated by php-git-hooks tool.
.guard_coverage
/views/overview/data/**
/views/overview/data/*.json
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "framework",
"license": "GPL-3.0",
"minimum-stability": "stable",
"version": "1.0.4",
"version": "1.0.5",
"authors": [
{
"name": "Leonardo Vilarinho",
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions source/Program/ExportServices/JsonExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ public function __construct(ClassesRepository $repository, array $devs, OutputIn
*/
public function export(string $path, float $stars, string $alias = '')
{
if (!file_exists($path)) {
mkdir($path);
}

$json = $this->initializableJson($stars, $alias);

$step = ($this->repository->count() > 0 ) ? $this->repository->count() : 1;
Expand Down
6 changes: 6 additions & 0 deletions tests/Program/ExportServices/JsonExportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

class JsonExportTest extends TestBase
{

public function setUp()
{
mkdir(__DIR__.'/../../export/');
}

public function testExportEmptyClasses()
{
$output = new ConsoleOutput();
Expand Down
Empty file added views/overview/data/.empty
Empty file.
1 change: 0 additions & 1 deletion views/overview_old/data/info.json

This file was deleted.

1 change: 0 additions & 1 deletion views/overview_old/data/p1508341183.json

This file was deleted.

1 change: 0 additions & 1 deletion views/overview_old/data/p1508341231.json

This file was deleted.

1 change: 0 additions & 1 deletion views/overview_old/data/p1508341294.json

This file was deleted.

1 change: 0 additions & 1 deletion views/overview_old/data/p1508341331.json

This file was deleted.

Loading

0 comments on commit 022facb

Please sign in to comment.