Skip to content

Commit

Permalink
TASK: Change all uppercase true to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
mstruebing committed Jun 27, 2018
1 parent 5f067da commit c8c3d7e
Show file tree
Hide file tree
Showing 236 changed files with 730 additions and 730 deletions.
6 changes: 3 additions & 3 deletions Neos.Cache/Classes/Backend/ApcuBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function get(string $entryIdentifier)
* Checks if a cache entry with the specified identifier exists.
*
* @param string $entryIdentifier An identifier specifying the cache entry
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
* @api
*/
public function has(string $entryIdentifier): bool
Expand All @@ -167,7 +167,7 @@ public function has(string $entryIdentifier): bool
* old entries for the identifier still exist, they are removed as well.
*
* @param string $entryIdentifier Specifies the cache entry to remove
* @return boolean TRUE if (at least) an entry could be removed or false if no entry was found
* @return boolean true if (at least) an entry could be removed or false if no entry was found
* @api
*/
public function remove(string $entryIdentifier): bool
Expand Down Expand Up @@ -353,7 +353,7 @@ public function key(): string
/**
* Checks if the current position of the cache entry iterator is valid
*
* @return boolean TRUE if the current position is valid, otherwise false
* @return boolean true if the current position is valid, otherwise false
* @api
*/
public function valid(): bool
Expand Down
4 changes: 2 additions & 2 deletions Neos.Cache/Classes/Backend/BackendInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function get(string $entryIdentifier);
* Checks if a cache entry with the specified identifier exists.
*
* @param string $entryIdentifier An identifier specifying the cache entry
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
* @api
*/
public function has(string $entryIdentifier): bool;
Expand All @@ -81,7 +81,7 @@ public function has(string $entryIdentifier): bool;
* old entries for the identifier still exist, they are removed as well.
*
* @param string $entryIdentifier Specifies the cache entry to remove
* @return boolean TRUE if (at least) an entry could be removed or false if no entry was found
* @return boolean true if (at least) an entry could be removed or false if no entry was found
* @api
*/
public function remove(string $entryIdentifier): bool;
Expand Down
4 changes: 2 additions & 2 deletions Neos.Cache/Classes/Backend/FileBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function get(string $entryIdentifier)
* Checks if a cache entry with the specified identifier exists.
*
* @param string $entryIdentifier
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
* @throws \InvalidArgumentException
* @api
*/
Expand All @@ -211,7 +211,7 @@ public function has(string $entryIdentifier): bool
* Usually this only affects one entry.
*
* @param string $entryIdentifier Specifies the cache entry to remove
* @return boolean TRUE if (at least) an entry could be removed or false if no entry was found
* @return boolean true if (at least) an entry could be removed or false if no entry was found
* @throws \RuntimeException
* @throws \InvalidArgumentException
* @api
Expand Down
4 changes: 2 additions & 2 deletions Neos.Cache/Classes/Backend/MemcachedBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public function get(string $entryIdentifier)
* Checks if a cache entry with the specified identifier exists.
*
* @param string $entryIdentifier An identifier specifying the cache entry
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
* @api
*/
public function has(string $entryIdentifier): bool
Expand All @@ -288,7 +288,7 @@ public function has(string $entryIdentifier): bool
* old entries for the identifier still exist, they are removed as well.
*
* @param string $entryIdentifier Specifies the cache entry to remove
* @return boolean TRUE if (at least) an entry could be removed or false if no entry was found
* @return boolean true if (at least) an entry could be removed or false if no entry was found
* @api
*/
public function remove(string $entryIdentifier): bool
Expand Down
6 changes: 3 additions & 3 deletions Neos.Cache/Classes/Backend/PdoBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function get(string $entryIdentifier)
* Checks if a cache entry with the specified identifier exists.
*
* @param string $entryIdentifier An identifier specifying the cache entry
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
* @api
*/
public function has(string $entryIdentifier): bool
Expand All @@ -196,7 +196,7 @@ public function has(string $entryIdentifier): bool
* old entries for the identifier still exist, they are removed as well.
*
* @param string $entryIdentifier Specifies the cache entry to remove
* @return boolean TRUE if (at least) an entry could be removed or false if no entry was found
* @return boolean true if (at least) an entry could be removed or false if no entry was found
* @api
*/
public function remove(string $entryIdentifier): bool
Expand Down Expand Up @@ -392,7 +392,7 @@ public function key(): string
/**
* Checks if the current position of the cache entry iterator is valid.
*
* @return boolean TRUE if the current position is valid, otherwise false
* @return boolean true if the current position is valid, otherwise false
* @api
*/
public function valid(): bool
Expand Down
6 changes: 3 additions & 3 deletions Neos.Cache/Classes/Backend/RedisBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ public function get(string $entryIdentifier)
* Checks if a cache entry with the specified identifier exists.
*
* @param string $entryIdentifier An identifier specifying the cache entry
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
* @api
*/
public function has(string $entryIdentifier): bool
{
// exists returned TRUE or false in phpredis versions < 4.0.0, now it returns the number of keys
// exists returned true or false in phpredis versions < 4.0.0, now it returns the number of keys
$existsResult = $this->redis->exists($this->buildKey('entry:' . $entryIdentifier));
return $existsResult === true || $existsResult > 0;
}
Expand All @@ -179,7 +179,7 @@ public function has(string $entryIdentifier): bool
*
* @param string $entryIdentifier Specifies the cache entry to remove
* @throws \RuntimeException
* @return boolean TRUE if (at least) an entry could be removed or false if no entry was found
* @return boolean true if (at least) an entry could be removed or false if no entry was found
* @api
*/
public function remove(string $entryIdentifier): bool
Expand Down
6 changes: 3 additions & 3 deletions Neos.Cache/Classes/Backend/SimpleFileBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function get(string $entryIdentifier)
* Checks if a cache entry with the specified identifier exists.
*
* @param string $entryIdentifier
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
* @throws \InvalidArgumentException
* @api
*/
Expand Down Expand Up @@ -235,7 +235,7 @@ private function tryRemoveWithLock(string $fileName): bool
* Usually this only affects one entry.
*
* @param string $entryIdentifier Specifies the cache entry to remove
* @return boolean TRUE if (at least) an entry could be removed or false if no entry was found
* @return boolean true if (at least) an entry could be removed or false if no entry was found
* @throws \InvalidArgumentException
* @api
*/
Expand Down Expand Up @@ -384,7 +384,7 @@ public function key(): string
/**
* Checks if the current position of the cache entry iterator is valid
*
* @return boolean TRUE if the current position is valid, otherwise false
* @return boolean true if the current position is valid, otherwise false
* @api
*/
public function valid(): bool
Expand Down
4 changes: 2 additions & 2 deletions Neos.Cache/Classes/Backend/TransientMemoryBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function get(string $entryIdentifier)
* Checks if a cache entry with the specified identifier exists.
*
* @param string $entryIdentifier An identifier specifying the cache entry
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
* @api
*/
public function has(string $entryIdentifier): bool
Expand All @@ -84,7 +84,7 @@ public function has(string $entryIdentifier): bool
* Removes all cache entries matching the specified identifier.
*
* @param string $entryIdentifier Specifies the cache entry to remove
* @return boolean TRUE if the entry could be removed or false if no entry was found
* @return boolean true if the entry could be removed or false if no entry was found
* @api
*/
public function remove(string $entryIdentifier): bool
Expand Down
4 changes: 2 additions & 2 deletions Neos.Cache/Classes/Frontend/AbstractFrontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function getBackend(): BackendInterface
* Checks if a cache entry with the specified identifier exists.
*
* @param string $entryIdentifier An identifier specifying the cache entry
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
* @throws \InvalidArgumentException
* @api
*/
Expand All @@ -107,7 +107,7 @@ public function has(string $entryIdentifier): bool
* Removes the given cache entry from the cache.
*
* @param string $entryIdentifier An identifier specifying the cache entry
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
* @throws \InvalidArgumentException
* @api
*/
Expand Down
2 changes: 1 addition & 1 deletion Neos.Cache/Classes/Frontend/CacheEntryIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function key(): string
/**
* Checks if current position of the cache entry iterator is valid
*
* @return boolean TRUE if the current element of the iterator is valid, otherwise false
* @return boolean true if the current element of the iterator is valid, otherwise false
* @api
*/
public function valid(): bool
Expand Down
4 changes: 2 additions & 2 deletions Neos.Cache/Classes/Frontend/FrontendInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function getByTag(string $tag): array;
* Checks if a cache entry with the specified identifier exists.
*
* @param string $entryIdentifier An identifier specifying the cache entry
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
* @api
*/
public function has(string $entryIdentifier): bool;
Expand All @@ -87,7 +87,7 @@ public function has(string $entryIdentifier): bool;
* Removes the given cache entry from the cache.
*
* @param string $entryIdentifier An identifier specifying the cache entry
* @return boolean TRUE if such an entry exists, false if not
* @return boolean true if such an entry exists, false if not
*/
public function remove(string $entryIdentifier): bool;

