for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sco\Admin\Form\Elements;
class Tinymce extends NamedElement
{
protected $type = 'tinymce';
protected $size = 'basic';
protected $options = [];
protected $baseUrl;
protected $plugins;
public function basicToolbar()
$this->size = 'basic';
return $this;
}
public function simpleToolbar()
$this->size = 'simple';
/**
* @param array $toolbar
*
* @return Tinymce
*/
public function setToolbar(array $toolbar)
$this->options['toolbar'] = $toolbar;
* @return mixed
public function getBaseUrl()
if ($this->baseUrl) {
return $this->baseUrl;
return url('js/tinymce');
* @param mixed $baseUrl
public function setBaseUrl($baseUrl)
$this->baseUrl = $baseUrl;
public function getPlugins()
return $this->plugins;
* @param mixed $plugins
public function setPlugins($plugins)
$this->plugins = $plugins;
public function getOptions()
return $this->options;
* @param mixed $options
public function setOptions($options)
$this->options = $options;
$options
array
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
public function toArray()
$data = [
'size' => $this->size,
'baseUrl' => $this->getBaseUrl(),
'options' => $this->getOptions(),
];
if (($plugins = $this->getPlugins())) {
$data['plugins'] = $plugins;
return parent::toArray() + $data;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..