Completed
Push — master ( 6bc272...387eb9 )
by Craig
07:54
created
src/lib/Zikula/Bundle/CoreInstallerBundle/Util/ZikulaRequirements.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public function runSymfonyChecks($parameters = [])
25 25
     {
26 26
         try {
27
-            $path = realpath(__DIR__.'/../../../../../var/SymfonyRequirements.php');
27
+            $path = realpath(__DIR__ . '/../../../../../var/SymfonyRequirements.php');
28 28
             require $path;
29 29
             $symfonyRequirements = new \SymfonyRequirements();
30 30
             $this->addZikulaPathRequirements($symfonyRequirements, $parameters);
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
         if ($requirement->isFulfilled()) {
45 45
             return;
46 46
         }
47
-        $errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.'   ').PHP_EOL;
48
-        $errorMessage .= '   > '.wordwrap($requirement->getHelpText(), $lineSize - 5, PHP_EOL.'   > ').PHP_EOL;
47
+        $errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL . '   ') . PHP_EOL;
48
+        $errorMessage .= '   > ' . wordwrap($requirement->getHelpText(), $lineSize - 5, PHP_EOL . '   > ') . PHP_EOL;
49 49
 
50 50
         return $errorMessage;
51 51
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $symfonyRequirements->addRequirement(
67 67
             is_writable($src . '/' . $parameters['datadir']),
68 68
             $parameters['datadir'] . '/ directory must be writable',
69
-            'Change the permissions of "<strong>' . $parameters['datadir']. '</strong>" directory so that the web server can write into it.'
69
+            'Change the permissions of "<strong>' . $parameters['datadir'] . '</strong>" directory so that the web server can write into it.'
70 70
         );
71 71
         $customParametersPath = $src . '/app/config/custom_parameters.yml';
72 72
         if (file_exists($customParametersPath)) {
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreInstallerBundle/Command/UpgradeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $count = $migrationHelper->countUnMigratedUsers();
98 98
         if ($count > 0) {
99 99
             $io->text($this->translator->__('Beginning user migration...'));
100
-            $userMigrationMaxuid = (int) $migrationHelper->getMaxUnMigratedUid();
100
+            $userMigrationMaxuid = (int)$migrationHelper->getMaxUnMigratedUid();
101 101
             $progressBar = new ProgressBar($output, ceil($count / MigrationHelper::BATCH_LIMIT));
102 102
             $progressBar->start();
103 103
             $lastUid = 0;
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $io->newLine();
134 134
 
135 135
         // write the parameters to custom_parameters.yml
136
-        $yamlManager = new YamlDumper($this->getContainer()->get('kernel')->getRootDir() .'/config', 'custom_parameters.yml');
136
+        $yamlManager = new YamlDumper($this->getContainer()->get('kernel')->getRootDir() . '/config', 'custom_parameters.yml');
137 137
         $params = array_merge($yamlManager->getParameters(), $settings);
138 138
         unset($params['upgrading']);
139 139
         $yamlManager->setParameters($params);
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Bundle/Bootstrap.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
      * @param string $class
90 90
      * @param string $type
91 91
      *
92
-     * @return bool
92
+     * @return boolean|null
93 93
      */
94 94
     private function extensionIsActive(Connection $conn, $class, $type)
95 95
     {
Please login to merge, or discard this patch.