Skip to content

Commit c68a737

Browse files
authored
Rector 0.9 fixes (#4196)
1 parent e9b053a commit c68a737

File tree

10 files changed

+6
-22
lines changed

10 files changed

+6
-22
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"codeigniter4/codeigniter4-standard": "^1.0",
1919
"fakerphp/faker": "^1.9",
2020
"mikey179/vfsstream": "^1.6",
21-
"phpstan/phpstan": "^0.12",
21+
"phpstan/phpstan": "0.12.69",
2222
"phpunit/phpunit": "^9.1",
2323
"predis/predis": "^1.1",
2424
"rector/rector": "^0.9",

system/Database/BaseBuilder.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,8 +2226,6 @@ public function getCompiledInsert(bool $reset = true)
22262226
return $this->compileFinalQuery($sql);
22272227
}
22282228

2229-
//--------------------------------------------------------------------
2230-
22312229
/**
22322230
* Insert
22332231
*
@@ -2319,8 +2317,6 @@ protected function _insert(string $table, array $keys, array $unescapedKeys): st
23192317
return 'INSERT ' . $this->compileIgnore('insert') . 'INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES (' . implode(', ', $unescapedKeys) . ')';
23202318
}
23212319

2322-
//--------------------------------------------------------------------
2323-
23242320
/**
23252321
* Replace
23262322
*

system/Database/BaseConnection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,6 @@ public function addTableAlias(string $table)
592592
*/
593593
abstract protected function execute(string $sql);
594594

595-
//--------------------------------------------------------------------
596-
597595
/**
598596
* Orchestrates a query against the database. Queries must use
599597
* Database\Statement objects to store the query and build it.

system/Database/Config.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ public static function getConnections(): array
103103
return static::$instances;
104104
}
105105

106-
//--------------------------------------------------------------------
107-
108106
/**
109107
* Loads and returns an instance of the Forge for the specified
110108
* database group, and loads the group if it hasn't been loaded yet.

system/Database/Forge.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,6 @@ public function addForeignKey(string $fieldName = '', string $tableName = '', st
453453
return $this;
454454
}
455455

456-
//--------------------------------------------------------------------
457-
458456
/**
459457
* Foreign Key Drop
460458
*

system/Database/MigrationRunner.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ class MigrationRunner
119119
*/
120120
protected $groupSkip = false;
121121

122-
//--------------------------------------------------------------------
123-
124122
/**
125123
* Constructor.
126124
*

system/HTTP/Files/FileCollection.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ public function all()
4747
return $this->files;
4848
}
4949

50-
//--------------------------------------------------------------------
51-
5250
/**
5351
* Attempts to get a single file from the collection of uploaded files.
5452
*
@@ -182,8 +180,6 @@ protected function populateFiles()
182180
}
183181
}
184182

185-
//--------------------------------------------------------------------
186-
187183
/**
188184
* Given a file array, will create UploadedFile instances. Will
189185
* loop over an array and create objects for each.

system/HTTP/Message.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function getBody()
5858
/**
5959
* Returns an array containing all headers.
6060
*
61-
* @return array<string,Header> An array of the request headers
61+
* @return array<string, Header> An array of the request headers
6262
*
6363
* @deprecated Use Message::headers() to make room for PSR-7
6464
*/
@@ -140,7 +140,7 @@ public function getProtocolVersion(): string
140140
*
141141
* @deprecated Use header calls directly
142142
*/
143-
public function isJSON()
143+
public function isJSON()
144144
{
145145
if (! $this->hasHeader('Content-Type'))
146146
{

system/HTTP/MessageInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function populateHeaders(): void;
4444
/**
4545
* Returns an array containing all Headers.
4646
*
47-
* @return array<string,Header> An array of the Header objects
47+
* @return array<string, Header> An array of the Header objects
4848
*/
4949
public function headers(): array;
5050

system/HTTP/MessageTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ trait MessageTrait
2525
/**
2626
* List of all HTTP request headers.
2727
*
28-
* @var array<string,Header>
28+
* @var array<string, Header>
2929
*/
3030
protected $headers = [];
3131

@@ -105,7 +105,7 @@ public function populateHeaders(): void
105105
/**
106106
* Returns an array containing all Headers.
107107
*
108-
* @return array<string,Header> An array of the Header objects
108+
* @return array<string, Header> An array of the Header objects
109109
*/
110110
public function headers(): array
111111
{

0 commit comments

Comments
 (0)