@@ -66,23 +66,23 @@ |
||
66 | 66 | $user = trim(`id -u -n`); |
67 | 67 | $group = trim(`id -g -n`); |
68 | 68 | $questioner = $this->getHelper('question'); |
69 | - $replacements = []; |
|
69 | + $replacements = [ ]; |
|
70 | 70 | |
71 | 71 | $format = 'RR path [<fg=yellow>%s</>]: '; |
72 | 72 | $question = new Question(sprintf($format, $rr), $rr); |
73 | - $replacements['{rr}'] = $questioner->ask($input, $output, $question); |
|
73 | + $replacements[ '{rr}' ] = $questioner->ask($input, $output, $question); |
|
74 | 74 | |
75 | 75 | $format = 'App root [<fg=yellow>%s</>]: '; |
76 | 76 | $question = new Question(sprintf($format, $cwd), $cwd); |
77 | - $replacements['{cwd}'] = $questioner->ask($input, $output, $question); |
|
77 | + $replacements[ '{cwd}' ] = $questioner->ask($input, $output, $question); |
|
78 | 78 | |
79 | 79 | $format = 'User name [<fg=yellow>%s</>]: '; |
80 | 80 | $question = new Question(sprintf($format, $user), $user); |
81 | - $replacements['{user}'] = $questioner->ask($input, $output, $question); |
|
81 | + $replacements[ '{user}' ] = $questioner->ask($input, $output, $question); |
|
82 | 82 | |
83 | 83 | $format = 'Group name [<fg=yellow>%s</>]: '; |
84 | 84 | $question = new Question(sprintf($format, $group), $group); |
85 | - $replacements['{group}'] = $questioner->ask($input, $output, $question); |
|
85 | + $replacements[ '{group}' ] = $questioner->ask($input, $output, $question); |
|
86 | 86 | |
87 | 87 | $output->writeln(strtr(static::TEMPLATE, $replacements)); |
88 | 88 |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $entryManager = $container->get('entryManager'); |
34 | 34 | $this->assertSame(0, $entryManager->countAll()); |
35 | 35 | |
36 | - $entryManager->create(['name' => 'foo', 'slug' => 'foo']); |
|
36 | + $entryManager->create([ 'name' => 'foo', 'slug' => 'foo' ]); |
|
37 | 37 | $this->assertSame(1, $entryManager->countAll()); |
38 | 38 | } |
39 | 39 | |
@@ -51,14 +51,14 @@ discard block |
||
51 | 51 | $this->createDatabaseSchema($entityManager); |
52 | 52 | |
53 | 53 | $entryManager = $container->get('entryManager'); |
54 | - $this->assertSame([], $entryManager->getList(null, null)); |
|
54 | + $this->assertSame([ ], $entryManager->getList(null, null)); |
|
55 | 55 | |
56 | - $foo = $entryManager->create(['name' => 'foo', 'slug' => 'foo']); |
|
57 | - $bar = $entryManager->create(['name' => 'bar', 'slug' => 'bar']); |
|
56 | + $foo = $entryManager->create([ 'name' => 'foo', 'slug' => 'foo' ]); |
|
57 | + $bar = $entryManager->create([ 'name' => 'bar', 'slug' => 'bar' ]); |
|
58 | 58 | |
59 | 59 | $entries = $entryManager->getList(null, null); |
60 | 60 | $this->assertCount(2, $entries); |
61 | - $this->assertSame($foo->getId()->toString(), (string) $entries[1]->getId()); |
|
62 | - $this->assertSame($bar->getId()->toString(), (string) $entries[0]->getId()); |
|
61 | + $this->assertSame($foo->getId()->toString(), (string) $entries[ 1 ]->getId()); |
|
62 | + $this->assertSame($bar->getId()->toString(), (string) $entries[ 0 ]->getId()); |
|
63 | 63 | } |
64 | 64 | } |