Remove some unused variables

This commit is contained in:
Matias Griese
2019-11-18 10:55:40 +02:00
parent 1aa69e61ac
commit d8af66cfd7
9 changed files with 21 additions and 23 deletions

View File

@@ -14,6 +14,23 @@ use Grav\Common\Utils;
trait AssetUtilsTrait
{
/**
* @var \Closure|null
*
* Closure used by the pipeline to fetch assets.
*
* Useful when file_get_contents() function is not available in your PHP
* installation or when you want to apply any kind of preprocessing to
* your assets before they get pipelined.
*
* The closure will receive as the only parameter a string with the path/URL of the asset and
* it should return the content of the asset file as a string.
*/
protected $fetch_command;
/** @var string */
protected $base_url;
/**
* Determine whether a link is local or remote.
* Understands both "http://" and "https://" as well as protocol agnostic links "//"

View File

@@ -83,7 +83,6 @@ class Page implements PageInterface
protected $redirect;
/** @var string */
protected $external_url;
protected $items;
/** @var object|null */
protected $header;
/** @var string */
@@ -98,7 +97,7 @@ class Page implements PageInterface
protected $summry;
/** @var string */
protected $raw_content;
protected $pagination;
/** @var array */
protected $metadata;
/** @var string */
protected $title;
@@ -118,7 +117,7 @@ class Page implements PageInterface
protected $order_dir;
/** @var array */
protected $order_manual;
protected $modular;
/** @var bool */
protected $modular_twig;
/** @var array */
protected $process;

View File

@@ -19,8 +19,6 @@ class TwigClockworkDataSource extends DataSource
/** @var Timeline Views data structure */
protected $views;
protected $root;
/**
* TwigClockworkDataSource constructor.
*/

View File

@@ -57,8 +57,6 @@ class SandboxCommand extends ConsoleCommand
];
/** @var string */
protected $default_file = "---\ntitle: HomePage\n---\n# HomePage\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque porttitor eu felis sed ornare. Sed a mauris venenatis, pulvinar velit vel, dictum enim. Phasellus ac rutrum velit. Nunc lorem purus, hendrerit sit amet augue aliquet, iaculis ultricies nisl. Suspendisse tincidunt euismod risus, quis feugiat arcu tincidunt eget. Nulla eros mi, commodo vel ipsum vel, aliquet congue odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Pellentesque velit orci, laoreet at adipiscing eu, interdum quis nibh. Nunc a accumsan purus.";
protected $source;
/** @var string */
protected $destination;

View File

@@ -20,16 +20,12 @@ class SecurityCommand extends ConsoleCommand
/** @var ProgressBar $progress */
protected $progress;
protected $source;
protected function configure()
{
$this
->setName('security')
->setDescription('Capable of running various Security checks')
->setHelp('The <info>security</info> runs various security checks on your Grav site');
$this->source = getcwd();
}
protected function serve()

View File

@@ -28,9 +28,6 @@ class IndexCommand extends ConsoleCommand
/** @var array */
protected $options;
/** @var array */
protected $sortKeys = ['name', 'slug', 'author', 'date'];
protected function configure()
{
$this

View File

@@ -25,10 +25,6 @@ class SelfupgradeCommand extends ConsoleCommand
/** @var array */
protected $data;
protected $extensions;
protected $updatable;
/** @var string */
protected $file;

View File

@@ -23,10 +23,6 @@ class UpdateCommand extends ConsoleCommand
/** @var array */
protected $data;
protected $extensions;
protected $updatable;
/** @var string */
protected $destination;

View File

@@ -17,7 +17,8 @@ use Grav\Framework\Session\Exceptions\SessionException;
*/
class Session implements SessionInterface
{
protected $options;
/** @var array */
protected $options = [];
/** @var bool */
protected $started = false;