Skip to content

Commit 86160b0

Browse files
Johannes PichlerStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent de02ef9 commit 86160b0

File tree

10 files changed

+46
-33
lines changed

10 files changed

+46
-33
lines changed

src/Binding.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
interface Binding
66
{
77
/**
8-
* executes the defined binding method on the class instance
8+
* executes the defined binding method on the class instance.
99
*
1010
* @param JsonDecoder $jsonDecoder
11-
* @param mixed $jsonData
12-
* @param mixed $instance the class instance to bind to
11+
* @param mixed $jsonData
12+
* @param mixed $instance the class instance to bind to
13+
*
1314
* @return mixed
1415
*/
1516
public function bind($jsonDecoder, $jsonData, $instance);

src/Bindings/AliasBinding.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AliasBinding implements Binding
2121
/**
2222
* AliasBinding constructor.
2323
*
24-
* @param string $property the property to bind to
24+
* @param string $property the property to bind to
2525
* @param string $jsonField the json field
2626
*/
2727
public function __construct($property, $jsonField)
@@ -31,13 +31,15 @@ public function __construct($property, $jsonField)
3131
}
3232

3333
/**
34-
* executes the defined binding method on the class instance
34+
* executes the defined binding method on the class instance.
3535
*
3636
* @param JsonDecoder $jsonDecoder
37-
* @param mixed $jsonData
38-
* @param mixed $instance the class instance to bind to
39-
* @return mixed
37+
* @param mixed $jsonData
38+
* @param mixed $instance the class instance to bind to
39+
*
4040
* @throws JsonValueException if given json field is not available
41+
*
42+
* @return mixed
4143
*/
4244
public function bind($jsonDecoder, $jsonData, $instance)
4345
{

src/Bindings/ArrayBinding.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class ArrayBinding implements Binding
2626
/**
2727
* ArrayBinding constructor.
2828
*
29-
* @param string $property the property to bind to
29+
* @param string $property the property to bind to
3030
* @param string $jsonField the json field
31-
* @param string $type the desired type of the property
31+
* @param string $type the desired type of the property
3232
*/
3333
public function __construct($property, $jsonField, $type)
3434
{
@@ -38,13 +38,15 @@ public function __construct($property, $jsonField, $type)
3838
}
3939

4040
/**
41-
* executes the defined binding method on the class instance
41+
* executes the defined binding method on the class instance.
4242
*
4343
* @param JsonDecoder $jsonDecoder
44-
* @param array $jsonData
45-
* @param mixed $instance the class instance to bind to
46-
* @return mixed
44+
* @param array $jsonData
45+
* @param mixed $instance the class instance to bind to
46+
*
4747
* @throws JsonValueException if given json field is not available
48+
*
49+
* @return mixed
4850
*/
4951
public function bind($jsonDecoder, $jsonData, $instance)
5052
{

src/Bindings/CallbackBinding.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ class CallbackBinding implements Binding
1919

2020
/**
2121
* CallbackBinding constructor.
22-
* @param string $property
22+
*
23+
* @param string $property
2324
* @param callable $callback
2425
*/
2526
public function __construct($property, $callback)
@@ -29,11 +30,12 @@ public function __construct($property, $callback)
2930
}
3031

3132
/**
32-
* executes the defined binding method on the class instance
33+
* executes the defined binding method on the class instance.
3334
*
3435
* @param JsonDecoder $jsonDecoder
35-
* @param mixed $jsonData
36-
* @param mixed $instance the class instance to bind to
36+
* @param mixed $jsonData
37+
* @param mixed $instance the class instance to bind to
38+
*
3739
* @return mixed
3840
*/
3941
public function bind($jsonDecoder, $jsonData, $instance)

src/Bindings/FieldBinding.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class FieldBinding implements Binding
2626
/**
2727
* FieldBinding constructor.
2828
*
29-
* @param string $property the property to bind to
29+
* @param string $property the property to bind to
3030
* @param string $jsonField the json field
31-
* @param string $type the desired type of the property
31+
* @param string $type the desired type of the property
3232
*/
3333
public function __construct($property, $jsonField, $type)
3434
{
@@ -38,13 +38,15 @@ public function __construct($property, $jsonField, $type)
3838
}
3939

4040
/**
41-
* executes the defined binding method on the class instance
41+
* executes the defined binding method on the class instance.
4242
*
4343
* @param JsonDecoder $jsonDecoder
44-
* @param array $jsonData
45-
* @param mixed $instance the class instance to bind to
46-
* @return mixed
44+
* @param array $jsonData
45+
* @param mixed $instance the class instance to bind to
46+
*
4747
* @throws JsonValueException if given json field is not available
48+
*
49+
* @return mixed
4850
*/
4951
public function bind($jsonDecoder, $jsonData, $instance)
5052
{

src/Bindings/RawBinding.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ public function __construct($property)
2323
}
2424

2525
/**
26-
* executes the defined binding method on the class instance
26+
* executes the defined binding method on the class instance.
2727
*
2828
* @param JsonDecoder $jsonDecoder
29-
* @param mixed $jsonData
30-
* @param mixed $instance the class instance to bind to
29+
* @param mixed $jsonData
30+
* @param mixed $instance the class instance to bind to
31+
*
3132
* @return mixed
3233
*/
3334
public function bind($jsonDecoder, $jsonData, $instance)

src/ClassBindings.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ public function __construct(JsonDecoder $jsonDecoder)
2222
}
2323

2424
/**
25-
* decodes all available properties of the given class instance
25+
* decodes all available properties of the given class instance.
2626
*
2727
* @param array $data
2828
* @param midex $instance
29+
*
2930
* @return mixed
3031
*/
3132
public function decode($data, $instance)
@@ -80,9 +81,10 @@ public function register($binding)
8081
}
8182

8283
/**
83-
* checks for a binding for the given property
84+
* checks for a binding for the given property.
8485
*
8586
* @param string $property
87+
*
8688
* @return bool
8789
*/
8890
private function hasBinding($property)

src/Exceptions/JsonValueException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66

77
class JsonValueException extends Exception
88
{
9-
109
}

src/JsonDecoder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class JsonDecoder
1515

1616
/**
1717
* JsonDecoder constructor.
18+
*
1819
* @param bool $decodePrivateProperties
1920
* @param bool $decodeProtectedProperties
2021
*/
@@ -25,7 +26,7 @@ public function __construct($decodePrivateProperties = false, $decodeProtectedPr
2526
}
2627

2728
/**
28-
* registers the given transformer
29+
* registers the given transformer.
2930
*
3031
* @param Transformer $transformer
3132
*/
@@ -40,10 +41,11 @@ public function decode($jsonString, $classType)
4041
}
4142

4243
/**
43-
* decodes the given array data into an instance of the given class type
44+
* decodes the given array data into an instance of the given class type.
4445
*
4546
* @param $jsonArrayData array
4647
* @param $classType string
48+
*
4749
* @return mixed an instance of $classType
4850
*/
4951
public function decodeArray($jsonArrayData, $classType)

src/Transformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
interface Transformer
66
{
77
/**
8-
* register field, array, alias and callback bindings
8+
* register field, array, alias and callback bindings.
99
*
1010
* @param ClassBindings $classBindings
1111
*/

0 commit comments

Comments
 (0)