@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | - * @param $path |
|
51 | + * @param string $path |
|
52 | 52 | */ |
53 | 53 | public function loadFile($path) |
54 | 54 | { |
@@ -61,6 +61,9 @@ discard block |
||
61 | 61 | $this->setBuffer($buffer); |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param string $buffer |
|
66 | + */ |
|
64 | 67 | public function setBuffer($buffer) |
65 | 68 | { |
66 | 69 | $this->buffer = $buffer; |
@@ -53,17 +53,17 @@ |
||
53 | 53 | # testAddTimeAutogenerated |
54 | 54 | ['/^.*[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{6}\.sql$/', []], |
55 | 55 | # testAddTimePrefixAutogenerated |
56 | - ['/^[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{6}.*\.sql$/', ['--add-time' => 'prefix',]], |
|
56 | + ['/^[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{6}.*\.sql$/', ['--add-time' => 'prefix', ]], |
|
57 | 57 | # testAddTimeFilenameSpecified |
58 | - [ '/^.*[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{6}\.sql.gz$/', ['--compression' => 'gzip',]], |
|
58 | + ['/^.*[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{6}\.sql.gz$/', ['--compression' => 'gzip', ]], |
|
59 | 59 | # testAddTimeFilenameSpecified |
60 | - ['/^foo_[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{6}\.sql$/', ['filename' => 'foo.sql',]], |
|
60 | + ['/^foo_[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{6}\.sql$/', ['filename' => 'foo.sql', ]], |
|
61 | 61 | # testAddTimePrefixFilenameSpecified |
62 | - [ '/^[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{6}_foo\.sql$/', ['filename' => 'foo.sql', '--add-time' => 'prefix',]], |
|
62 | + ['/^[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{6}_foo\.sql$/', ['filename' => 'foo.sql', '--add-time' => 'prefix', ]], |
|
63 | 63 | # testAddTimeOffFilenameSpecified |
64 | - ['/^foo.sql$/', ['filename' => 'foo.sql', '--add-time' => false,]], |
|
64 | + ['/^foo.sql$/', ['filename' => 'foo.sql', '--add-time' => false, ]], |
|
65 | 65 | # testAddTimeFilenameSpecifiedRelative |
66 | - ['/^..\/foo_[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{6}\.sql$/', ['filename' => '../foo.sql',]], |
|
66 | + ['/^..\/foo_[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{6}\.sql$/', ['filename' => '../foo.sql', ]], |
|
67 | 67 | ]; |
68 | 68 | } |
69 | 69 |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | public function __construct(array $initConfig = array(), $isPharMode = false, OutputInterface $output = null) |
66 | 66 | { |
67 | 67 | $this->initConfig = $initConfig; |
68 | - $this->isPharMode = (bool)$isPharMode; |
|
68 | + $this->isPharMode = (bool) $isPharMode; |
|
69 | 69 | $this->output = $output ?: new NullOutput(); |
70 | 70 | } |
71 | 71 | |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | */ |
265 | 265 | private function getArray($key, $default = array()) |
266 | 266 | { |
267 | - $result = $this->traverse((array)$key); |
|
267 | + $result = $this->traverse((array) $key); |
|
268 | 268 | if (null === $result) { |
269 | 269 | return $default; |
270 | 270 | } |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * this file is part of magerun |
|
4 | - * |
|
5 | - * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | - */ |
|
3 | + * this file is part of magerun |
|
4 | + * |
|
5 | + * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | + */ |
|
7 | 7 | namespace N98; |
8 | 8 | |
9 | 9 | use Composer\Autoload\ClassLoader; |