@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | protected $absolutePath; |
22 | 22 | protected $targetDirectories; |
23 | 23 | |
24 | - public function __construct($folderPath) |
|
24 | + public function __construct ($folderPath) |
|
25 | 25 | { |
26 | 26 | $this->fs = new Filesystem(); |
27 | 27 | $this->targetDirectories = array(); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
53 | - public function __toString() |
|
53 | + public function __toString () |
|
54 | 54 | { |
55 | 55 | return rtrim($this->absolutePath, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
56 | 56 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @since 0.1.0 |
64 | 64 | */ |
65 | - public function setTargetDirectory($folderName) |
|
65 | + public function setTargetDirectory ($folderName) |
|
66 | 66 | { |
67 | 67 | if (is_null($folderName) || empty($folderName)) |
68 | 68 | { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @since 0.1.0 |
84 | 84 | */ |
85 | - public function copyFile($absolutePath, $targetPath) |
|
85 | + public function copyFile ($absolutePath, $targetPath) |
|
86 | 86 | { |
87 | 87 | $targetPath = ltrim($targetPath, DIRECTORY_SEPARATOR); |
88 | 88 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * |
104 | 104 | * @return SplFileInfo |
105 | 105 | */ |
106 | - public function writeFile($relativePath, $content) |
|
106 | + public function writeFile ($relativePath, $content) |
|
107 | 107 | { |
108 | 108 | $outputFolder = $this->fs->getFolderPath($relativePath); |
109 | 109 | $targetFileName = $this->fs->getFileName($outputFolder); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * |
133 | 133 | * @return string |
134 | 134 | */ |
135 | - private function buildPath($pathFragments) |
|
135 | + private function buildPath ($pathFragments) |
|
136 | 136 | { |
137 | 137 | $paths = func_get_args(); |
138 | 138 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | * |
145 | 145 | * @return string |
146 | 146 | */ |
147 | - private function getCwd() |
|
147 | + private function getCwd () |
|
148 | 148 | { |
149 | 149 | $location = array_merge(array($this->absolutePath), $this->targetDirectories); |
150 | 150 |
@@ -7,7 +7,7 @@ |
||
7 | 7 | |
8 | 8 | class Application extends \Symfony\Component\Console\Application |
9 | 9 | { |
10 | - public function doRun(InputInterface $input, OutputInterface $output) |
|
10 | + public function doRun (InputInterface $input, OutputInterface $output) |
|
11 | 11 | { |
12 | 12 | if (extension_loaded('xdebug') && !getenv('COMPOSER_DISABLE_XDEBUG_WARN')) |
13 | 13 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @param OutputInterface $output |
71 | 71 | */ |
72 | - public function __construct(OutputInterface $output) |
|
72 | + public function __construct (OutputInterface $output) |
|
73 | 73 | { |
74 | 74 | $this->output = $output; |
75 | 75 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @return OutputInterface |
81 | 81 | */ |
82 | - public function getOutputInterface() |
|
82 | + public function getOutputInterface () |
|
83 | 83 | { |
84 | 84 | return $this->output; |
85 | 85 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * @param string $message |
92 | 92 | * @param array $context |
93 | 93 | */ |
94 | - public function log($level, $message, array $context = array()) |
|
94 | + public function log ($level, $message, array $context = array()) |
|
95 | 95 | { |
96 | 96 | if (!isset($this->verbosityLevelMap[$level])) |
97 | 97 | { |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered |
128 | 128 | * the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |
129 | 129 | */ |
130 | - public function writeln($messages, $options = 0) |
|
130 | + public function writeln ($messages, $options = 0) |
|
131 | 131 | { |
132 | 132 | $this->output->writeln($messages, $options); |
133 | 133 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * |
143 | 143 | * @return string |
144 | 144 | */ |
145 | - private function interpolate($message, array $context) |
|
145 | + private function interpolate ($message, array $context) |
|
146 | 146 | { |
147 | 147 | // build a replacement array with braces around the context keys |
148 | 148 | $replace = array(); |
@@ -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'])) |