Failed Conditions
Pull Request — master (#6655)
by
unknown
10:03
created
lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
             $entityGenerator->setRegenerateEntityIfExists($input->getOption('regenerate-entities'));
147 147
             $entityGenerator->setUpdateEntityIfExists($input->getOption('update-entities'));
148 148
             $entityGenerator->setNumSpaces($input->getOption('num-spaces'));
149
-            $entityGenerator->setBackupExisting(!$input->getOption('no-backup'));
149
+            $entityGenerator->setBackupExisting( ! $input->getOption('no-backup'));
150 150
 
151 151
             if (($extend = $input->getOption('extend')) !== null) {
152 152
                 $entityGenerator->setClassToExtend($extend);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/MappingDescribeCommand.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,6 @@  discard block
 block discarded – undo
78 78
      *
79 79
      * @param string                 $entityName    Full or partial entity class name
80 80
      * @param EntityManagerInterface $entityManager
81
-     * @param OutputInterface        $output
82 81
      */
83 82
     private function displayEntity($entityName, EntityManagerInterface $entityManager, SymfonyStyle $ui)
84 83
     {
@@ -240,7 +239,7 @@  discard block
 block discarded – undo
240 239
      * @param string $label Label for the value
241 240
      * @param mixed  $value A Value to show
242 241
      *
243
-     * @return array
242
+     * @return string[]
244 243
      */
245 244
     private function formatField($label, $value)
246 245
     {
@@ -278,7 +277,7 @@  discard block
 block discarded – undo
278 277
      *
279 278
      * @param array $entityListeners
280 279
      *
281
-     * @return array
280
+     * @return string[]
282 281
      */
283 282
     private function formatEntityListeners(array $entityListeners)
284 283
     {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             $message = ($result) ? 'Successfully flushed cache entries.' : $message;
108 108
         }
109 109
 
110
-        if (!$result) {
110
+        if ( ! $result) {
111 111
             $ui->error($message);
112 112
 
113 113
             return 1;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ValidateSchemaCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         $ui->section('Database');
99 99
         if ($input->getOption('skip-sync')) {
100 100
             $ui->text('<comment>[SKIPPED] The database was not checked for synchronicity.</comment>');
101
-        } elseif (!$validator->schemaInSyncWithMetadata()) {
101
+        } elseif ( ! $validator->schemaInSyncWithMetadata()) {
102 102
             $ui->error('The database schema is not in sync with the current mapping file.');
103 103
             $exit += 2;
104 104
         } else {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             ->getMetadataDriverImpl()
65 65
             ->getAllClassNames();
66 66
 
67
-        if (!$entityClassNames) {
67
+        if ( ! $entityClassNames) {
68 68
             $ui->caution([
69 69
                 'You do not have any mapped Doctrine ORM entities according to the current configuration.',
70 70
                 'If you have entities or mapping files you should check your mapping configuration for errors.'
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
             );
102 102
         }
103 103
 
104
-        if ( count($metadatas)) {
104
+        if (count($metadatas)) {
105 105
             foreach ($metadatas as $metadata) {
106 106
                 $ui->text(
107 107
                     sprintf('Processing entity "<info>%s</info>"', $metadata->name)
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             $message = ($result) ? 'Successfully flushed cache entries.' : $message;
108 108
         }
109 109
 
110
-        if (!$result) {
110
+        if ( ! $result) {
111 111
             $ui->error($message);
112 112
 
113 113
             return 1;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             $message = ($result) ? 'Successfully flushed cache entries.' : $message;
108 108
         }
109 109
 
110
-        if (!$result) {
110
+        if ( ! $result) {
111 111
             $ui->error($message);
112 112
 
113 113
             return 1;
Please login to merge, or discard this patch.