Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Jan 10, 2017
1 parent eacf227 commit 73dbcaa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Bowerphp/Package/PackageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ public function setRequiredVersion($version);
* Returns a set of links to packages which need to be installed before
* this package can be installed
*
* @return array An array of package links defining required packages
* @return array|null An array of package links defining required packages
*/
public function getRequires();

/**
* Set the required packages
*
* @param array $requires A set of package links
* @param array|null $requires A set of package links
*/
public function setRequires(array $requires = null);

Expand Down
2 changes: 1 addition & 1 deletion src/Bowerphp/Util/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ public function read($filename)
*/
public function write($filename, $content, $mode = 0644)
{
$this->dumpFile($filename, $content, $mode);
$this->dumpFile($filename, $content);
}
}
4 changes: 2 additions & 2 deletions tests/Bowerphp/Test/Config/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ public function testUpdateBowerJsonFile()

$config = new Config($this->filesystem);

$this->assertEquals(0, $config->updateBowerJsonFile($package, '*'));
$this->assertEquals(0, $config->updateBowerJsonFile($package));

$config->setSaveToBowerJsonFile(true);

$this->assertEquals(123, $config->updateBowerJsonFile($package, '*'));
$this->assertEquals(123, $config->updateBowerJsonFile($package));
}

public function testUpdateBowerJsonFile2()
Expand Down

0 comments on commit 73dbcaa

Please sign in to comment.