@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | abstract class ArrayUtilities |
11 | 11 | { |
12 | - public static function is_multidimensional(array &$array) |
|
12 | + public static function is_multidimensional (array &$array) |
|
13 | 13 | { |
14 | 14 | foreach ($array as $element) |
15 | 15 | { |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | return false; |
23 | 23 | } |
24 | 24 | |
25 | - public static function array_merge_defaults(array &$array1, array &$array2, $keyField) |
|
25 | + public static function array_merge_defaults (array &$array1, array &$array2, $keyField) |
|
26 | 26 | { |
27 | 27 | $merged = $array1; |
28 | 28 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | class RstEngine extends Parser implements ParsingEngine |
14 | 14 | { |
15 | - public function __construct($environment = null, $kernel = null) |
|
15 | + public function __construct ($environment = null, $kernel = null) |
|
16 | 16 | { |
17 | 17 | parent::__construct($environment, $kernel); |
18 | 18 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | class SyntaxBlock extends CodeBlock |
10 | 10 | { |
11 | - public function process(Parser $parser, $node, $variable, $data, array $options) |
|
11 | + public function process (Parser $parser, $node, $variable, $data, array $options) |
|
12 | 12 | { |
13 | 13 | parent::process($parser, $node, $variable, $data, $options); |
14 | 14 |
@@ -9,5 +9,5 @@ |
||
9 | 9 | |
10 | 10 | interface ParsingEngine |
11 | 11 | { |
12 | - public function parse($context); |
|
12 | + public function parse ($context); |
|
13 | 13 | } |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | { |
9 | 9 | protected $engine; |
10 | 10 | |
11 | - public function __construct($instanceName = null) |
|
11 | + public function __construct ($instanceName = null) |
|
12 | 12 | { |
13 | 13 | $this->engine = MarkdownEngine::instance($instanceName); |
14 | 14 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | /** |
17 | 17 | * {@inheritdoc} |
18 | 18 | */ |
19 | - public function transform($content) |
|
19 | + public function transform ($content) |
|
20 | 20 | { |
21 | 21 | return $this->engine->parse($content); |
22 | 22 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * {@inheritdoc} |
26 | 26 | */ |
27 | - public function getName() |
|
27 | + public function getName () |
|
28 | 28 | { |
29 | 29 | return 'stakx/parsedown'; |
30 | 30 | } |
@@ -14,14 +14,14 @@ discard block |
||
14 | 14 | { |
15 | 15 | protected $highlighter; |
16 | 16 | |
17 | - public function __construct() |
|
17 | + public function __construct () |
|
18 | 18 | { |
19 | 19 | parent::__construct(); |
20 | 20 | |
21 | 21 | $this->highlighter = new Highlighter(); |
22 | 22 | } |
23 | 23 | |
24 | - protected function blockHeader($line) |
|
24 | + protected function blockHeader ($line) |
|
25 | 25 | { |
26 | 26 | $Block = parent::blockHeader($line); |
27 | 27 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | return $Block; |
37 | 37 | } |
38 | 38 | |
39 | - public function blockFencedCodeComplete($block) |
|
39 | + public function blockFencedCodeComplete ($block) |
|
40 | 40 | { |
41 | 41 | // The class has a `language-` prefix, remove this to get the language |
42 | 42 | if (isset($block['element']['text']['attributes'])) |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * @param Configuration $configuration |
33 | 33 | * @param mixed $options |
34 | 34 | */ |
35 | - public function configureTwig($configuration, $options = array()) |
|
35 | + public function configureTwig ($configuration, $options = array()) |
|
36 | 36 | { |
37 | 37 | $loader = new Twig_Loader_Filesystem(array( |
38 | 38 | getcwd(), |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | protected $includes; |
34 | 34 | |
35 | - public function configureFinder($includes = array(), $excludes = array()) |
|
35 | + public function configureFinder ($includes = array(), $excludes = array()) |
|
36 | 36 | { |
37 | 37 | $this->excludes = $excludes; |
38 | 38 | $this->includes = $includes; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @param Folder $directory |
45 | 45 | */ |
46 | - public function setFolder($directory) |
|
46 | + public function setFolder ($directory) |
|
47 | 47 | { |
48 | 48 | $this->outputDirectory = $directory; |
49 | 49 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * Copy all of the assets. |
53 | 53 | */ |
54 | - public function copyFiles() |
|
54 | + public function copyFiles () |
|
55 | 55 | { |
56 | 56 | $this->scanTrackableItems( |
57 | 57 | getcwd(), |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | /** |
70 | 70 | * {@inheritdoc} |
71 | 71 | */ |
72 | - public function isHandled($filePath) |
|
72 | + public function isHandled ($filePath) |
|
73 | 73 | { |
74 | 74 | return $this->fileExplorer->matchesPattern($filePath); |
75 | 75 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * {@inheritdoc} |
79 | 79 | */ |
80 | - public function createNewItem($filePath) |
|
80 | + public function createNewItem ($filePath) |
|
81 | 81 | { |
82 | 82 | return $this->handleTrackableItem($filePath, array( |
83 | 83 | 'prefix' => '', |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | /** |
88 | 88 | * {@inheritdoc} |
89 | 89 | */ |
90 | - protected function handleTrackableItem($file, $options = array()) |
|
90 | + protected function handleTrackableItem ($file, $options = array()) |
|
91 | 91 | { |
92 | 92 | if (is_string($file)) |
93 | 93 | { |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | /** @var PageView */ |
16 | 16 | private $siteMenu; |
17 | 17 | |
18 | - public function __construct() |
|
18 | + public function __construct () |
|
19 | 19 | { |
20 | 20 | parent::__construct(); |
21 | 21 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * |
28 | 28 | * @return JailObject[] |
29 | 29 | */ |
30 | - public function getSiteMenu() |
|
30 | + public function getSiteMenu () |
|
31 | 31 | { |
32 | 32 | $jailedMenu = array(); |
33 | 33 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * @param PageView[] $pageViews |
50 | 50 | */ |
51 | - public function buildFromPageViews($pageViews) |
|
51 | + public function buildFromPageViews ($pageViews) |
|
52 | 52 | { |
53 | 53 | foreach ($pageViews as &$pageView) |
54 | 54 | { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * @param PageView $pageView |
61 | 61 | */ |
62 | - public function addToSiteMenu(&$pageView) |
|
62 | + public function addToSiteMenu (&$pageView) |
|
63 | 63 | { |
64 | 64 | $frontMatter = $pageView->getFrontMatter(); |
65 | 65 |