Skip to content

Commit 4147f3a

Browse files
committed
php-cs-fixer fix
1 parent 6de5e28 commit 4147f3a

32 files changed

+193
-106
lines changed

src/Forms/ColorField.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color
1212
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color#Value wrt value
1313
*/
14-
class ColorField extends TextField {
14+
class ColorField extends TextField
15+
{
1516

1617
use Core;
1718
use Datalist;
@@ -24,7 +25,8 @@ class ColorField extends TextField {
2425
* Returns the value saved as a 6 chr RGB colour with # prefixed
2526
* @return string
2627
*/
27-
public function dataValue() {
28+
public function dataValue()
29+
{
2830
$value = $this->getValidRGB($this->value);
2931
return $value;
3032
}
@@ -42,7 +44,8 @@ public function Value()
4244
* @param string $value an RGB colour value as a 'valid simple colour'
4345
* @return void
4446
*/
45-
public function setValue($value, $data = null) {
47+
public function setValue($value, $data = null)
48+
{
4649
$this->value = $this->getValidRGB($value);
4750
}
4851

@@ -61,7 +64,8 @@ public function setValue($value, $data = null) {
6164
* representing the red component, the middle two digits representing the green component,
6265
* and the last two digits representing the blue component, in hexadecimal.</blockquote>
6366
*/
64-
public function getValidRGB($value, Validator $validator = null) {
67+
public function getValidRGB($value, Validator $validator = null)
68+
{
6569

6670
// empty values default to the empty value value
6771
if(!$value) {
@@ -71,7 +75,7 @@ public function getValidRGB($value, Validator $validator = null) {
7175
$value = strtolower($value);
7276

7377
// If input is not exactly seven characters long, then return an error.
74-
if(mb_strlen( $value ) != 7) {
78+
if(mb_strlen($value) != 7) {
7579
if($validator) {
7680
$validator->validationError(
7781
$this->name,

src/Forms/ColourField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
/**
66
* Provides a class for those of us not using en_US
77
*/
8-
class ColourField extends ColorField {
8+
class ColourField extends ColorField
9+
{
910

1011
protected $template = "Codem/Utilities/HTML5/ColorField";
1112

src/Forms/DateField.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* Provides a date field
99
* @author James
1010
*/
11-
class DateField extends TextField {
11+
class DateField extends TextField
12+
{
1213

1314
use Core;
1415
use Datalist;
@@ -21,15 +22,18 @@ class DateField extends TextField {
2122

2223
protected $example = "2020-12-31";
2324

24-
protected function formatDate(\Datetime $datetime) {
25-
return $datetime->format( $this->datetime_format );
25+
protected function formatDate(\Datetime $datetime)
26+
{
27+
return $datetime->format($this->datetime_format);
2628
}
2729

28-
public function setMin(\DateTime $min) {
30+
public function setMin(\DateTime $min)
31+
{
2932
return $this->setAttribute('min', $this->formatDate($min));
3033
}
3134

32-
public function setMax(\DateTime $max) {
35+
public function setMax(\DateTime $max)
36+
{
3337
return $this->setAttribute('max', $this->formatDate($max));
3438
}
3539

src/Forms/DatetimeField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
* but with hour and minute selection
88
* @author James
99
*/
10-
class DatetimeField extends DateField {
10+
class DatetimeField extends DateField
11+
{
1112

1213
protected $inputType = 'datetime-local';
1314

src/Forms/EmailField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* Text input field with validation for correct email format according to RFC 2822.
99
* @author james
1010
*/
11-
class EmailField extends CoreEmailField {
11+
class EmailField extends CoreEmailField
12+
{
1213

1314
use Core;
1415
use Datalist;

src/Forms/MonthField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
* but with month and year selection
88
* @author James
99
*/
10-
class MonthField extends DateField {
10+
class MonthField extends DateField
11+
{
1112

1213
protected $inputType = 'month';
1314

src/Forms/NumberField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* Number input field
99
* @author James
1010
*/
11-
class NumberField extends TextField {
11+
class NumberField extends TextField
12+
{
1213

1314
use Core;
1415
use Datalist;

src/Forms/RangeField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
/**
88
* Range input field
99
*/
10-
class RangeField extends TextField {
10+
class RangeField extends TextField
11+
{
1112

1213
use Core;
1314
use Datalist;

src/Forms/SearchField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* Search input field
99
* @author James
1010
*/
11-
class SearchField extends TextField {
11+
class SearchField extends TextField
12+
{
1213

1314
use Core;
1415
use Datalist;

src/Forms/TelField.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* From <input> elements of type tel are used to let the user enter and edit a telephone number.
99
* @author James
1010
*/
11-
class TelField extends TextField {
11+
class TelField extends TextField
12+
{
1213

1314
use Core;
1415
use Datalist;
@@ -20,7 +21,8 @@ class TelField extends TextField {
2021
/**
2122
* @inheritdoc
2223
*/
23-
public function Type() {
24+
public function Type()
25+
{
2426
return 'tel text';
2527
}
2628

0 commit comments

Comments
 (0)