Skip to content

Commit d30972e

Browse files
committed
Fix CS.
1 parent 9092784 commit d30972e

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

config/app.example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
return [
4-
// Copy the following over to your project one in ROOT/config/
4+
// Copy the following over to your project one in ROOT/config/
55
'IdeHelper' => [
66
// Additional plugins that are not loaded, but should be included, use `-` prefix to exclude
77
'plugins' => [],

src/Annotator/TemplateAnnotator.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use IdeHelper\Utility\App;
1414
use IdeHelper\Utility\CollectionClass;
1515
use IdeHelper\Utility\GenericString;
16+
use PHP_CodeSniffer\Config;
1617
use PHP_CodeSniffer\Files\File;
1718
use RuntimeException;
1819

@@ -239,17 +240,17 @@ protected function needsPhpTag(File $file, int $phpOpenTagIndex): bool {
239240
protected function needsViewAnnotation(string $content): bool {
240241
if (Configure::read('IdeHelper.preemptive')) {
241242
return true;
242-
}
243+
}
243244

244245
if (preg_match('/\$this->/', $content)) {
245246
return true;
246-
}
247+
}
247248

248249
if (preg_match('/<\?/', $content)) {
249250
return true;
250251
}
251252

252-
return false;
253+
return false;
253254
}
254255

255256
/**
@@ -560,8 +561,8 @@ protected function isV4(): bool {
560561

561562
// PHPCS v4+ requires blank line after <?php for PSR12 compliance
562563
// Check version from Config class constant
563-
if (class_exists(\PHP_CodeSniffer\Config::class)) {
564-
$version = \PHP_CodeSniffer\Config::VERSION;
564+
if (class_exists(Config::class)) {
565+
$version = Config::VERSION;
565566
$isV4 = version_compare($version, '4.0.0', '>=');
566567
} else {
567568
// Fallback: assume v4+ if class doesn't exist

src/Generator/Task/DatabaseTableColumnTypeTask.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,26 @@ class DatabaseTableColumnTypeTask implements TaskInterface {
3333
*/
3434
protected array $defaultTypes = [
3535
'string',
36-
'char',
37-
'text',
38-
'integer',
36+
'char',
37+
'text',
38+
'integer',
3939
'smallinteger',
4040
'biginteger',
4141
'bit',
42-
'float',
43-
'decimal',
44-
'double',
42+
'float',
43+
'decimal',
44+
'double',
4545
'datetime',
46-
'timestamp',
47-
'time',
48-
'date',
49-
'blob',
50-
'binary',
51-
'boolean',
52-
'uuid',
53-
'year',
54-
'json',
55-
'binaryuuid',
46+
'timestamp',
47+
'time',
48+
'date',
49+
'blob',
50+
'binary',
51+
'boolean',
52+
'uuid',
53+
'year',
54+
'json',
55+
'binaryuuid',
5656
];
5757

5858
/**

0 commit comments

Comments
 (0)