Skip to content

Commit f18cd6a

Browse files
committed
Remove unneeded inline @var annoations.
1 parent c7636d3 commit f18cd6a

File tree

5 files changed

+0
-11
lines changed

5 files changed

+0
-11
lines changed

EagerLoader.php

-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ protected function _resolveJoins(array $associations, array $matching = []): arr
628628
*/
629629
public function loadExternal(Query $query, StatementInterface $statement): StatementInterface
630630
{
631-
/** @var \Cake\ORM\Table $table */
632631
$table = $query->getRepository();
633632
$external = $this->externalAssociations($table);
634633
if (empty($external)) {

Marshaller.php

-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ public function one(array $data, array $options = []): EntityInterface
181181

182182
$primaryKey = (array)$this->_table->getPrimaryKey();
183183
$entityClass = $this->_table->getEntityClass();
184-
/** @var \Cake\Datasource\EntityInterface $entity */
185184
$entity = new $entityClass();
186185
$entity->setSource($this->_table->getRegistryAlias());
187186

Query.php

-7
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,6 @@ protected function _transformQuery(): void
11441144
return;
11451145
}
11461146

1147-
/** @var \Cake\ORM\Table $repository */
11481147
$repository = $this->getRepository();
11491148

11501149
if (empty($this->_parts['from'])) {
@@ -1166,7 +1165,6 @@ protected function _addDefaultFields(): void
11661165
$select = $this->clause('select');
11671166
$this->_hasFields = true;
11681167

1169-
/** @var \Cake\ORM\Table $repository */
11701168
$repository = $this->getRepository();
11711169

11721170
if (!count($select) || $this->_autoFields === true) {
@@ -1217,7 +1215,6 @@ protected function _addDefaultSelectTypes(): void
12171215
*/
12181216
public function find(string $finder, array $options = [])
12191217
{
1220-
/** @var \Cake\ORM\Table $table */
12211218
$table = $this->getRepository();
12221219

12231220
/** @psalm-suppress LessSpecificReturnStatement */
@@ -1249,7 +1246,6 @@ protected function _dirty(): void
12491246
public function update($table = null)
12501247
{
12511248
if (!$table) {
1252-
/** @var \Cake\ORM\Table $repository */
12531249
$repository = $this->getRepository();
12541250
$table = $repository->getTable();
12551251
}
@@ -1268,7 +1264,6 @@ public function update($table = null)
12681264
*/
12691265
public function delete(?string $table = null)
12701266
{
1271-
/** @var \Cake\ORM\Table $repository */
12721267
$repository = $this->getRepository();
12731268
$this->from([$repository->getAlias() => $repository->getTable()]);
12741269

@@ -1291,7 +1286,6 @@ public function delete(?string $table = null)
12911286
*/
12921287
public function insert(array $columns, array $types = [])
12931288
{
1294-
/** @var \Cake\ORM\Table $repository */
12951289
$repository = $this->getRepository();
12961290
$table = $repository->getTable();
12971291
$this->into($table);
@@ -1416,7 +1410,6 @@ protected function _decorateResults(Traversable $result): ResultSetInterface
14161410

14171411
if (!($result instanceof ResultSet) && $this->isBufferedResultsEnabled()) {
14181412
$class = $this->_decoratorClass();
1419-
/** @var \Cake\Datasource\ResultSetInterface $result */
14201413
$result = new $class($result->buffered());
14211414
}
14221415

ResultSet.php

-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ class ResultSet implements ResultSetInterface
159159
*/
160160
public function __construct(Query $query, StatementInterface $statement)
161161
{
162-
/** @var \Cake\ORM\Table $repository */
163162
$repository = $query->getRepository();
164163
$this->_statement = $statement;
165164
$this->_driver = $query->getConnection()->getDriver();

Table.php

-1
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,6 @@ public function getBehavior(string $name): Behavior
860860
));
861861
}
862862

863-
/** @var \Cake\ORM\Behavior $behavior */
864863
$behavior = $this->_behaviors->get($name);
865864

866865
return $behavior;

0 commit comments

Comments
 (0)