Permalink
Browse files

Fixed typos

  • Loading branch information...
1 parent c19f8c0 commit 1c613b7514132bc780e67d23e59bcc514567fe01 @pborreli pborreli committed with l3l0 Dec 5, 2012
View
@@ -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
<?php
@@ -162,7 +162,7 @@ Streaming Files
---------------
Sometimes, you don't have the choice, you must get a streamable file URL (i.e
-to transform an image). Let's take a look at the following exemple:
+to transform an image). Let's take a look at the following example:
```php
$adapter = new InMemoryAdapter(array('hello.txt' => 'Hello World!'));
@@ -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);
@@ -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+');
@@ -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+');
@@ -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())
{
@@ -132,7 +132,7 @@ public function delete($key)
}
/**
- * @param string $directory
+ * @param string $key
* @return boolean
*/
public function isDirectory($key)
@@ -11,7 +11,7 @@
{
/**
* @param string $key
- * @param array $metadata
+ * @param array $content
*/
public function setMetadata($key, $content);
@@ -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)
{
@@ -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
@@ -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
*/
@@ -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
@@ -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')
{
@@ -11,14 +11,14 @@ class MogileFSTest extends FunctionalTestCase
*/
public function shouldGetMtime()
{
- $this->markTestSkipped('Not supported by the adpater.');
+ $this->markTestSkipped('Not supported by the adapter.');
}
/**
* @group functional
*/
public function shouldGetMtimeNonExistingFile()
{
- $this->markTestSkipped('Not supported by the adpater.');
+ $this->markTestSkipped('Not supported by the adapter.');
}
}
@@ -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);
}

0 comments on commit 1c613b7

Please sign in to comment.