@@ -46,7 +46,7 @@ abstract class FileLoader extends BaseFileLoader
4646 /**
4747 * Constructor.
4848 *
49- * @param FileLocatorInterface $locator A FileLocator instance
49+ * @param FileLocatorInterface|null $locator A FileLocator instance
5050 */
5151 public function __construct (FileLocatorInterface $ locator = null )
5252 {
@@ -61,11 +61,12 @@ public function __construct(FileLocatorInterface $locator = null)
6161 * Replaces parameter placeholders (%name%) by their values for all parameters.
6262 *
6363 * @param array $configuration The configuration array to resolve
64+ * @return array
6465 */
6566 public function resolveParams (array $ configuration )
6667 {
6768 if ($ this ->resolved ) {
68- return ;
69+ return [] ;
6970 }
7071
7172 $ this ->config = $ configuration ;
@@ -84,7 +85,7 @@ public function resolveParams(array $configuration)
8485 /**
8586 * Get the pathof a given resource
8687 *
87- * @param mixed $file The resource
88+ * @param string $file The resource
8889 *
8990 * @return array|string
9091 * @throws \InvalidArgumentException If the file is not found
@@ -106,6 +107,7 @@ protected function getPath($file)
106107 *
107108 * @param string|string[] $ext An extension or an array of extensions
108109 * @param string|false $resource A resource
110+ * @return bool
109111 */
110112 protected function checkSupports ($ ext , $ resource )
111113 {
@@ -140,9 +142,12 @@ protected function checkSupports($ext, $resource)
140142 return $ supported ;
141143 }
142144
145+ /**
146+ * @return bool
147+ */
143148 private function isResolved ()
144149 {
145- return ( $ this ->resolved ) ;
150+ return $ this ->resolved ;
146151 }
147152
148153 /**
0 commit comments