Skip to content

Commit

Permalink
Docs folder standardization and other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luizcmarin committed Apr 15, 2024
1 parent f980f12 commit cd3e350
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ a distributed applications (e.g. with several servers, load balancers, etc.).

The package could be installed with composer:

```
```shell
composer require yiisoft/cache-memcached
```

Expand Down
2 changes: 1 addition & 1 deletion docs/internals.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ docker run --rm --name yiisoft-cache-memcached-cache --detach --publish 11211:11
Memcached must be accessible by address `127.0.0.1`. If you use PHP via docker container, run PHP container in network
of memcached container. Use `docker run` command argument for it:

```
```dockerfile
--network container:yiisoft-cache-memcached-cache
```

Expand Down
2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
errorLevel="1"
findUnusedBaselineEntry="true"
findUnusedCode="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
Expand Down
2 changes: 1 addition & 1 deletion psalm80.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
errorLevel="1"
findUnusedBaselineEntry="true"
findUnusedCode="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
Expand Down
4 changes: 2 additions & 2 deletions src/Memcached.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

/**
* Memcached implements a cache application component based on
* [memcached](http://pecl.php.net/package/memcached) PECL extension.
* [memcached](https://pecl.php.net/package/memcached) PECL extension.
*
* Memcached can be configured with a list of memcached servers passed to the constructor.
* By default, Memcached assumes there is a memcached server running on localhost at port 11211.
Expand Down Expand Up @@ -251,7 +251,7 @@ private function normalizeServers(array $servers): array
) {
throw new InvalidArgumentException(
'Each entry in servers parameter is supposed to be an array'

Check warning on line 253 in src/Memcached.php

View workflow job for this annotation

GitHub Actions / PHP 8.3-ubuntu-latest

Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $normalized = []; foreach ($servers as $server) { if (!is_array($server) || !isset($server['host'], $server['port']) || !is_string($server['host']) || !is_int($server['port']) || isset($server['weight']) && !is_int($server['weight'])) { - throw new InvalidArgumentException('Each entry in servers parameter is supposed to be an array' . ' containing hostname (string), port (int), and, optionally, weight (int) of the server.'); + throw new InvalidArgumentException(' containing hostname (string), port (int), and, optionally, weight (int) of the server.' . 'Each entry in servers parameter is supposed to be an array'); } /** * @psalm-var array{host:string,port:int,weight?:int} $server Need for PHP 8.0

Check warning on line 253 in src/Memcached.php

View workflow job for this annotation

GitHub Actions / PHP 8.3-ubuntu-latest

Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $normalized = []; foreach ($servers as $server) { if (!is_array($server) || !isset($server['host'], $server['port']) || !is_string($server['host']) || !is_int($server['port']) || isset($server['weight']) && !is_int($server['weight'])) { - throw new InvalidArgumentException('Each entry in servers parameter is supposed to be an array' . ' containing hostname (string), port (int), and, optionally, weight (int) of the server.'); + throw new InvalidArgumentException(' containing hostname (string), port (int), and, optionally, weight (int) of the server.'); } /** * @psalm-var array{host:string,port:int,weight?:int} $server Need for PHP 8.0

Check warning on line 253 in src/Memcached.php

View workflow job for this annotation

GitHub Actions / PHP 8.3-ubuntu-latest

Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $normalized = []; foreach ($servers as $server) { if (!is_array($server) || !isset($server['host'], $server['port']) || !is_string($server['host']) || !is_int($server['port']) || isset($server['weight']) && !is_int($server['weight'])) { - throw new InvalidArgumentException('Each entry in servers parameter is supposed to be an array' . ' containing hostname (string), port (int), and, optionally, weight (int) of the server.'); + throw new InvalidArgumentException('Each entry in servers parameter is supposed to be an array'); } /** * @psalm-var array{host:string,port:int,weight?:int} $server Need for PHP 8.0
. ' containing hostname (string), port (int), and, optionally, weight (int) of the server.',
. ' containing hostname (string), port (int), and, optionally, weight (int) of the server.',
);
}
/**
Expand Down

0 comments on commit cd3e350

Please sign in to comment.