Skip to content

Commit

Permalink
WebAsset some renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Sep 29, 2018
1 parent 1d8201a commit afe0482
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions libraries/src/WebAsset/WebAssetRegistry.php
Expand Up @@ -28,7 +28,7 @@ class WebAssetRegistry
*
* @since __DEPLOY_VERSION__
*/
const DATAFILE_NEW = 1;
const REGISTRY_FILE_NEW = 1;

/**
* Mark already parsed registry file
Expand All @@ -37,7 +37,7 @@ class WebAssetRegistry
*
* @since __DEPLOY_VERSION__
*/
const DATAFILE_PARSED = 2;
const REGISTRY_FILE_PARSED = 2;

/**
* Mark a broken/not-existing registry file
Expand All @@ -46,7 +46,7 @@ class WebAssetRegistry
*
* @since __DEPLOY_VERSION__
*/
const DATAFILE_INVALID = -1;
const REGISTRY_FILE_INVALID = -1;

/**
* Files with Asset info. File path should be relative.
Expand Down Expand Up @@ -515,7 +515,7 @@ public function addRegistryFile($path)
return $this;
}

$this->dataFiles[$path] = is_file(JPATH_ROOT . '/' . $path) ? static::DATAFILE_NEW : static::DATAFILE_INVALID;
$this->dataFiles[$path] = is_file(JPATH_ROOT . '/' . $path) ? static::REGISTRY_FILE_NEW : static::REGISTRY_FILE_INVALID;

return $this;
}
Expand All @@ -530,7 +530,7 @@ public function addRegistryFile($path)
protected function parseRegistryFiles()
{
// Filter new asset data files and parse each
$constantIsNew = static::DATAFILE_NEW;
$constantIsNew = static::REGISTRY_FILE_NEW;
$files = array_filter(
$this->dataFiles,
function($state) use ($constantIsNew)
Expand All @@ -544,7 +544,7 @@ function($state) use ($constantIsNew)
$this->parseRegistryFile($path);

// Mark as parsed (not new)
$this->dataFiles[$path] = static::DATAFILE_PARSED;
$this->dataFiles[$path] = static::REGISTRY_FILE_PARSED;
}
}

Expand Down Expand Up @@ -577,7 +577,7 @@ protected function parseRegistryFile($path)

// Keep source info
$assetSource = [
'dataFile' => $path,
'registryFile' => $path,
];

// Prepare WebAssetItem instances
Expand Down

0 comments on commit afe0482

Please sign in to comment.