From 9c687035ce701850bc8a3c8179da1a945389528f Mon Sep 17 00:00:00 2001 From: Cliff Odijk Date: Wed, 5 Feb 2014 20:34:59 +0100 Subject: [PATCH] JcidLocoBundle - Fixes ' naar " - Comments toegevoegd waar mogelijk --- Command/DownloadCommand.php | 3 +++ DependencyInjection/Configuration.php | 4 +--- Loco/Downloader.php | 8 +++++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Command/DownloadCommand.php b/Command/DownloadCommand.php index 4d76c9e..5eaef60 100644 --- a/Command/DownloadCommand.php +++ b/Command/DownloadCommand.php @@ -8,6 +8,9 @@ class DownloadCommand extends ContainerAwareCommand { + /** + * + */ protected function configure() { $this diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 16bf0da..a468c6a 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -13,13 +13,11 @@ class Configuration implements ConfigurationInterface { /** - * {@inheritDoc} + * @return TreeBuilder */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root("jcid_loco"); - $treeBuilder->root("jcid_loco") // Verwerken opgegeven config diff --git a/Loco/Downloader.php b/Loco/Downloader.php index 44359d1..c0b0a63 100644 --- a/Loco/Downloader.php +++ b/Loco/Downloader.php @@ -9,12 +9,18 @@ class Downloader { private $config; - public function __construct($config) + /** + * @param array $config + */ + public function __construct(array $config) { $this->config = $config; $this->client = new Client("https://localise.biz/api/"); } + /** + * Downloaden loco files + */ public function download() { // Batch downloader