Skip to content

Commit

Permalink
Fix StyleCI config (#24)
Browse files Browse the repository at this point in the history
* Fix StyleCI config

* Apply fixes from StyleCI (#25)

Co-authored-by: StyleCI Bot <bot@styleci.io>

Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
svenluijten and StyleCIBot authored Feb 5, 2022
1 parent 26477b6 commit 08f3d7f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 31 deletions.
4 changes: 0 additions & 4 deletions .styleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@ preset: laravel

risky: false

enabled:
- phpdoc_order
- phpdoc_separation

disabled:
- not_operator_with_successor_space
27 changes: 11 additions & 16 deletions src/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
class Arr
{
/**
* @param \ArrayAccess|array $array
* @param string $key
* @param mixed $default
*
* @param \ArrayAccess|array $array
* @param string $key
* @param mixed $default
* @return mixed
*/
public static function get($array, $key, $default = null)
Expand Down Expand Up @@ -48,10 +47,9 @@ public static function get($array, $key, $default = null)
}

/**
* @param array $array
* @param string $key
* @param mixed $value
*
* @param array $array
* @param string $key
* @param mixed $value
* @return array
*/
public static function set(&$array, $key, $value)
Expand Down Expand Up @@ -81,9 +79,8 @@ public static function set(&$array, $key, $value)
}

/**
* @param array $array
* @param array|string $keys
*
* @param array $array
* @param array|string $keys
* @return void
*/
public static function forget(&$array, $keys)
Expand Down Expand Up @@ -122,8 +119,7 @@ public static function forget(&$array, $keys)
}

/**
* @param mixed $value
*
* @param mixed $value
* @return bool
*/
public static function accessible($value): bool
Expand All @@ -132,9 +128,8 @@ public static function accessible($value): bool
}

/**
* @param \ArrayAccess|array $array
* @param string|int $key
*
* @param \ArrayAccess|array $array
* @param string|int $key
* @return bool
*/
public static function exists($array, $key): bool
Expand Down
6 changes: 2 additions & 4 deletions src/Drivers/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@ interface Driver
/**
* Convert the file format to a PHP array.
*
* @param string $contents
*
* @param string $contents
* @return array
*/
public function import(string $contents): array;

/**
* Convert the PHP array back to the right format.
*
* @param array $config
*
* @param array $config
* @return string
*/
public function export(array $config): string;
Expand Down
6 changes: 3 additions & 3 deletions tests/Drivers/DriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ abstract class DriverTest extends TestCase
/**
* @dataProvider files
*
* @param string $title
* @param string $contents
* @param array $config
* @param string $title
* @param string $contents
* @param array $config
*
* @throws \Exception
*/
Expand Down
7 changes: 3 additions & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ protected function filesystem(): Filesystem
}

/**
* @param string $path
* @param string $contents
* @param string $path
* @param string $contents
* @return void
*
* @throws \League\Flysystem\FilesystemException
*
* @return void
*/
protected function create(string $path, string $contents = ''): void
{
Expand Down

0 comments on commit 08f3d7f

Please sign in to comment.