Completed
Push — master ( 08b4a2...1cc54f )
by Greg
01:57
created
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/SiteAliasName.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      * are defined by the alias contents.
81 81
      *
82 82
      * @param type $path
83
-     * @return type
83
+     * @return string
84 84
      */
85 85
     public static function locationFromPath($path)
86 86
     {
@@ -315,8 +315,7 @@  discard block
 block discarded – undo
315 315
     /**
316 316
      * Process an alias name provided as '@sitename'.
317 317
      *
318
-     * @param string $sitename
319
-     * @return true
318
+     * @return boolean
320 319
      */
321 320
     protected function processSingleItem($item)
322 321
     {
Please login to merge, or discard this patch.
src/SiteAliasFileDiscovery.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Add a location that alias files may be found.
38 38
      *
39
-     * @param string $path
39
+     * @param string $paths
40 40
      * @return $this
41 41
      */
42 42
     public function addSearchLocation($paths)
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * of the specified search locations.
106 106
      *
107 107
      * @param string $siteName
108
-     * @return string|bool
108
+     * @return false|string
109 109
      */
110 110
     public function findSingleSiteAliasFile($siteName)
111 111
     {
Please login to merge, or discard this patch.
src/Cli/SiteAliasCommands.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -54,6 +54,9 @@
 block discarded – undo
54 54
         return $this->renderAliases($all);
55 55
     }
56 56
 
57
+    /**
58
+     * @return string
59
+     */
57 60
     protected function getLocationsAndAliasName($varArgs)
58 61
     {
59 62
         $aliasName = '';
Please login to merge, or discard this patch.
src/SiteAlias.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 namespace Consolidation\SiteAlias;
3 3
 
4 4
 use Consolidation\Config\Config;
5
-use Consolidation\Config\ConfigInterface;
6
-use Consolidation\Config\Util\ArrayUtil;
7
-use Consolidation\SiteAlias\Util\FsUtils;
8 5
 
9 6
 /**
10 7
  * An alias record is a configuration record containing well-known items.
Please login to merge, or discard this patch.
src/SiteAliasTrait.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -122,6 +122,7 @@
 block discarded – undo
122 122
 
123 123
     /**
124 124
      * @inheritdoc
125
+     * @return string
125 126
      */
126 127
     public function localRoot()
127 128
     {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,9 +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
-use Consolidation\Config\Util\ArrayUtil;
7 4
 use Consolidation\SiteAlias\Util\FsUtils;
8 5
 
9 6
 /**
Please login to merge, or discard this patch.
src/SiteAliasWithConfig.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      * combine the provided site alias with configuration.
35 35
      *
36
-     * @return SiteAlias read-only site alias combined with the runtime
36
+     * @return SiteAliasWithConfig read-only site alias combined with the runtime
37 37
      *   config (overrides the site alias values) and the default config.
38 38
      */
39 39
     public static function create(SiteAliasInterface $siteAlias, ConfigInterface $defaultConfig, ConfigInterface $runtimeConfig = null)
@@ -47,6 +47,7 @@  discard block
 block discarded – undo
47 47
      * Determine what object to use for the runtime config. If a specific
48 48
      * runtime config is given, use that. Otherwise, pull it from the default
49 49
      * configuration if available.
50
+     * @return ConfigInterface
50 51
      */
51 52
     protected static function determineCorrectRuntimeConfig(ConfigInterface $defaultConfig, ConfigInterface $runtimeConfig)
52 53
     {
Please login to merge, or discard this patch.
src/SiteAliasFileLoader.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,6 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     /**
56 56
      * Allow 'self.site.yml' to be applied to any alias record found.
57
+     * @param string $root
57 58
      */
58 59
     public function setRoot($root)
59 60
     {
@@ -117,6 +118,7 @@  discard block
 block discarded – undo
117 118
 
118 119
     /**
119 120
      * Given only a site name, load the default environment from it.
121
+     * @param string|null $sitename
120 122
      */
121 123
     protected function loadDefaultEnvFromSitename($sitename)
122 124
     {
@@ -219,8 +221,8 @@  discard block
 block discarded – undo
219 221
     /**
220 222
      * @param array $siteData list of sites with its respective data
221 223
      *
222
-     * @param SiteAliasName $aliasName The name of the record being created
223 224
      * @param $siteData An associative array of envrionment => site data
225
+     * @param string $sitename
224 226
      * @return SiteAlias[]
225 227
      */
226 228
     protected function createSiteAliassFromSiteData($sitename, $siteData, $location = '')
@@ -386,7 +388,7 @@  discard block
 block discarded – undo
386 388
     /**
387 389
      * Given an array of site aliases, find the first one that is
388 390
      * local (has no 'host' item) and also contains a 'self.site.yml' file.
389
-     * @param array $data
391
+     * @param string $path
390 392
      * @return array
391 393
      */
392 394
     protected function findSelfSiteAliases($site_aliases, $path)
@@ -450,6 +452,9 @@  discard block
 block discarded – undo
450 452
         return $this->loader[$extension];
451 453
     }
452 454
 
455
+    /**
456
+     * @param string $extension
457
+     */
453 458
     public function addLoader($extension, DataFileLoaderInterface $loader)
454 459
     {
455 460
         $this->loader[$extension] = $loader;
Please login to merge, or discard this patch.