Skip to content

Commit c148d22

Browse files
committed
MAGETWO-31578: Implement tool for adding annotations to existing code
- added phpmd annotations
1 parent 4263415 commit c148d22

File tree

1 file changed

+9
-0
lines changed
  • lib/internal/Magento/Framework/DB/Adapter/Pdo

1 file changed

+9
-0
lines changed

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,6 +2453,8 @@ public function renameTable($oldTableName, $newTableName, $schemaName = null)
24532453
* @return \Zend_Db_Statement_Interface
24542454
* @throws \Zend_Db_Exception
24552455
* @throws \Exception
2456+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
2457+
* @SuppressWarnings(PHPMD.NPathComplexity)
24562458
*/
24572459
public function addIndex(
24582460
$tableName,
@@ -2578,6 +2580,7 @@ public function dropIndex($tableName, $keyName, $schemaName = null)
25782580
* @param string $schemaName
25792581
* @param string $refSchemaName
25802582
* @return \Zend_Db_Statement_Interface
2583+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
25812584
*/
25822585
public function addForeignKey(
25832586
$fkName,
@@ -2692,6 +2695,7 @@ public function endSetup()
26922695
* @param string $fieldName
26932696
* @param integer|string|array $condition
26942697
* @return string
2698+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
26952699
*/
26962700
public function prepareSqlCondition($fieldName, $condition)
26972701
{
@@ -2798,6 +2802,9 @@ protected function _transformStringSqlCondition($conditionKey, $value)
27982802
* @param array $column the column describe array
27992803
* @param mixed $value
28002804
* @return mixed
2805+
*
2806+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
2807+
* @SuppressWarnings(PHPMD.NPathComplexity)
28012808
*/
28022809
public function prepareColumnValue(array $column, $value)
28032810
{
@@ -3383,6 +3390,8 @@ public function selectsByRange($rangeField, \Magento\Framework\DB\Select $select
33833390
* @param string|array $table
33843391
* @return string
33853392
* @throws \Magento\Framework\DB\DBException
3393+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
3394+
* @SuppressWarnings(PHPMD.NPathComplexity)
33863395
*/
33873396
public function updateFromSelect(Select $select, $table)
33883397
{

0 commit comments

Comments
 (0)