@@ -54,7 +54,7 @@ |
||
| 54 | 54 | private static function flatten(array $array) |
| 55 | 55 | { |
| 56 | 56 | $return = array(); |
| 57 | - array_walk_recursive($array, function($a) use (&$return) { $return[] = $a; }); |
|
| 57 | + array_walk_recursive($array, function ($a) use (&$return) { $return[] = $a; }); |
|
| 58 | 58 | return $return; |
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | \ No newline at end of file |
@@ -68,6 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * {@inheritdoc} |
| 71 | + * @param string $filePath |
|
| 71 | 72 | */ |
| 72 | 73 | public function refreshItem($filePath) |
| 73 | 74 | { |
@@ -86,6 +87,7 @@ discard block |
||
| 86 | 87 | |
| 87 | 88 | /** |
| 88 | 89 | * {@inheritdoc} |
| 90 | + * @param string $filePath |
|
| 89 | 91 | */ |
| 90 | 92 | public function createNewItem($filePath) |
| 91 | 93 | { |
@@ -32,6 +32,9 @@ |
||
| 32 | 32 | )); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param boolean $absolute |
|
| 37 | + */ |
|
| 35 | 38 | private function getUrl($absolute) |
| 36 | 39 | { |
| 37 | 40 | $url = '/'; |
@@ -95,6 +95,6 @@ |
||
| 95 | 95 | } |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | - return preg_replace('#(?<!:)/+#','/', join('/', $paths)); |
|
| 98 | + return preg_replace('#(?<!:)/+#', '/', join('/', $paths)); |
|
| 99 | 99 | } |
| 100 | 100 | } |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | { |
| 15 | 15 | private $container; |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @return \Symfony\Component\DependencyInjection\ContainerInterface |
|
| 19 | + */ |
|
| 17 | 20 | public function getContainer() |
| 18 | 21 | { |
| 19 | 22 | if ($this->container === null) |
@@ -110,6 +110,9 @@ discard block |
||
| 110 | 110 | // Twig parent templates |
| 111 | 111 | /// |
| 112 | 112 | |
| 113 | + /** |
|
| 114 | + * @param string $filePath |
|
| 115 | + */ |
|
| 113 | 116 | public function isImportDependency($filePath) |
| 114 | 117 | { |
| 115 | 118 | return isset($this->importDependencies[$filePath]); |
@@ -162,6 +165,9 @@ discard block |
||
| 162 | 165 | } |
| 163 | 166 | } |
| 164 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string $filePath |
|
| 170 | + */ |
|
| 165 | 171 | public function compileImportDependencies($filePath) |
| 166 | 172 | { |
| 167 | 173 | foreach ($this->importDependencies[$filePath] as &$dependent) |
@@ -26,6 +26,9 @@ |
||
| 26 | 26 | } |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param string $extension |
|
| 31 | + */ |
|
| 29 | 32 | public function getTransformer($extension) |
| 30 | 33 | { |
| 31 | 34 | if (isset($this->transformers[$extension])) |
@@ -9,6 +9,9 @@ discard block |
||
| 9 | 9 | |
| 10 | 10 | abstract class HtmlUtils |
| 11 | 11 | { |
| 12 | + /** |
|
| 13 | + * @param string $xpathQuery |
|
| 14 | + */ |
|
| 12 | 15 | public static function htmlXPath(\DOMDocument &$DOMDocument, $html, $xpathQuery) |
| 13 | 16 | { |
| 14 | 17 | $html = self::normalizeHTML($html); |
@@ -38,6 +41,9 @@ discard block |
||
| 38 | 41 | return $xpath->query($xpathQuery); |
| 39 | 42 | } |
| 40 | 43 | |
| 44 | + /** |
|
| 45 | + * @return string |
|
| 46 | + */ |
|
| 41 | 47 | private static function normalizeHTML($html) |
| 42 | 48 | { |
| 43 | 49 | if (strpos($html, "<body>" === false) || strpos($html, "</body>") === false) |
@@ -12,6 +12,9 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | interface CollectableItem |
| 14 | 14 | { |
| 15 | + /** |
|
| 16 | + * @return string |
|
| 17 | + */ |
|
| 15 | 18 | public function getRelativeFilePath(); |
| 16 | 19 | |
| 17 | 20 | /** |
@@ -59,6 +62,7 @@ discard block |
||
| 59 | 62 | * |
| 60 | 63 | * @param array $variables An array of YAML variables to use in evaluating the `$permalink` value |
| 61 | 64 | * @param array $complexVariables Complex variables that will be available to the FrontMatter scope of this document. |
| 65 | + * @return void |
|
| 62 | 66 | */ |
| 63 | 67 | public function evaluateFrontMatter(array $variables = [], array $complexVariables = []); |
| 64 | 68 | } |
@@ -76,6 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | 78 | * {@inheritdoc} |
| 79 | + * @param string $filePath |
|
| 79 | 80 | */ |
| 80 | 81 | public function createNewItem($filePath) |
| 81 | 82 | { |