for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Geolim4
* Date: 12/02/2018
* Time: 23:10
*/
namespace Phpfastcache\Drivers\Files;
use Phpfastcache\Config\ConfigurationOption;
class Config extends ConfigurationOption
{
* @var boolean
protected $secureFileManipulation = false;
* @var string
protected $htaccess = true;
protected $securityKey = '';
* @return string
public function getSecurityKey(): string
return $this->securityKey;
}
* @param string $securityKey
* @return Config
public function setSecurityKey(string $securityKey): Config
$this->securityKey = $securityKey;
return $this;
* @return bool
public function getHtaccess(): bool
return $this->htaccess;
return $this->htaccess
string
boolean
* @param bool $htaccess
public function setHtaccess(bool $htaccess): self
$this->htaccess = $htaccess;
$htaccess
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.
$answer = 42; $correct = false; $correct = (bool) $answer;
public function isSecureFileManipulation(): bool
return $this->secureFileManipulation;
* @param bool $secureFileManipulation
* @return self
public function setSecureFileManipulation(bool $secureFileManipulation): self
$this->secureFileManipulation = $secureFileManipulation;