From 1c613b7514132bc780e67d23e59bcc514567fe01 Mon Sep 17 00:00:00 2001 From: Pascal Borreli Date: Wed, 5 Dec 2012 02:28:44 +0000 Subject: [PATCH] Fixed typos --- README.markdown | 6 +++--- spec/Gaufrette/Filesystem.php | 2 +- spec/Gaufrette/StreamMode.php | 4 ++-- spec/Gaufrette/StreamWrapper.php | 2 +- src/Gaufrette/Adapter/Ftp.php | 2 +- src/Gaufrette/Adapter/Local.php | 2 +- src/Gaufrette/Adapter/MetadataSupporter.php | 2 +- src/Gaufrette/Adapter/RackspaceCloudfiles.php | 4 ++-- src/Gaufrette/Filesystem.php | 4 ++-- src/Gaufrette/FilesystemMap.php | 2 +- src/Gaufrette/Stream.php | 2 +- src/Gaufrette/StreamWrapper.php | 2 +- tests/Gaufrette/Functional/Adapter/MogileFSTest.php | 4 ++-- tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist | 4 ++-- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.markdown b/README.markdown index 128b80a37..578200ab1 100644 --- a/README.markdown +++ b/README.markdown @@ -66,14 +66,14 @@ echo $file->getContent(); // Hello World ### Cache a slow filesystem -If you have to deal with a slow filesystem, it is out of quetion to use it directly. +If you have to deal with a slow filesystem, it is out of question to use it directly. So, you need a cache! Happily, Gaufrette offers a cache system ready for use. It consist of an adapter itself composed of two adapters: * The *source* adapter that should be cached * The *cache* adapter that is used to cache -Here is an exemple of how to cache an ftp filesystem: +Here is an example of how to cache an ftp filesystem: ```php 'Hello World!')); diff --git a/spec/Gaufrette/Filesystem.php b/spec/Gaufrette/Filesystem.php index 98c865da0..4fbe09df7 100644 --- a/spec/Gaufrette/Filesystem.php +++ b/spec/Gaufrette/Filesystem.php @@ -380,7 +380,7 @@ function it_should_not_calculate_checksum_of_file_which_does_not_exist($adapter) /** * @param \spec\Gaufrette\Adapter $extendedAdapter */ - function it_should_delegate_checksum_calculation_to_adapter_when_adapter_is_checksum_calulator($extendedAdapter) + function it_should_delegate_checksum_calculation_to_adapter_when_adapter_is_checksum_calculator($extendedAdapter) { $this->beConstructedWith($extendedAdapter); $extendedAdapter->exists('filename')->shouldBeCalled()->willReturn(true); diff --git a/spec/Gaufrette/StreamMode.php b/spec/Gaufrette/StreamMode.php index a3d3b52ec..de33f6ffb 100644 --- a/spec/Gaufrette/StreamMode.php +++ b/spec/Gaufrette/StreamMode.php @@ -70,14 +70,14 @@ function it_does_not_allow_new_file_opening() $this->allowsNewFileOpening()->shouldReturn(false); } - function it_implies_exsisting_content_deletion() + function it_implies_existing_content_deletion() { $this->beConstructedWith('w+'); $this->allowsNewFileOpening()->shouldReturn(true); } - function it_does_not_implies_exsisting_content_deletion() + function it_does_not_implies_existing_content_deletion() { $this->beConstructedWith('r+'); diff --git a/spec/Gaufrette/StreamWrapper.php b/spec/Gaufrette/StreamWrapper.php index 0727d8540..7a61f4db2 100644 --- a/spec/Gaufrette/StreamWrapper.php +++ b/spec/Gaufrette/StreamWrapper.php @@ -129,7 +129,7 @@ function it_should_not_seek_in_stream_when_is_not_opened($stream) /** * @param \Gaufrette\Stream $stream */ - function it_should_seet_in_stream($stream) + function it_should_seek_in_stream($stream) { $stream->seek(12, SEEK_SET)->shouldBeCalled()->willReturn(true); $this->stream_open('gaufrette://some/filename', 'w+'); diff --git a/src/Gaufrette/Adapter/Ftp.php b/src/Gaufrette/Adapter/Ftp.php index 938720ed9..4befba53d 100644 --- a/src/Gaufrette/Adapter/Ftp.php +++ b/src/Gaufrette/Adapter/Ftp.php @@ -32,7 +32,7 @@ class Ftp implements Adapter, * * @param string $directory The directory to use in the ftp server * @param string $host The host of the ftp server - * @param string $options The options like port, username, password, passive, create, mode + * @param array $options The options like port, username, password, passive, create, mode */ public function __construct($directory, $host, $options = array()) { diff --git a/src/Gaufrette/Adapter/Local.php b/src/Gaufrette/Adapter/Local.php index e3aa8f00f..2de7f1eb2 100644 --- a/src/Gaufrette/Adapter/Local.php +++ b/src/Gaufrette/Adapter/Local.php @@ -132,7 +132,7 @@ public function delete($key) } /** - * @param string $directory + * @param string $key * @return boolean */ public function isDirectory($key) diff --git a/src/Gaufrette/Adapter/MetadataSupporter.php b/src/Gaufrette/Adapter/MetadataSupporter.php index 70bf7a93e..dd25d4894 100644 --- a/src/Gaufrette/Adapter/MetadataSupporter.php +++ b/src/Gaufrette/Adapter/MetadataSupporter.php @@ -11,7 +11,7 @@ interface MetadataSupporter { /** * @param string $key - * @param array $metadata + * @param array $content */ public function setMetadata($key, $content); diff --git a/src/Gaufrette/Adapter/RackspaceCloudfiles.php b/src/Gaufrette/Adapter/RackspaceCloudfiles.php index 1fb7bc84e..a1f89c4c5 100644 --- a/src/Gaufrette/Adapter/RackspaceCloudfiles.php +++ b/src/Gaufrette/Adapter/RackspaceCloudfiles.php @@ -18,9 +18,9 @@ class RackspaceCloudfiles implements Adapter, protected $container; /** - * Contructor + * Constructor * - * @param CF_Container $container A CF_Container instance + * @param RackspaceContainer $container A CF_Container instance */ public function __construct(RackspaceContainer $container) { diff --git a/src/Gaufrette/Filesystem.php b/src/Gaufrette/Filesystem.php index 1cb215c50..50410a8f0 100644 --- a/src/Gaufrette/Filesystem.php +++ b/src/Gaufrette/Filesystem.php @@ -47,8 +47,8 @@ public function has($key) /** * Renames a file * - * @param string $key - * @param string $new + * @param string $sourceKey + * @param string $targetKey * * @return boolean TRUE if the rename was successful * @throws Exception\FileNotFound when sourceKey does not exist diff --git a/src/Gaufrette/FilesystemMap.php b/src/Gaufrette/FilesystemMap.php index 2ed0fa57d..173c732a3 100644 --- a/src/Gaufrette/FilesystemMap.php +++ b/src/Gaufrette/FilesystemMap.php @@ -13,7 +13,7 @@ class FilesystemMap /** * Returns an array of all the registered filesystems where the key is the - * domain and the value the filsystem + * domain and the value the filesystem * * @return array */ diff --git a/src/Gaufrette/Stream.php b/src/Gaufrette/Stream.php index ae7607a46..6b7ff2829 100644 --- a/src/Gaufrette/Stream.php +++ b/src/Gaufrette/Stream.php @@ -94,7 +94,7 @@ public function eof(); public function stat(); /** - * Retrieve the underlaying resource + * Retrieve the underlying resource * * @param integer $castAs * @return mixed using resource or false diff --git a/src/Gaufrette/StreamWrapper.php b/src/Gaufrette/StreamWrapper.php index 73fc8f10c..cf508095e 100644 --- a/src/Gaufrette/StreamWrapper.php +++ b/src/Gaufrette/StreamWrapper.php @@ -41,7 +41,7 @@ public static function getFilesystemMap() /** * Registers the stream wrapper to handle the specified scheme * - * @param string $schema Default is gaufrette + * @param string $scheme Default is gaufrette */ public static function register($scheme = 'gaufrette') { diff --git a/tests/Gaufrette/Functional/Adapter/MogileFSTest.php b/tests/Gaufrette/Functional/Adapter/MogileFSTest.php index 062d8db15..83fc7f48b 100644 --- a/tests/Gaufrette/Functional/Adapter/MogileFSTest.php +++ b/tests/Gaufrette/Functional/Adapter/MogileFSTest.php @@ -11,7 +11,7 @@ class MogileFSTest extends FunctionalTestCase */ public function shouldGetMtime() { - $this->markTestSkipped('Not supported by the adpater.'); + $this->markTestSkipped('Not supported by the adapter.'); } /** @@ -19,6 +19,6 @@ public function shouldGetMtime() */ public function shouldGetMtimeNonExistingFile() { - $this->markTestSkipped('Not supported by the adpater.'); + $this->markTestSkipped('Not supported by the adapter.'); } } diff --git a/tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist b/tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist index 3a1295bb4..d5a0dfb6c 100644 --- a/tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist +++ b/tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist @@ -8,7 +8,7 @@ $connection = DriverManager::getConnection(array( 'memory' => true, )); -$plaftform = $connection->getDatabasePlatform(); +$platform = $connection->getDatabasePlatform(); $schemaManager = $connection->getSchemaManager(); @@ -24,7 +24,7 @@ $table->addColumn('content', 'blob'); $table->addColumn('mtime', 'integer'); $table->addColumn('checksum', 'string', array('length' => 32)); -foreach ($schema->toSql($plaftform) as $query) { +foreach ($schema->toSql($platform) as $query) { $connection->exec($query); }