Completed
Push — master ( a94b1d...e43892 )
by amaury
10:11 queued 05:56
created
Tests/Functional/ModelBundle/Repository/NodeRepositoryTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use OpenOrchestra\ModelBundle\Repository\NodeRepository;
8 8
 use OpenOrchestra\ModelInterface\NodeEvents;
9 9
 use OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration;
10
-use Phake;
11 10
 
12 11
 /**
13 12
  * Class NodeRepositoryTest
Please login to merge, or discard this patch.
Tests/Functional/ModelBundle/Repository/StatustRepositoryTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,10 +102,10 @@
 block discarded – undo
102 102
      */
103 103
     public function providePaginateConfiguration()
104 104
     {
105
-        $mapping =  array('label' => 'labels');
106
-        $conf1 = PaginateFinderConfiguration::generateFromVariable(null , null, null, $mapping, null);
107
-        $conf2 = PaginateFinderConfiguration::generateFromVariable(null , null, null, $mapping, array('label' => 'o', 'language' => 'en'));
108
-        $conf3 = PaginateFinderConfiguration::generateFromVariable(null , 2   , 4   , $mapping, array('label' => 'r', 'language' => 'en'));
105
+        $mapping = array('label' => 'labels');
106
+        $conf1 = PaginateFinderConfiguration::generateFromVariable(null, null, null, $mapping, null);
107
+        $conf2 = PaginateFinderConfiguration::generateFromVariable(null, null, null, $mapping, array('label' => 'o', 'language' => 'en'));
108
+        $conf3 = PaginateFinderConfiguration::generateFromVariable(null, 2, 4, $mapping, array('label' => 'r', 'language' => 'en'));
109 109
 
110 110
         return array(
111 111
             'No criteria'                => array($conf1, 6, 6),
Please login to merge, or discard this patch.
OpenOrchestra/Tests/Functional/ApiBundle/Controller/NodeControllerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $this->markTestSkipped('To reactivate when API roles will be implemented');
61 61
 
62
-        $node = $this->nodeRepository->findOnePublished('fixture_page_contact','fr','2');
62
+        $node = $this->nodeRepository->findOnePublished('fixture_page_contact', 'fr', '2');
63 63
         $node->getStatus()->setPublishedState(false);
64 64
         static::$kernel->getContainer()->get('object_manager')->flush();
65 65
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $nodeLastVersion = $this->nodeRepository
105 105
             ->findInLastVersion('fixture_page_community', 'fr', '2');
106 106
 
107
-        $this->assertSame($node->getVersion()+1, $nodeLastVersion->getVersion());
107
+        $this->assertSame($node->getVersion() + 1, $nodeLastVersion->getVersion());
108 108
     }
109 109
 
110 110
     /**
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
         $dm->clear();
374 374
         $node = $this->nodeRepository->findInLastVersion('root', 'fr', '2');
375 375
         $footerAreaBlocks = $node->getArea('footer')->getBlocks();
376
-        $addedBlock =  $footerAreaBlocks[1];
376
+        $addedBlock = $footerAreaBlocks[1];
377 377
 
378 378
         $this->assertSame($block->getId(), $addedBlock->getId());
379 379
     }
Please login to merge, or discard this patch.
Tests/Functional/BackofficeBundle/Controller/SiteControllerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,9 +114,9 @@
 block discarded – undo
114 114
      */
115 115
     protected function assertNodeCount($count, $language)
116 116
     {
117
-         $nodes = $this->nodeRepository->findNotDeletedSortByUpdatedAt(NodeInterface::ROOT_NODE_ID, $language, $this->siteId);
117
+            $nodes = $this->nodeRepository->findNotDeletedSortByUpdatedAt(NodeInterface::ROOT_NODE_ID, $language, $this->siteId);
118 118
 
119
-         $this->assertCount($count, $nodes);
119
+            $this->assertCount($count, $nodes);
120 120
     }
121 121
 
122 122
     /**
Please login to merge, or discard this patch.