Skip to content

Commit

Permalink
Add docblocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Dec 27, 2016
1 parent a707a0a commit 8d98441
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/Plugin/ScriptHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@

class ScriptHandler
{
/**
* @var array configurationData
*/
public static $configurationData;
/**
* Register
*
Expand Down Expand Up @@ -83,6 +79,11 @@ public static function dump(Event $event)
}
}

/**
* @param string $composerFile
*
* @return bool
*/
public static function isValidPackageType($composerFile)
{
if (!is_file($composerFile)) {
Expand All @@ -102,6 +103,12 @@ public static function isValidPackageType($composerFile)
return $packageType === 'drupal-console-library';
}

/**
* @param string $configFile
* @param Yaml $yaml
*
* @return array
*/
public static function validateConfigFile($configFile, Yaml $yaml)
{
if (!is_file($configFile)) {
Expand All @@ -125,6 +132,12 @@ public static function validateConfigFile($configFile, Yaml $yaml)
return $packageConfigurationData;
}

/**
* @param string $servicesFile
* @param Yaml $yaml
*
* @return array
*/
public static function validateServicesFile($servicesFile, Yaml $yaml)
{
if (!is_file($servicesFile)) {
Expand Down

0 comments on commit 8d98441

Please sign in to comment.