Skip to content

Commit

Permalink
Implement the exclude parameter. Closes #15
Browse files Browse the repository at this point in the history
  • Loading branch information
umutphp committed Feb 6, 2019
1 parent f92ac28 commit d6c3a51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ public function check(Settings $settings, Output $output = null)
continue;
}

if (is_array($settings->excluded)) {
if (in_array($value, $settings->excluded)) {
continue;
}
}

if (is_dir($settings->path . DIRECTORY_SEPARATOR . $value)) {
if (file_exists($settings->path . DIRECTORY_SEPARATOR . $value . DIRECTORY_SEPARATOR . $value . ".php")) {
$plugins[$value] = $value . DIRECTORY_SEPARATOR . $value . ".php";
Expand Down

0 comments on commit d6c3a51

Please sign in to comment.