Skip to content

Commit

Permalink
Upd. Docs added and redundant separator removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergull committed Dec 24, 2024
1 parent b6dd9f4 commit 8b6c5f8
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion lib/CleantalkSP/Common/Enqueue/Enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,37 @@ class Enqueue
{
use Singleton;

/**
* @var string
*/
protected $plugin_version = '';
/**
* @var string
*/
protected $assets_path = '';
/**
* @var string
*/
protected $plugin_path = '';
/**
* @var string
*/
protected $css_subdir_path = '/css/';
/**
* @var string
*/
protected $js_subdir_path = '/js/';
/**
* @var string
*/
private $type = '';
/**
* @var array
*/
private $errors = array();
/**
* @var array
*/
private $handles_to_register = array();

/**
Expand Down Expand Up @@ -152,7 +176,7 @@ private function prepareData($asset_file_name, $deps, $args, $media)
if (!@file_exists($this->getPath($work_script_name, false))) {
$work_script_name = $asset_file_name;
if (!@file_exists($this->getPath($work_script_name, false))) {
$work_script_name = 'src/' . DIRECTORY_SEPARATOR . $asset_file_name;
$work_script_name = 'src' . DIRECTORY_SEPARATOR . $asset_file_name;
}
}
$fresh_version = $this->getFreshVersion($work_script_name);
Expand Down Expand Up @@ -283,6 +307,10 @@ public function isAllHandlesQueued()
return true;
}

/**
* Does enqueue process has errors occurred.
* @return bool
*/
public function hasErrors()
{
return !empty($this->errors);
Expand Down

0 comments on commit 8b6c5f8

Please sign in to comment.