Hi,

I have run the Symfony2 source through the phpStorm code analyzer once again. 
Here are the results after inspecting things by hand. It should be noted that 
due to all the false positives I skipped looking at undefined variables and 
methods. Guess each of the cases should be reviewed and pulls be made.

Here are the changes that looked sensible while I was going through things:
https://github.com/symfony/symfony/pull/120

There are the issues where I didnt quickly see the solution:

diff --git 
a/src/Symfony/Bundle/DoctrineBundle/Command/CreateDatabaseDoctrineCommand.php 
b/src/Symfony/Bundle/DoctrineBundle/Command/CreateDatabaseDoctrineCommand.php
index aa7ea84..cd35609 100644
--- 
a/src/Symfony/Bundle/DoctrineBundle/Command/CreateDatabaseDoctrineCommand.php
+++ 
b/src/Symfony/Bundle/DoctrineBundle/Command/CreateDatabaseDoctrineCommand.php
@@ -17,6 +17,7 @@ use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Output\OutputInterface;
 use Symfony\Component\Console\Output\Output;
 use Symfony\Bundle\FrameworkBundle\Util\Filesystem;
+// TODO broken?
 use Doctrine\Common\Cli\Configuration;
 use Doctrine\Common\Cli\CliController as DoctrineCliController;
 use Doctrine\DBAL\Connection;
@@ -68,4 +69,4 @@ EOT
 
         $tmpConnection->close();
     }
-}
\ No newline at end of file
+}
diff --git 
a/src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php 
b/src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php
index d0c2f71..c6fbbcf 100644
--- a/src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php
+++ b/src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php
@@ -17,6 +17,7 @@ use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Output\OutputInterface;
 use Symfony\Component\Console\Output\Output;
 use Symfony\Bundle\FrameworkBundle\Util\Filesystem;
+// TODO broken?
 use Doctrine\Common\Cli\Configuration;
 use Doctrine\Common\Cli\CliController as DoctrineCliController;
 use Doctrine\DBAL\Connection;
@@ -77,4 +78,4 @@ EOT
             $output->writeln(sprintf('<error>All data will be lost!</error>', 
$name));
         }
     }
-}
\ No newline at end of file
+}
diff --git 
a/src/Symfony/Bundle/DoctrineBundle/Command/LoadDataFixturesDoctrineCommand.php 
b/src/Symfony/Bundle/DoctrineBundle/Command/LoadDataFixturesDoctrineCommand.php
index 3a369bb..0585f5a 100644
--- 
a/src/Symfony/Bundle/DoctrineBundle/Command/LoadDataFixturesDoctrineCommand.php
+++ 
b/src/Symfony/Bundle/DoctrineBundle/Command/LoadDataFixturesDoctrineCommand.php
@@ -19,6 +19,7 @@ use Symfony\Component\Console\Output\Output;
 use Symfony\Component\Finder\Finder;
 use Symfony\Bundle\FrameworkBundle\Util\Filesystem;
 use Symfony\Bundle\DoctrineAbstractBundle\Common\DataFixtures\Loader as 
DataFixturesLoader;
+// TODO broken?
 use Doctrine\Common\Cli\Configuration;
 use Doctrine\Common\Cli\CliController as DoctrineCliController;
 use Doctrine\Common\DataFixtures\Executor\ORMExecutor;
@@ -89,4 +90,4 @@ EOT
         });
         $executor->execute($fixtures, $input->getOption('append'));
     }
-}
\ No newline at end of file
+}
diff --git a/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php 
b/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php
index 38e61b1..8dd0d1c 100644
--- a/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php
+++ b/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php
@@ -11,6 +11,7 @@
 
 namespace Symfony\Bundle\DoctrineBundle;
 
+// TODO broken?
 use 
Symfony\Bundle\DoctrineBundle\DependencyInjection\Compiler\CreateProxyDirectoryPass;
 use Symfony\Component\DependencyInjection\Compiler\PassConfig;
 use 
Symfony\Bundle\DoctrineBundle\DependencyInjection\Compiler\RegisterEventListenersAndSubscribersPass;
diff --git 
a/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php
 
b/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php
index bcaf9e0..05693e6 100644
--- 
a/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php
+++ 
b/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php
@@ -19,6 +19,7 @@ use Symfony\Component\Console\Output\Output;
 use Symfony\Component\Finder\Finder;
 use Symfony\Bundle\FrameworkBundle\Util\Filesystem;
 use Symfony\Bundle\DoctrineAbstractBundle\Common\DataFixtures\Loader as 
DataFixturesLoader;
+// TODO broken?
 use Doctrine\Common\Cli\Configuration;
 use Doctrine\Common\Cli\CliController as DoctrineCliController;
 use Doctrine\Common\DataFixtures\Executor\MongoDBExecutor;
@@ -89,4 +90,4 @@ EOT
         });
         $executor->execute($fixtures, $input->getOption('append'));
     }
-}
\ No newline at end of file
+}
diff --git a/src/Symfony/Bundle/TwigBundle/Extension/TemplatingExtension.php 
b/src/Symfony/Bundle/TwigBundle/Extension/TemplatingExtension.php
index d7ecb93..b4b3140 100644
--- a/src/Symfony/Bundle/TwigBundle/Extension/TemplatingExtension.php
+++ b/src/Symfony/Bundle/TwigBundle/Extension/TemplatingExtension.php
@@ -13,6 +13,7 @@ namespace Symfony\Bundle\TwigBundle\Extension;
 
 use Symfony\Component\DependencyInjection\ContainerInterface;
 use Symfony\Bundle\TwigBundle\TokenParser\IncludeTokenParser;
+// TODO broken?
 use Symfony\Bundle\TwigBundle\TokenParser\UrlTokenParser;
 use Symfony\Bundle\TwigBundle\TokenParser\PathTokenParser;
 use Symfony\Bundle\TwigBundle\TokenParser\RenderTokenParser;
diff --git a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php 
b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
index 1442f4f..7528e99 100644
--- a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
+++ b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
@@ -235,6 +235,7 @@ EOF;
             if ($processed->contains($sDefinition)) {
                 continue;
             }
+            /// TODO: broken?
             $processed->offsetSet($sDefinition);
 
             $class = $this->dumpValue($sDefinition->getClass());
@@ -428,6 +429,7 @@ EOF;
             if ($processed->contains($iDefinition)) {
                 continue;
             }
+            // TODO broken?
             $processed->offsetSet($iDefinition);
 
             if (!$this->hasReference($id, $iDefinition->getMethodCalls())) {

regards,
Lukas Kahwe Smith
[email protected]



-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to