Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Apr 9, 2019
1 parent 9b67fa1 commit f6b9c04
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 23 deletions.
5 changes: 4 additions & 1 deletion .styleci.yml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
preset: laravel
preset: psr2

enabled:
- concat_with_spaces
8 changes: 4 additions & 4 deletions src/Contracts/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ abstract class Driver
/**
* Get a specific key from the settings data.
*
* @param string|array $key
* @param mixed $default Optional default value.
* @param string|array $key
* @param mixed $default Optional default value.
*
* @return mixed
*/
Expand All @@ -49,7 +49,7 @@ public function get($key, $default = null)
/**
* Determine if a key exists in the settings data.
*
* @param string $key
* @param string $key
*
* @return bool
*/
Expand Down Expand Up @@ -91,7 +91,7 @@ public function set($key, $value = null)
/**
* Unset a key in the settings data.
*
* @param string $key
* @param string $key
*/
public function forget($key)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Drivers/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ protected function write(array $data)
* database. Call array_dot on a multidimensional array before passing it
* into this method!
*
* @param array $data Call array_dot on a multidimensional array before passing it into this method!
* @param array $data Call array_dot on a multidimensional array before passing it into this method!
*
* @return array
*/
Expand Down Expand Up @@ -234,7 +234,7 @@ protected function read()
/**
* Parse data coming from the database.
*
* @param array $data
* @param array $data
*
* @return array
*/
Expand Down Expand Up @@ -263,7 +263,7 @@ public function parseReadData($data)
/**
* Create a new query builder instance.
*
* @param $insert boolean Whether the query is an insert or not.
* @param bool $insert
*
* @return \Illuminate\Database\Query\Builder
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Middleware/AutoSaveSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public function __construct()
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
*/
Expand Down
18 changes: 9 additions & 9 deletions src/Support/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ private function __construct()
/**
* Get an element from an array.
*
* @param array $data
* @param string $key Specify a nested element by separating keys with full stops.
* @param mixed $default If the element is not found, return this.
* @param array $data
* @param string $key Specify a nested element by separating keys with full stops.
* @param mixed $default If the element is not found, return this.
*
* @return mixed
*/
Expand Down Expand Up @@ -60,8 +60,8 @@ protected static function getArray(array $input, $keys, $default = null)
/**
* Determine if an array has a given key.
*
* @param array $data
* @param string $key
* @param array $data
* @param string $key
*
* @return bool
*/
Expand All @@ -85,9 +85,9 @@ public static function has(array $data, $key)
/**
* Set an element of an array.
*
* @param array $data
* @param array $data
* @param string $key Specify a nested element by separating keys with full stops.
* @param mixed $value
* @param mixed $value
*/
public static function set(array &$data, $key, $value)
{
Expand All @@ -112,8 +112,8 @@ public static function set(array &$data, $key, $value)
/**
* Unset an element from an array.
*
* @param array &$data
* @param string $key Specify a nested element by separating keys with full stops.
* @param array &$data
* @param string $key Specify a nested element by separating keys with full stops.
*/
public static function forget(array &$data, $key)
{
Expand Down
8 changes: 4 additions & 4 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
/**
* Easily check if multiple array keys exist.
*
* @param array $keys
* @param array $arr
* @param array $keys
* @param array $arr
*
* @return boolean
*/
Expand All @@ -21,8 +21,8 @@ function array_keys_exists(array $keys, array $arr)
*
* If an array is passed as the key, we will assume you want to set an array of values.
*
* @param array|string $key
* @param mixed $default
* @param array|string $key
* @param mixed $default
*
* @return mixed
*/
Expand Down

0 comments on commit f6b9c04

Please sign in to comment.