for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* AssetBundle.php
* @author Revin Roman
* @link https://rmrevin.ru
*/
namespace rmrevin\yii\fontawesome;
* Class AssetBundle
* @package rmrevin\yii\fontawesome
class AssetBundle extends \yii\web\AssetBundle
{
* @inherit
public $sourcePath = '@vendor/rmrevin/yii2-fontawesome/assets';
public $css = [
'css/font-awesome.min.css',
];
* Initializes the bundle.
* Set publish options to copy only necessary files (in this case css and font folders)
* @codeCoverageIgnore
public function init()
parent::init();
$this->publishOptions['beforeCopy'] = function ($from, $to) {
$to
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return preg_match('%(/|\\\\)(fonts|css)%', $from);
};
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.