Skip to content

Commit

Permalink
cs cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Apr 27, 2014
1 parent 544488c commit b0733d1
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 29 deletions.
1 change: 0 additions & 1 deletion Admin/PageAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Sonata\DoctrinePHPCRAdminBundle\Admin\Admin;
use Symfony\Cmf\Bundle\RoutingBundle\Admin\RouteAdmin;
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
use Symfony\Component\Form\FormBuilder;

class PageAdmin extends RouteAdmin
{
Expand Down
1 change: 0 additions & 1 deletion CmfSimpleCmsBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle;

use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand Down
3 changes: 0 additions & 3 deletions DependencyInjection/CmfSimpleCmsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\DefinitionDecorator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\Config\FileLocator;

Expand Down
1 change: 0 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
Expand Down
7 changes: 3 additions & 4 deletions Doctrine/Phpcr/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr;

use Doctrine\Common\Collections\Collection;
use LogicException;
use Knp\Menu\NodeInterface;
use Doctrine\Common\Collections\ArrayCollection;
Expand Down Expand Up @@ -273,8 +272,8 @@ public function getExtras()
* without needing to extend the document class.
*
* @param array $extras a flat key-value hashmap. The values are cast to
* string as PHPCR stores multivalue data with only one data type for
* all values.
* string as PHPCR stores multivalue data with only
* one data type for all values.
*/
public function setExtras($extras)
{
Expand Down Expand Up @@ -456,7 +455,7 @@ public function getAdditionalInfoBlock()
* be a container block in order to be able to add several blocks.
*
* @param BlockInterface $block must be persistable through cascade by the
* persistence layer.
* persistence layer.
*/
public function setAdditionalInfoBlock($block)
{
Expand Down
1 change: 0 additions & 1 deletion Initializer/HomepageInitializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Initializer;

use PHPCR\Util\NodeHelper;
Expand Down
1 change: 0 additions & 1 deletion Migrator/Phpcr/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Migrator\Phpcr;

use Symfony\Component\Yaml\Parser;
Expand Down
3 changes: 1 addition & 2 deletions Tests/Functional/Doctrine/Phpcr/PageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\Functional\Migrator\Phpcr;
namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\Functional\Doctrine\Phpcr;

use Doctrine\ODM\PHPCR\DocumentManager;
use Symfony\Cmf\Component\Testing\Functional\BaseTestCase;
Expand Down
16 changes: 13 additions & 3 deletions Tests/Functional/Migrator/Phpcr/PageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,24 @@
* file that was distributed with this source code.
*/

namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\Functional\Migrator\Phpcr;

namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\Functional\Doctrine\Phpcr;

use Doctrine\ODM\PHPCR\DocumentManager;
use Symfony\Cmf\Component\Testing\Functional\BaseTestCase;
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
use Symfony\Cmf\Bundle\SimpleCmsBundle\Migrator\Phpcr\Page;

class PageTest extends BaseTestCase
{
/**
* @var Page
*/
private $migrator;

/**
* @var DocumentManager
*/
private $dm;

public function setUp()
{
$this->db('PHPCR')->createTestNode();
Expand Down
1 change: 0 additions & 1 deletion Tests/Resources/DataFixtures/Phpcr/LoadPageData.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\Resources\DataFixtures\Phpcr;

use Doctrine\Common\DataFixtures\FixtureInterface;
Expand Down
2 changes: 1 addition & 1 deletion Tests/Resources/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function configure()
$this->requireBundleSets(array(
'default',
'phpcr_odm',
'sonata_admin',
'sonata_admin_phpcr',
));

$this->addBundles(array(
Expand Down
4 changes: 1 addition & 3 deletions Tests/Unit/DependencyInjection/CmfSimpleCmsExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\DependencyInjection;
namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\Unit\DependencyInjection;

use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
use Symfony\Cmf\Bundle\SimpleCmsBundle\DependencyInjection\CmfSimpleCmsExtension;
use Symfony\Component\DependencyInjection\Reference;

class CmfSimpleCmsExtensionTest extends AbstractExtensionTestCase
{
Expand Down
3 changes: 1 addition & 2 deletions Tests/Unit/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\DependencyInjection;
namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\Unit\DependencyInjection;

use Symfony\Cmf\Bundle\SimpleCmsBundle\DependencyInjection\CmfSimpleCmsExtension;
use Symfony\Cmf\Bundle\SimpleCmsBundle\DependencyInjection\Configuration;
Expand Down
2 changes: 0 additions & 2 deletions Tests/Unit/DependencyInjection/XmlSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\RoutingBundle\Tests\Unit\DependencyInjection;

use Symfony\Cmf\Component\Testing\Unit\XmlSchemaTestCase;
Expand Down Expand Up @@ -38,4 +37,3 @@ public function testSchema()
$this->assertSchemaAcceptsXml($xmlFiles, $this->schemaPath);
}
}

1 change: 0 additions & 1 deletion Tests/Unit/Doctrine/Phpcr/PageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\Unit\Doctrine\Phpcr;

use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
Expand Down
1 change: 0 additions & 1 deletion Tests/WebTest/Admin/PageAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\WebTest\Admin;

use Symfony\Bundle\FrameworkBundle\Client;
Expand Down
1 change: 0 additions & 1 deletion Tests/WebTest/TestApp/HttpStatusCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/


namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Tests\WebTest\TestApp;

use Symfony\Bundle\FrameworkBundle\Client;
Expand Down

0 comments on commit b0733d1

Please sign in to comment.