Completed
Pull Request — master (#1)
by Greg
65:22 queued 63:19
created
src/AliasRecord.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Consolidation\Config\Config;
5 5
 use Consolidation\Config\ConfigInterface;
6
-use Consolidation\Config\Util\ArrayUtil;
7 6
 use Drush\Utils\FsUtils;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
src/HostPath.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Consolidation\SiteAlias;
3 3
 
4
-use Consolidation\Config\Config;
5
-use Consolidation\Config\ConfigInterface;
6 4
 use Webmozart\PathUtil\Path;
7 5
 
8 6
 /**
Please login to merge, or discard this patch.
src/SiteAliasFileLoader.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,6 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
     /**
102 102
      * Given only a site name, load the default environment from it.
103
+     * @param string|null $sitename
103 104
      */
104 105
     protected function loadDefaultEnvFromSitename($sitename)
105 106
     {
@@ -173,8 +174,8 @@  discard block
 block discarded – undo
173 174
     /**
174 175
      * @param array $siteData list of sites with its respective data
175 176
      *
176
-     * @param SiteAliasName $aliasName The name of the record being created
177 177
      * @param $siteData An associative array of envrionment => site data
178
+     * @param string $sitename
178 179
      * @return AliasRecord[]
179 180
      */
180 181
     protected function createAliasRecordsFromSiteData($sitename, $siteData)
@@ -318,7 +319,6 @@  discard block
 block discarded – undo
318 319
     /**
319 320
      * Given an array of site aliases, find the first one that is
320 321
      * local (has no 'host' item) and also contains a 'self.site.yml' file.
321
-     * @param array $data
322 322
      * @return array
323 323
      */
324 324
     protected function findSelfSiteAliases($site_aliases)
@@ -365,6 +365,9 @@  discard block
 block discarded – undo
365 365
         return $this->loader[$extension];
366 366
     }
367 367
 
368
+    /**
369
+     * @param string $extension
370
+     */
368 371
     public function addLoader($extension, DataFileLoaderInterface $loader)
369 372
     {
370 373
         $this->loader[$extension] = $loader;
Please login to merge, or discard this patch.
src/SiteAliasName.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,8 +276,7 @@
 block discarded – undo
276 276
     /**
277 277
      * Process an alias name provided as '@sitename'.
278 278
      *
279
-     * @param string $sitename
280
-     * @return true
279
+     * @return boolean
281 280
      */
282 281
     protected function processSingleItem($item)
283 282
     {
Please login to merge, or discard this patch.