for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lagdo\UiBuilder\Component\Base;
use Lagdo\UiBuilder\Component\HtmlComponent;
class ButtonComponent extends HtmlComponent
{
/**
* @var string
*/
public static string $tag = 'button';
* @param string $icon
*
* @return static
public function addIcon(string $icon): static
$icon
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function addIcon(/** @scrutinizer ignore-unused */ string $icon): static
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return $this;
}
public function primary(): static
public function secondary(): static
public function large(): static
public function small(): static
public function success(): static
public function info(): static
public function warning(): static
public function danger(): static
public function outline(): static
public function fullWidth(): static
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.