Expand Down
2 changes: 1 addition & 1 deletion Neos.Cache/Tests/Unit/Backend/FileBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public function hasReturnsTrueIfAnEntryExists()
$data = 'some data' . microtime();
$backend->set($entryIdentifier, $data);

$this->assertTrue($backend->has($entryIdentifier), 'has() did not return TRUE.');
$this->assertTrue($backend->has($entryIdentifier), 'has() did not return true.');
$this->assertFalse($backend->has($entryIdentifier . 'Not'), 'has() did not return false.');
}

Expand Down
4 changes: 2 additions & 2 deletions Neos.Cache/Tests/Unit/Frontend/StringFrontendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function hasReturnsResultFromBackend()
$backend->expects($this->once())->method('has')->with($this->equalTo('StringCacheTest'))->will($this->returnValue(true));

$cache = new StringFrontend('StringFrontend', $backend);
$this->assertTrue($cache->has('StringCacheTest'), 'has() did not return TRUE.');
$this->assertTrue($cache->has('StringCacheTest'), 'has() did not return true.');
}

/**
Expand All @@ -115,7 +115,7 @@ public function removeCallsBackend()
$backend->expects($this->once())->method('remove')->with($this->equalTo($cacheIdentifier))->will($this->returnValue(true));

$cache = new StringFrontend('StringFrontend', $backend);
$this->assertTrue($cache->remove($cacheIdentifier), 'remove() did not return TRUE');
$this->assertTrue($cache->remove($cacheIdentifier), 'remove() did not return true');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions Neos.Cache/Tests/Unit/Frontend/VariableFrontendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function hasReturnsResultFromBackend()
$backend->expects($this->once())->method('has')->with($this->equalTo('VariableCacheTest'))->will($this->returnValue(true));

$cache = new VariableFrontend('VariableFrontend', $backend);
$this->assertTrue($cache->has('VariableCacheTest'), 'has() did not return TRUE.');
$this->assertTrue($cache->has('VariableCacheTest'), 'has() did not return true.');
}

/**
Expand All @@ -171,7 +171,7 @@ public function removeCallsBackend()
$backend->expects($this->once())->method('remove')->with($this->equalTo($cacheIdentifier))->will($this->returnValue(true));

$cache = new VariableFrontend('VariableFrontend', $backend);
$this->assertTrue($cache->remove($cacheIdentifier), 'remove() did not return TRUE');
$this->assertTrue($cache->remove($cacheIdentifier), 'remove() did not return true');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions Neos.Cache/Tests/Unit/Psr/Cache/CachePoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function hasItemReturnsResultFromBackend()
$backend->expects(self::once())->method('has')->with(self::equalTo('PsrCacheTest'))->willReturn(true);

$cache = new CachePool('CachePool', $backend);
self::assertTrue($cache->hasItem('PsrCacheTest'), 'hasItem() did not return TRUE.');
self::assertTrue($cache->hasItem('PsrCacheTest'), 'hasItem() did not return true.');
}

/**
Expand All @@ -133,7 +133,7 @@ public function deleteItemCallsBackend()
$backend->expects(self::once())->method('remove')->with(self::equalTo($cacheIdentifier))->willReturn(true);

$cache = new CachePool('CachePool', $backend);
self::assertTrue($cache->deleteItem($cacheIdentifier), 'deleteItem() did not return TRUE');
self::assertTrue($cache->deleteItem($cacheIdentifier), 'deleteItem() did not return true');
}

/**
Expand Down
Loading

0 comments on commit c8c3d7e

Please sign in to comment.