Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit ec42eff6 authored by Nicolas's avatar Nicolas
Browse files

Change casse

parent 8bd180c9
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ class ContentManager extends Template implements BlockInterface
*/
public function getTemplateType()
{
if ($this->getData('template_type') === '' || $this->getData('template_type') === NULL) {
if ($this->getData('template_type') === '' || $this->getData('template_type') === null) {
return 'text';
}
......@@ -303,7 +303,7 @@ class ContentManager extends Template implements BlockInterface
*/
public function getWidth()
{
if ($this->getData('width') === NULL) {
if ($this->getData('width') === null) {
return $this->defaultSettings['width'];
}
......@@ -315,7 +315,7 @@ class ContentManager extends Template implements BlockInterface
*/
public function getHeight()
{
if ($this->getData('height') === NULL) {
if ($this->getData('height') === null) {
return $this->defaultSettings['height'];
}
......@@ -469,15 +469,15 @@ class ContentManager extends Template implements BlockInterface
$dirPath = $this->filesystem->getDirectoryRead(DirectoryList::MEDIA);
$absolutePath = $dirPath->getAbsolutePath('') . $image;
if ($width !== NULL) {
if ($width !== null) {
$settings['width'] = (int)$width;
}
if ($height !== NULL) {
if ($height !== null) {
$settings['height'] = (int)$height;
}
if ($this->getData('quality') !== NULL) {
if ($this->getData('quality') !== null) {
$settings['compression'] = (int)$this->getData('quality');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment