Repository Analysis

yiisoft/yii2

3.1 Likely human-written View on GitHub
3.1
Adjusted Score
3.1
Raw Score
100%
Time Factor
Last Push
Stars
Language
426,912
Lines of Code
1930
Files
1261
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 1LOW 1260

Pattern Findings

1261 matches across 4 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1167 hits · 1200 pts
SeverityFileLineSnippet
LOWframework/UPGRADE.md1165 `public static function findIdentityByAccessToken($token, $type = null)`. The new `$type` parameter
LOWframework/filters/PageCache.php283 private function insertResponseCookieCollectionIntoData(Response $response, array &$data)
LOWframework/filters/PageCache.php307 private function insertResponseHeaderCollectionIntoData(Response $response, array &$data)
LOWframework/rbac/DbManager.php579 protected function getDirectPermissionsByUser($userId)
LOWframework/rbac/DbManager.php603 protected function getInheritedPermissionsByUser($userId)
LOWframework/rbac/PhpManager.php491 protected function getDirectPermissionsByUser($userId)
LOWframework/rbac/PhpManager.php511 protected function getInheritedPermissionsByUser($userId)
LOWframework/di/Container.php660 public function resolveCallableDependencies(callable $callback, $params = [])
LOWframework/web/Controller.php208 private function filterSingleTypeActionParam($param, $type)
LOWframework/web/Controller.php253 private function filterUnionTypeActionParam($param, $type)
LOWframework/web/Response.php825 protected function getDispositionHeaderValue($disposition, $attachmentName)
LOWframework/web/Session.php520 public function getUseTransparentSessionID()
LOWframework/web/Session.php531 public function setUseTransparentSessionID($value)
LOWframework/web/User.php593 protected function getIdentityAndDurationFromCookie()
LOWframework/web/IdentityInterface.php25 * public static function findIdentityByAccessToken($token, $type = null)
LOWframework/web/IdentityInterface.php77 public static function findIdentityByAccessToken($token, $type = null);
LOWframework/web/UrlRule.php577 protected function substitutePlaceholderNames(array $matches)
LOWframework/web/Request.php1507 public function getAcceptableContentTypes()
LOWframework/web/Request.php1528 public function setAcceptableContentTypes($value)
LOWframework/web/Request.php1925 private function validateCsrfTokenInternal($clientSuppliedToken, $trueToken)
LOWframework/web/Request.php1945 protected function getSecureForwardedHeaderTrustedPart($token)
LOWframework/web/Request.php1967 protected function getSecureForwardedHeaderTrustedParts()
LOWframework/web/Request.php2002 protected function getSecureForwardedHeaderParts()
LOWframework/web/ErrorHandler.php442 public function createServerInformationLink()
LOWframework/web/ErrorHandler.php470 public function createFrameworkVersionLink()
LOWframework/behaviors/CacheableWidgetBehavior.php189 private function getFragmentCacheConfiguration()
LOWframework/behaviors/AttributeTypecastBehavior.php197 public static function clearAutoDetectedAttributeTypes()
LOWframework/db/Connection.php840 private function rollbackTransactionOnLevel($transaction, $level)
LOWframework/db/Connection.php902 private function restoreQueryBuilderConfiguration()
LOWframework/db/Command.php1243 protected function requireTableSchemaRefresh($name)
LOWframework/db/Schema.php331 public function createColumnSchemaBuilder($type, $length = null)
LOWframework/db/Schema.php418 public function setTransactionIsolationLevel($level)
LOWframework/db/Schema.php832 private function loadTableMetadataFromCache($cache, $name)
LOWframework/db/Query.php759 protected function getUnaliasedColumnsFromSelect()
LOWframework/db/QueryBuilder.php168 protected function defaultExpressionBuilders()
LOWframework/db/QueryBuilder.php411 protected function prepareInsertSelectSubQuery($columns, $schema, $params = [])
LOWframework/db/QueryBuilder.php576 private function getTableUniqueColumnNames($name, $columns, &$constraints = [])
LOWframework/db/oci/Schema.php277 public function createColumnSchemaBuilder($type, $length = null)
LOWframework/db/oci/QueryBuilder.php58 protected function defaultExpressionBuilders()
LOWframework/db/sqlite/Schema.php222 public function createColumnSchemaBuilder($type, $length = null)
LOWframework/db/sqlite/Schema.php373 public function setTransactionIsolationLevel($level)
LOWframework/db/sqlite/QueryBuilder.php58 protected function defaultExpressionBuilders()
LOWframework/db/sqlite/conditions/InConditionBuilder.php38 protected function buildCompositeInCondition($operator, $columns, $values, &$params)
LOWframework/db/cubrid/Schema.php358 public function setTransactionIsolationLevel($level)
LOWframework/db/cubrid/Schema.php381 public function createColumnSchemaBuilder($type, $length = null)
LOWframework/db/cubrid/QueryBuilder.php55 protected function defaultExpressionBuilders()
LOWframework/db/mysql/Schema.php525 public function createColumnSchemaBuilder($type, $length = null)
LOWframework/db/mysql/QueryBuilder.php65 protected function defaultExpressionBuilders()
LOWframework/db/mysql/QueryBuilder.php389 private function supportsFractionalSeconds()
LOWframework/db/conditions/InConditionBuilder.php198 protected function buildCompositeInCondition($operator, $columns, $values, &$params)
LOWframework/db/conditions/InConditionBuilder.php253 protected function getRawValuesFromTraversableObject(\Traversable $traversableObject)
LOWframework/db/pgsql/Schema.php403 protected function getUniqueIndexInformation($table)
LOWframework/db/pgsql/QueryBuilder.php96 protected function defaultExpressionBuilders()
LOWframework/db/mssql/Schema.php827 public function createColumnSchemaBuilder($type, $length = null)
LOWframework/db/mssql/QueryBuilder.php56 protected function defaultExpressionBuilders()
LOWframework/db/mssql/conditions/InConditionBuilder.php38 protected function buildCompositeInCondition($operator, $columns, $values, &$params)
LOWframework/log/Dispatcher.php218 protected function generateTargetFailErrorMessage($target, $throwable, $method)
LOWframework/validators/ExistValidator.php123 private function checkTargetRelationExistence($model, $attribute)
LOWframework/validators/ExistValidator.php155 private function checkTargetAttributeExistence($model, $attribute)
LOWframework/i18n/Formatter.php1849 private function setFormatterTextAttribute($formatter, $attribute, $value, $source, $alternative)
1107 more matches not shown…
Fake / Example Data80 hits · 95 pts
SeverityFileLineSnippet
LOWframework/log/Dispatcher.php39 * 'to' => 'admin@example.com',
LOWframework/helpers/BaseConsole.php745 * The first line will **not** be indented, so `Console::wrapText("Lorem ipsum dolor sit amet.", 4)` will result in
LOWframework/helpers/BaseConsole.php745 * The first line will **not** be indented, so `Console::wrapText("Lorem ipsum dolor sit amet.", 4)` will result in
LOWframework/helpers/BaseConsole.php749 * Lorem ipsum
LOWtests/framework/mail/BaseMailerTest.php242<p>Test Lorem ipsum...</p>
LOWtests/framework/mail/BaseMailerTest.php252Test Lorem ipsum...
LOWtests/framework/web/UrlManagerCreateUrlTest.php753 $this->assertEquals('/user/show?name=John+Doe', $manager->createUrl(['user/show', 'name' => 'John Doe']));
LOWtests/framework/web/UrlManagerCreateUrlTest.php765 $this->assertEquals('/user/profile?name=John+Doe', $manager->createUrl(['user/profile', 'name' => 'John Doe']));
LOWtests/framework/web/UrlManagerCreateUrlTest.php795 $this->assertEquals('/user/show?name=John+Doe', $manager->createUrl(['user/show', 'name' => 'John Doe']));
LOWtests/framework/behaviors/AttributeBehaviorTest.php73 'John Doe',
LOWtests/framework/behaviors/AttributeBehaviorTest.php75 'John Doe',
LOWtests/framework/behaviors/AttributeBehaviorTest.php79 'John Doe',
LOWtests/framework/behaviors/AttributeBehaviorTest.php81 'John Doe',
LOWtests/framework/behaviors/AttributeBehaviorTest.php85 'John Doe',
LOWtests/framework/behaviors/AttributeBehaviorTest.php87 'John Doe',
LOWtests/framework/behaviors/AttributeBehaviorTest.php93 'John Doe',
LOWtests/framework/behaviors/AttributesBehaviorTest.php73 'John Doe',
LOWtests/framework/behaviors/AttributesBehaviorTest.php75 'John Doe',
LOWtests/framework/behaviors/AttributesBehaviorTest.php79 'John Doe',
LOWtests/framework/behaviors/AttributesBehaviorTest.php81 'John Doe',
LOWtests/framework/behaviors/AttributesBehaviorTest.php85 'John Doe',
LOWtests/framework/behaviors/AttributesBehaviorTest.php87 'John Doe',
LOWtests/framework/behaviors/AttributesBehaviorTest.php93 'John Doe',
LOWtests/framework/behaviors/AttributesBehaviorTest.php131 'John Doe', // name
LOWtests/framework/behaviors/AttributesBehaviorTest.php135 'John Doe',
LOWtests/framework/behaviors/AttributesBehaviorTest.php138 'John Doe', // name
LOWtests/framework/db/QueryTest.php486 $query->andFilterCompare('name', 'John Doe');
LOWtests/framework/db/QueryTest.php487 $condition = ['=', 'name', 'John Doe'];
LOWtests/framework/db/ActiveRecordTest.php1150 $this->assertEquals('John Doe', $dossier->employee->fullName);
LOWtests/framework/helpers/StringHelperTest.php140 $this->assertEquals('lorem ipsum', StringHelper::truncateWords('lorem ipsum', 3, '...', true));
LOWtests/framework/helpers/StringHelperTest.php141 $this->assertEquals(' lorem ipsum', StringHelper::truncateWords(' lorem ipsum', 3, '...', true));
LOWtests/framework/base/ArrayableTraitTest.php82 $this->assertSame('John Doe', $result['fullName']);
LOWtests/framework/base/ArrayableTraitTest.php316 $model->email = 'test@test.com';
LOWtests/framework/base/ArrayableTraitTest.php320 $this->assertSame('test@test.com', $result['email']);
LOWtests/framework/base/ArrayableTraitTest.php327 $item->email = 'test@test.com';
LOWdocs/documentation_style_guide.md82 "Jane Doe",
LOWdocs/documentation_style_guide.md83 "John Doe"
LOWdocs/guide/rest-resources.md193 "email": "user@example.com",
LOWdocs/guide/runtime-logging.md88 'to' => ['admin@example.com', 'developer@example.com'],
LOWdocs/guide/db-query-builder.md425$query->andFilterCompare('name', 'John Doe');
LOWdocs/guide/rest-quick-start.md167 -d '{"username": "example", "email": "user@example.com"}'
LOWdocs/guide/rest-quick-start.md175{"id":1,"username":"example","email":"user@example.com","created_at":1414674789,"updated_at":1414674789}
LOWdocs/guide/helper-html.md389<?= Html::mailto('Contact us', 'admin@example.com') ?>
LOWdocs/guide/helper-array.md380 'admin' => 'admin@example.com',
LOWdocs/guide/helper-array.md417 'admin' => 'admin@example.com',
LOWdocs/guide-ja/rest-resources.md193 "email": "user@example.com",
LOWdocs/guide-ja/runtime-logging.md88 'to' => ['admin@example.com', 'developer@example.com'],
LOWdocs/guide-ja/db-query-builder.md425$query->andFilterCompare('name', 'John Doe');
LOWdocs/guide-ja/rest-quick-start.md167 -d '{"username": "example", "email": "user@example.com"}'
LOWdocs/guide-ja/rest-quick-start.md175{"id":1,"username":"example","email":"user@example.com","created_at":1414674789,"updated_at":1414674789}
LOWdocs/guide-ja/helper-html.md389<?= Html::mailto('連絡先', 'admin@example.com') ?>
LOWdocs/guide-ja/helper-array.md380 'admin' => 'admin@example.com',
LOWdocs/guide-ja/helper-array.md417 'admin' => 'admin@example.com',
LOWdocs/guide-ru/rest-resources.md161 "email": "user@example.com",
LOWdocs/guide-ru/runtime-logging.md68 'to' => ['admin@example.com', 'developer@example.com'],
LOWdocs/guide-ru/helper-html.md410<?= Html::mailto('Обратная связь', 'admin@example.com') ?>
LOWdocs/guide-pt-BR/rest-resources.md147 "email": "user@example.com",
LOWdocs/guide-pt-BR/runtime-logging.md67 'to' => ['admin@example.com', 'developer@example.com'],
LOWdocs/guide-pt-BR/rest-quick-start.md157$ curl -i -H "Accept:application/json" -H "Content-Type:application/json" -XPOST "http://localhost/users" -d '{"username
LOWdocs/guide-pt-BR/rest-quick-start.md165{"id":1,"username":"example","email":"user@example.com","created_at":1414674789,"updated_at":1414674789}
20 more matches not shown…
Over-Commented Block13 hits · 13 pts
SeverityFileLineSnippet
LOWframework/messages/config.php21 ],
LOWframework/views/messageConfig.php21 // messages will be separated from the old (translated) ones.
LOWtests/framework/db/QueryBuilderTest.php241 //[
LOWtests/framework/db/QueryBuilderTest.php861 'cubrid' => 'varchar',
LOWtests/data/web/assetSources/js/jquery.js1// Let's imagine this is a jQuery plugin :)
LOWdocs/guide/helper-array.md261 ['id' => '124', 'name' => 'bbb', 'class' => 'x'],
LOWdocs/guide/helper-array.md581// 'a.b' => 'string',
LOWdocs/guide-ja/helper-array.md261 ['id' => '124', 'name' => 'bbb', 'class' => 'x'],
LOWdocs/guide-ru/helper-array.md201// ]
LOWdocs/guide-ru/helper-array.md441];
LOWdocs/guide-fr/helper-array.md201// le résultat est :
LOWdocs/guide-es/helper-array.md221
LOWdocs/guide-zh-CN/helper-array.md261 ['id' => '124', 'name' => 'bbb', 'class' => 'x'],
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMframework/data/ActiveDataFilter.php57 * used in [[\yii\db\QueryInterface::where()]]. However, you may want to adjust it in some special cases.