Completed
Branch master (d30f73)
by Loïc
02:42
created
src/AppBundle/Fixture/AbstractResourceFixture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
                 ->setAllowedTypes('prototype', 'array')
57 57
                 ->setDefault('custom', [])
58 58
                 ->setAllowedTypes('custom', 'array')
59
-                ->setNormalizer('custom', function (Options $options, array $custom) {
59
+                ->setNormalizer('custom', function(Options $options, array $custom) {
60 60
                     if ($options['random'] <= 0) {
61 61
                         return $custom;
62 62
                     }
Please login to merge, or discard this patch.
src/AppBundle/Command/Installer/InstallCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     {
54 54
         $this
55 55
             ->setName('app:install')
56
-            ->addOption('mode', null,InputArgument::OPTIONAL, 'select install mode', 'setup')
56
+            ->addOption('mode', null, InputArgument::OPTIONAL, 'select install mode', 'setup')
57 57
             ->setDescription('Installs AppName in your preferred environment.')
58 58
             ->setHelp(<<<EOT
59 59
 The <info>%command.name%</info> command installs AppName.
Please login to merge, or discard this patch.
src/AppBundle/Command/Installer/InstallSampleDataCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace AppBundle\Command\Installer;
15 15
 
Please login to merge, or discard this patch.
src/AppBundle/Command/Installer/SetupCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
     private function createEmailQuestion(OutputInterface $output)
123 123
     {
124 124
         return (new Question('E-mail:'))
125
-            ->setValidator(function ($value) use ($output) {
125
+            ->setValidator(function($value) use ($output) {
126 126
                 /** @var ConstraintViolationListInterface $errors */
127
-                $errors = $this->get('validator')->validate((string) $value, [new Email(), new NotBlank()]);
127
+                $errors = $this->get('validator')->validate((string)$value, [new Email(), new NotBlank()]);
128 128
                 foreach ($errors as $error) {
129 129
                     throw new \DomainException($error->getMessage());
130 130
                 }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      */
170 170
     private function getPasswordQuestionValidator(OutputInterface $output)
171 171
     {
172
-        return function ($value) use ($output) {
172
+        return function($value) use ($output) {
173 173
             /** @var ConstraintViolationListInterface $errors */
174 174
             $errors = $this->get('validator')->validate($value, [new NotBlank()]);
175 175
             foreach ($errors as $error) {
Please login to merge, or discard this patch.
src/AppBundle/Installer/Checker/CommandDirectoryChecker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         try {
82 82
             $this->filesystem->mkdir($directory, 0755);
83 83
         } catch (IOException $exception) {
84
-            $output->writeln($this->createUnexistingDirectoryMessage(getcwd().'/'.$directory));
84
+            $output->writeln($this->createUnexistingDirectoryMessage(getcwd() . '/' . $directory));
85 85
 
86 86
             throw new \RuntimeException('Failed while trying to create directory.');
87 87
         }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     private function createUnexistingDirectoryMessage($directory)
138 138
     {
139 139
         return
140
-            '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>'.PHP_EOL.
140
+            '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>' . PHP_EOL .
141 141
             sprintf('Create directory "%s" and run command "<comment>%s</comment>"', $directory, $this->name)
142 142
         ;
143 143
     }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     private function createBadPermissionsMessage($directory)
151 151
     {
152 152
         return
153
-            '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>'.PHP_EOL.
153
+            '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>' . PHP_EOL .
154 154
             sprintf('Set "%s" writable recursively and run command "<comment>%s</comment>"', $directory, $this->name)
155 155
         ;
156 156
     }
Please login to merge, or discard this patch.
src/AppBundle/Controller/DefaultController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     {
16 16
         // replace this example code with whatever you need
17 17
         return $this->render('default/index.html.twig', [
18
-            'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR,
18
+            'base_dir' => realpath($this->getParameter('kernel.root_dir') . '/..') . DIRECTORY_SEPARATOR,
19 19
         ]);
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/AppBundle/Behat/Command/DefaultContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
     protected function iExecuteCommandAndConfirm($name)
141 141
     {
142 142
         $this->questionHelper = $this->command->getHelper('question');
143
-        $inputString = 'y'.PHP_EOL;
143
+        $inputString = 'y' . PHP_EOL;
144 144
         $this->questionHelper->setInputStream($this->getInputStream($inputString));
145 145
 
146 146
         try {
Please login to merge, or discard this patch.
src/AppBundle/Behat/Command/InstallerContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     {
66 66
         $this->questionHelper = $this->command->getHelper('question');
67 67
         $inputString = implode(PHP_EOL, $this->inputChoices);
68
-        $this->questionHelper->setInputStream($this->getInputStream($inputString.PHP_EOL));
68
+        $this->questionHelper->setInputStream($this->getInputStream($inputString . PHP_EOL));
69 69
 
70 70
         try {
71 71
             $this->getTester()->execute(['command' => $name]);
Please login to merge, or discard this patch.
src/AppBundle/Behat/AbstractDefaultContext.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     protected function getRepository($resourceName)
138 138
     {
139
-        return $this->getService($this->applicationName.'.repository.'.$resourceName);
139
+        return $this->getService($this->applicationName . '.repository.' . $resourceName);
140 140
     }
141 141
 
142 142
     /**
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     protected function getFactory($resourceName)
148 148
     {
149
-        return $this->getService($this->applicationName.'.factory.'.$resourceName);
149
+        return $this->getService($this->applicationName . '.factory.' . $resourceName);
150 150
     }
151 151
 
152 152
     /**
@@ -207,11 +207,11 @@  discard block
 block discarded – undo
207 207
                     break;
208 208
 
209 209
                 case 'amount':
210
-                    $configuration[$key] = (int) $value;
210
+                    $configuration[$key] = (int)$value;
211 211
                     break;
212 212
 
213 213
                 case 'nth':
214
-                    $configuration[$key] = (int) $value;
214
+                    $configuration[$key] = (int)$value;
215 215
                     break;
216 216
 
217 217
                 default:
@@ -243,11 +243,11 @@  discard block
 block discarded – undo
243 243
         $routes = $this->getRouter()->getRouteCollection();
244 244
 
245 245
         if (null === $routes->get($route)) {
246
-            $route = $this->applicationName.'_'.$route;
246
+            $route = $this->applicationName . '_' . $route;
247 247
         }
248 248
 
249 249
         if (null === $routes->get($route)) {
250
-            $route = str_replace($this->applicationName.'_', $this->applicationName.'_backend_', $route);
250
+            $route = str_replace($this->applicationName . '_', $this->applicationName . '_backend_', $route);
251 251
         }
252 252
 
253 253
         $route = str_replace(array_keys($this->actions), array_values($this->actions), $route);
Please login to merge, or discard this patch.