Skip to content

Commit a5154bf

Browse files
authored
Merge pull request #6484 from paulbalandan/single_line_comment_spacing
Enable `single_line_comment_spacing`
2 parents 780f2e0 + 5a182de commit a5154bf

26 files changed

+155
-153
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
['var', 'phpstan-var', 'psalm-var'],
7373
],
7474
],
75-
'statement_indentation' => true,
75+
'single_line_comment_spacing' => true,
76+
'statement_indentation' => true,
7677
// >>>>>>>>>>>>>>>>>>>>>>>>>
7778
];
7879

.php-cs-fixer.no-header.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
['var', 'phpstan-var', 'psalm-var'],
6565
],
6666
],
67-
'statement_indentation' => true,
67+
'single_line_comment_spacing' => true,
68+
'statement_indentation' => true,
6869
// >>>>>>>>>>>>>>>>>>>>>>>>>
6970
];
7071

.php-cs-fixer.user-guide.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@
6666
['var', 'phpstan-var', 'psalm-var'],
6767
],
6868
],
69-
'statement_indentation' => true,
69+
'single_line_comment_spacing' => true,
70+
'statement_indentation' => true,
7071
// >>>>>>>>>>>>>>>>>>>>>>>>>
7172
];
7273

app/Config/ContentSecurityPolicy.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
*/
1616
class ContentSecurityPolicy extends BaseConfig
1717
{
18-
//-------------------------------------------------------------------------
18+
// -------------------------------------------------------------------------
1919
// Broadbrush CSP management
20-
//-------------------------------------------------------------------------
20+
// -------------------------------------------------------------------------
2121

2222
/**
2323
* Default CSP report context
@@ -43,10 +43,10 @@ class ContentSecurityPolicy extends BaseConfig
4343
*/
4444
public $upgradeInsecureRequests = false;
4545

46-
//-------------------------------------------------------------------------
46+
// -------------------------------------------------------------------------
4747
// Sources allowed
4848
// Note: once you set a policy to 'none', it cannot be further restricted
49-
//-------------------------------------------------------------------------
49+
// -------------------------------------------------------------------------
5050

5151
/**
5252
* Will default to self if not overridden

app/Config/Routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// where controller filters or CSRF protection are bypassed.
2626
// If you don't want to define all routes, please use the Auto Routing (Improved).
2727
// Set `$autoRoutesImproved` to true in `app/Config/Feature.php` and set the following to true.
28-
//$routes->setAutoRoute(false);
28+
// $routes->setAutoRoute(false);
2929

3030
/*
3131
* --------------------------------------------------------------------

app/Config/Validation.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
class Validation extends BaseConfig
1212
{
13-
//--------------------------------------------------------------------
13+
// --------------------------------------------------------------------
1414
// Setup
15-
//--------------------------------------------------------------------
15+
// --------------------------------------------------------------------
1616

1717
/**
1818
* Stores the classes that contain the
@@ -38,7 +38,7 @@ class Validation extends BaseConfig
3838
'single' => 'CodeIgniter\Validation\Views\single',
3939
];
4040

41-
//--------------------------------------------------------------------
41+
// --------------------------------------------------------------------
4242
// Rules
43-
//--------------------------------------------------------------------
43+
// --------------------------------------------------------------------
4444
}

system/API/ResponseTrait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ protected function fail($messages, int $status = 400, ?string $code = null, stri
136136
return $this->respond($response, $status, $customMessage);
137137
}
138138

139-
//--------------------------------------------------------------------
139+
// --------------------------------------------------------------------
140140
// Response Helpers
141-
//--------------------------------------------------------------------
141+
// --------------------------------------------------------------------
142142

143143
/**
144144
* Used after successfully creating a new resource.
@@ -290,9 +290,9 @@ protected function failServerError(string $description = 'Internal Server Error'
290290
return $this->fail($description, $this->codes['server_error'], $code, $message);
291291
}
292292

293-
//--------------------------------------------------------------------
293+
// --------------------------------------------------------------------
294294
// Utility Methods
295-
//--------------------------------------------------------------------
295+
// --------------------------------------------------------------------
296296

297297
/**
298298
* Handles formatting a response. Currently makes some heavy assumptions

system/CLI/CLI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,9 +756,9 @@ public static function wrap(?string $string = null, int $max = 0, int $padLeft =
756756
return $lines;
757757
}
758758

759-
//--------------------------------------------------------------------
759+
// --------------------------------------------------------------------
760760
// Command-Line 'URI' support
761-
//--------------------------------------------------------------------
761+
// --------------------------------------------------------------------
762762

763763
/**
764764
* Parses the command line it was called from and collects all

system/Cookie/Cookie.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ public static function setDefaults($config = [])
152152
return $oldDefaults;
153153
}
154154

155-
//=========================================================================
155+
// =========================================================================
156156
// CONSTRUCTORS
157-
//=========================================================================
157+
// =========================================================================
158158

159159
/**
160160
* Create a new Cookie instance from a `Set-Cookie` header.
@@ -238,9 +238,9 @@ final public function __construct(string $name, string $value = '', array $optio
238238
$this->raw = $raw;
239239
}
240240

241-
//=========================================================================
241+
// =========================================================================
242242
// GETTERS
243-
//=========================================================================
243+
// =========================================================================
244244

245245
/**
246246
* {@inheritDoc}
@@ -391,9 +391,9 @@ public function getOptions(): array
391391
];
392392
}
393393

394-
//=========================================================================
394+
// =========================================================================
395395
// CLONING
396-
//=========================================================================
396+
// =========================================================================
397397

398398
/**
399399
* {@inheritDoc}
@@ -556,9 +556,9 @@ public function withRaw(bool $raw = true)
556556
return $cookie;
557557
}
558558

559-
//=========================================================================
559+
// =========================================================================
560560
// ARRAY ACCESS FOR BC
561-
//=========================================================================
561+
// =========================================================================
562562

563563
/**
564564
* Whether an offset exists.
@@ -614,9 +614,9 @@ public function offsetUnset($offset): void
614614
throw new LogicException(sprintf('Cannot unset values of properties of %s as it is immutable.', static::class));
615615
}
616616

617-
//=========================================================================
617+
// =========================================================================
618618
// CONVERTERS
619-
//=========================================================================
619+
// =========================================================================
620620

621621
/**
622622
* {@inheritDoc}
@@ -716,9 +716,9 @@ protected static function convertExpiresTimestamp($expires = 0): int
716716
return $expires > 0 ? (int) $expires : 0;
717717
}
718718

719-
//=========================================================================
719+
// =========================================================================
720720
// VALIDATION
721-
//=========================================================================
721+
// =========================================================================
722722

723723
/**
724724
* Validates the cookie name per RFC 2616.

system/Database/BaseConnection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,9 +1352,9 @@ protected function getDriverFunctionPrefix(): string
13521352
return strtolower($this->DBDriver) . '_';
13531353
}
13541354

1355-
//--------------------------------------------------------------------
1355+
// --------------------------------------------------------------------
13561356
// META Methods
1357-
//--------------------------------------------------------------------
1357+
// --------------------------------------------------------------------
13581358

13591359
/**
13601360
* Returns an array of table names

0 commit comments

Comments
 (0)