Skip to content

Commit

Permalink
Scrutinizer Auto-Fixes
Browse files Browse the repository at this point in the history
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
  • Loading branch information
scrutinizer-auto-fixer committed Dec 30, 2014
1 parent 145a689 commit 4614b5d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/VirtualFileSystem/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function createLink($path, $destination)
/**
* Creates file at given path
*
* @param string $path
* @param string $path
* @param string|null $data
*
* @return Structure\File
Expand All @@ -257,8 +257,8 @@ public function createFile($path, $data = null)
/**
* Creates struture
*
* @param array $structure
* @param string $parent
* @param array $structure
* @param string $parent
* @throws NotFoundException
*/
public function createStructure(array $structure, $parent = '/')
Expand Down
4 changes: 2 additions & 2 deletions src/VirtualFileSystem/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
namespace VirtualFileSystem;

use VirtualFileSystem\Structure\Directory;
use VirtualFileSystem\Structure\Node;
use VirtualFileSystem\Structure\Root;
use VirtualFileSystem\Structure\File;
use VirtualFileSystem\Structure\Link;
use VirtualFileSystem\Structure\Node;
use VirtualFileSystem\Structure\Root;

/**
* Factory class to encapsulate object creation.
Expand Down
2 changes: 1 addition & 1 deletion src/VirtualFileSystem/FileSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

use VirtualFileSystem\Structure\Directory;
use VirtualFileSystem\Structure\File;
use VirtualFileSystem\Structure\Root;
use VirtualFileSystem\Structure\Link;
use VirtualFileSystem\Structure\Root;

/**
* Main 'access' class to vfs implementation. It will register new stream wrapper on instantiation.
Expand Down
2 changes: 1 addition & 1 deletion src/VirtualFileSystem/Wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
use VirtualFileSystem\Structure\File;
use VirtualFileSystem\Structure\Link;
use VirtualFileSystem\Structure\Root;
use VirtualFileSystem\Wrapper\FileHandler;
use VirtualFileSystem\Wrapper\DirectoryHandler;
use VirtualFileSystem\Wrapper\FileHandler;

/**
* Stream wrapper class. This is the class that PHP uses as the stream operations handler.
Expand Down
3 changes: 3 additions & 0 deletions src/VirtualFileSystem/Wrapper/FileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ public function isOpenedForReading()
return (bool) ($this->mode & self::READ_MODE);
}

/**
* @param $resource
*/
public function lock($resource, $operation)
{
return $this->file->lock($resource, $operation);
Expand Down
2 changes: 1 addition & 1 deletion tests/VirtualFileSystem/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace VirtualFileSystem;

use VirtualFileSystem\Structure\Root;
use VirtualFileSystem\Structure\Directory;
use VirtualFileSystem\Structure\File;
use VirtualFileSystem\Structure\Root;

class ContainerTest extends \PHPUnit_Framework_TestCase
{
Expand Down

0 comments on commit 4614b5d

Please sign in to comment.