Test Setup Failed
Branch master (d874c5)
by Lucas
18:59
created
src/LoginCidadao/NotificationBundle/Entity/PlaceholderRepository.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,15 +11,15 @@
 block discarded – undo
11 11
 {
12 12
 
13 13
     public function findOwnedPlaceholdersByCategoryId(PersonInterface $person,
14
-                                                      $categoryId)
14
+                                                        $categoryId)
15 15
     {
16 16
         return $this->getEntityManager()
17 17
                 ->getRepository('LoginCidadaoNotificationBundle:Placeholder')
18 18
                 ->createQueryBuilder('p')
19 19
                 ->join('LoginCidadaoNotificationBundle:Category', 'cat',
20
-                       'WITH', 'p.category = cat')
20
+                        'WITH', 'p.category = cat')
21 21
                 ->join('LoginCidadaoOAuthBundle:Client', 'c', 'WITH',
22
-                       'cat.client = c')
22
+                        'cat.client = c')
23 23
                 ->where(':person MEMBER OF c.owners')
24 24
                 ->andWhere('cat.id = :categoryId')
25 25
                 ->setParameter('person', $person)
Please login to merge, or discard this patch.
src/LoginCidadao/NotificationBundle/Form/BroadcastSettingsType.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
         $builder
31 31
             ->add('placeholders', 'collection',
32
-                   array(
32
+                    array(
33 33
                     'type' => new BroadcastPlaceholderType()
34 34
             ))
35 35
             ->add('title', 'text', array("required"=> true))
Please login to merge, or discard this patch.
src/LoginCidadao/NotificationBundle/Form/BroadcastType.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             'empty_data' => null,
58 58
             'class' => 'LoginCidadao\NotificationBundle\Entity\Category',
59 59
             'property' => 'name',
60
-            'query_builder' => function (CategoryRepository $repository) use ($person, $clientId) {
60
+            'query_builder' => function(CategoryRepository $repository) use ($person, $clientId) {
61 61
                 return $repository->getOwnedCategoriesQuery($person)
62 62
                         ->andWhere('c.id = :clientId')
63 63
                         ->setParameter('clientId', $clientId);
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
         $builder->add('client_id', 'hidden',
67 67
             array('required' => false, 'mapped' => false, 'data' => $clientId));
68 68
         $builder->addEventListener(FormEvents::PRE_SUBMIT,
69
-            function (FormEvent $event) use (&$receiversConfig, &$person, $clientId) {
69
+            function(FormEvent $event) use (&$receiversConfig, &$person, $clientId) {
70 70
             $entity                           = $event->getData();
71 71
             $form                             = $event->getForm();
72
-            $receiversConfig['query_builder'] = function (PersonRepository $repository) use ($clientId, &$entity) {
72
+            $receiversConfig['query_builder'] = function(PersonRepository $repository) use ($clientId, &$entity) {
73 73
                 $sql = $repository->getFindAuthorizedByClientIdQuery($clientId);
74 74
                 if (!empty($entity['receivers'])) {
75 75
                     $sql->andWhere('p.id in (:receivers)');
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
             $form->add('receivers', 'ajax_choice', $receiversConfig);
81 81
         });
82 82
         $builder->addEventListener(FormEvents::PRE_SET_DATA,
83
-            function (FormEvent $event) use (&$receiversConfig, &$person, &$clientId) {
83
+            function(FormEvent $event) use (&$receiversConfig, &$person, &$clientId) {
84 84
             $entity                           = $event->getData();
85 85
             $form                             = $event->getForm();
86
-            $receiversConfig['query_builder'] = function (PersonRepository $repository) {
86
+            $receiversConfig['query_builder'] = function(PersonRepository $repository) {
87 87
                 $sql = $repository->createQueryBuilder('u');
88 88
                 $sql->where('1 != 1');
89 89
                 return $sql;
Please login to merge, or discard this patch.
src/LoginCidadao/NotificationBundle/Form/NotificationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $em                = $this->em;
28 28
         $placesHoldersForm = $builder->create('placeholders', 'form');
29 29
         $builder->add($placesHoldersForm);
30
-        $preSubmit         = function (FormEvent $event) use (&$em) {
30
+        $preSubmit         = function(FormEvent $event) use (&$em) {
31 31
             $data = $event->getData();
32 32
             $form = $event->getForm();
33 33
             $form
Please login to merge, or discard this patch.
NotificationBundle/Handler/AuthenticatedNotificationHandlerInterface.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @return array
55 55
      */
56 56
     public function getAllFromClient(ClientInterface $client, $limit = 5,
57
-                                     $offset = 0, $orderby = null);
57
+                                        $offset = 0, $orderby = null);
58 58
 
59 59
     /**
60 60
      * Retrieves a person's settings.
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @return NotificationSettings PersonNotificationOptions grouped by Client
88 88
      */
89 89
     public function getGroupedSettings(ClientInterface $client = null,
90
-                                       CategoryInterface $category = null);
90
+                                        CategoryInterface $category = null);
91 91
 
92 92
     /**
93 93
      * Return a person's number of unread notifications.
Please login to merge, or discard this patch.
src/LoginCidadao/NotificationBundle/Model/BroadcastNotificationIterable.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
     protected function getCurrentData()
22 22
     {
23 23
         return $this->handler->allIdOffset($this->getPerIteration(),
24
-                                           $this->getOffset(),
25
-                                           $this->client);
24
+                                            $this->getOffset(),
25
+                                            $this->client);
26 26
     }
27 27
 
28 28
 }
Please login to merge, or discard this patch.
src/LoginCidadao/NotificationBundle/Model/BroadcastSettings.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         return $this->category;
69 69
     }
70 70
     
71
-     public function setCategory($category)
71
+        public function setCategory($category)
72 72
     {
73 73
         $this->$category = $category;
74 74
         return $this;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         return $this->broadcast->getTitle();
83 83
     }
84 84
     
85
-     public function setTitle($title)
85
+        public function setTitle($title)
86 86
     {
87 87
         $this->broadcast->setTitle($title);
88 88
         return $this;
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         return $this->broadcast->getShortText();
97 97
     }
98 98
     
99
-     public function setShortText($shortText)
99
+        public function setShortText($shortText)
100 100
     {
101 101
         $this->broadcast->setShortText($shortText);
102 102
         return $this;
Please login to merge, or discard this patch.
src/LoginCidadao/NotificationBundle/Model/ClientNotificationIterable.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
     protected function getCurrentData()
23 23
     {
24 24
         return $this->handler->allIdOffset($this->getPerIteration(),
25
-                                           $this->getOffset(),
26
-                                           $this->client);
25
+                                            $this->getOffset(),
26
+                                            $this->client);
27 27
     }
28 28
 
29 29
 }
Please login to merge, or discard this patch.
src/LoginCidadao/NotificationBundle/Model/NotificationIterable.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     protected function getCurrentData()
97 97
     {
98 98
         $notifications = $this->handler->allIdOffset($this->getPerIteration(),
99
-                                                     $this->getOffset());
99
+                                                        $this->getOffset());
100 100
 
101 101
         return $notifications;
102 102
     }
Please login to merge, or discard this patch.