| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 77 | 
| Code Lines | 1 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php  | 
            ||
| 74 | public function getSubClient( string $type, string $name = null ) : \Aimeos\Client\Html\Iface  | 
            ||
| 75 |     { | 
            ||
| 76 | /** client/html/account/profile/account/decorators/excludes  | 
            ||
| 77 | * Excludes decorators added by the "common" option from the account profile account html client  | 
            ||
| 78 | *  | 
            ||
| 79 | * Decorators extend the functionality of a class by adding new aspects  | 
            ||
| 80 | * (e.g. log what is currently done), executing the methods of the underlying  | 
            ||
| 81 | * class only in certain conditions (e.g. only for logged in users) or  | 
            ||
| 82 | * modify what is returned to the caller.  | 
            ||
| 83 | *  | 
            ||
| 84 | * This option allows you to remove a decorator added via  | 
            ||
| 85 | * "client/html/common/decorators/default" before they are wrapped  | 
            ||
| 86 | * around the html client.  | 
            ||
| 87 | *  | 
            ||
| 88 | * client/html/account/profile/account/decorators/excludes = array( 'decorator1' )  | 
            ||
| 89 | *  | 
            ||
| 90 | * This would remove the decorator named "decorator1" from the list of  | 
            ||
| 91 |          * common decorators ("\Aimeos\Client\Html\Common\Decorator\*") added via | 
            ||
| 92 | * "client/html/common/decorators/default" to the html client.  | 
            ||
| 93 | *  | 
            ||
| 94 | * @param array List of decorator names  | 
            ||
| 95 | * @since 2019.07  | 
            ||
| 96 | * @category Developer  | 
            ||
| 97 | * @see client/html/common/decorators/default  | 
            ||
| 98 | * @see client/html/account/profile/account/decorators/global  | 
            ||
| 99 | * @see client/html/account/profile/account/decorators/local  | 
            ||
| 100 | */  | 
            ||
| 101 | |||
| 102 | /** client/html/account/profile/account/decorators/global  | 
            ||
| 103 | * Adds a list of globally available decorators only to the account profile account html client  | 
            ||
| 104 | *  | 
            ||
| 105 | * Decorators extend the functionality of a class by adding new aspects  | 
            ||
| 106 | * (e.g. log what is currently done), executing the methods of the underlying  | 
            ||
| 107 | * class only in certain conditions (e.g. only for logged in users) or  | 
            ||
| 108 | * modify what is returned to the caller.  | 
            ||
| 109 | *  | 
            ||
| 110 | * This option allows you to wrap global decorators  | 
            ||
| 111 |          * ("\Aimeos\Client\Html\Common\Decorator\*") around the html client. | 
            ||
| 112 | *  | 
            ||
| 113 | * client/html/account/profile/account/decorators/global = array( 'decorator1' )  | 
            ||
| 114 | *  | 
            ||
| 115 | * This would add the decorator named "decorator1" defined by  | 
            ||
| 116 | * "\Aimeos\Client\Html\Common\Decorator\Decorator1" only to the html client.  | 
            ||
| 117 | *  | 
            ||
| 118 | * @param array List of decorator names  | 
            ||
| 119 | * @since 2019.07  | 
            ||
| 120 | * @category Developer  | 
            ||
| 121 | * @see client/html/common/decorators/default  | 
            ||
| 122 | * @see client/html/account/profile/account/decorators/excludes  | 
            ||
| 123 | * @see client/html/account/profile/account/decorators/local  | 
            ||
| 124 | */  | 
            ||
| 125 | |||
| 126 | /** client/html/account/profile/account/decorators/local  | 
            ||
| 127 | * Adds a list of local decorators only to the account profile account html client  | 
            ||
| 128 | *  | 
            ||
| 129 | * Decorators extend the functionality of a class by adding new aspects  | 
            ||
| 130 | * (e.g. log what is currently done), executing the methods of the underlying  | 
            ||
| 131 | * class only in certain conditions (e.g. only for logged in users) or  | 
            ||
| 132 | * modify what is returned to the caller.  | 
            ||
| 133 | *  | 
            ||
| 134 | * This option allows you to wrap local decorators  | 
            ||
| 135 |          * ("\Aimeos\Client\Html\Account\Decorator\*") around the html client. | 
            ||
| 136 | *  | 
            ||
| 137 | * client/html/account/profile/account/decorators/local = array( 'decorator2' )  | 
            ||
| 138 | *  | 
            ||
| 139 | * This would add the decorator named "decorator2" defined by  | 
            ||
| 140 | * "\Aimeos\Client\Html\Account\Decorator\Decorator2" only to the html client.  | 
            ||
| 141 | *  | 
            ||
| 142 | * @param array List of decorator names  | 
            ||
| 143 | * @since 2019.07  | 
            ||
| 144 | * @category Developer  | 
            ||
| 145 | * @see client/html/common/decorators/default  | 
            ||
| 146 | * @see client/html/account/profile/account/decorators/excludes  | 
            ||
| 147 | * @see client/html/account/profile/account/decorators/global  | 
            ||
| 148 | */  | 
            ||
| 149 | |||
| 150 | return $this->createSubClient( 'account/profile/account/' . $type, $name );  | 
            ||
| 151 | }  | 
            ||
| 265 | 
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths