Skip to content

Commit

Permalink
formatting tweaks for readme
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Apr 13, 2021
1 parent 41df93f commit dc8ac6e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ Every method is abide to the following rules ( or at least they should. if they
```

```php
A::isArray(['a' => 10]); // true
A::isArray(["a" => 10]); // true
```

```php
A::isArray('asdf'); // false
A::isArray("asdf"); // false
```

```php
Expand All @@ -71,7 +71,7 @@ Every method is abide to the following rules ( or at least they should. if they
```

```php
A::isAssoc(['x' => 10, 'y' => 20]); // true
A::isAssoc(["x" => 10, "y" => 20]); // true
```

- **reduce** -
Expand Down Expand Up @@ -204,7 +204,7 @@ Every method is abide to the following rules ( or at least they should. if they
$point2d->x = 10;
$point2d->y = 20;

$point3d = O::assoc('z', 30, $point2d); // {"x": 10, "y": 20, "z": 30}
$point3d = O::assoc("z", 30, $point2d); // {"x": 10, "y": 20, "z": 30}
```

- **dissoc** - removes a key from an object
Expand All @@ -215,7 +215,7 @@ Every method is abide to the following rules ( or at least they should. if they
$point3d->y = 20;
$point3d->z = 30;

$point2d = O::dissoc('z', 30, $point3d); // {"x": 10, "y": 20}
$point2d = O::dissoc("z", 30, $point3d); // {"x": 10, "y": 20}
```

## Future plans
Expand Down Expand Up @@ -244,7 +244,8 @@ class A {
}

class S {
public static function includes($value, $data) {
public static function includes($value, $data)
{
return mb_strpos($data, $str) !== false;
}
}
Expand Down

0 comments on commit dc8ac6e

Please sign in to comment.