GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 3e832a...c39f5d )
by Luis Ramón
10:33
created
src/AppBundle/Controller/BaseController.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -282,12 +282,12 @@
 block discarded – undo
282 282
         $noActivity = htmlentities($translator->trans('form.no_activities', [], 'calendar'));
283 283
         $noWorkday = htmlentities($translator->trans('form.no_workday', [], 'calendar'));
284 284
 
285
-        foreach($weekDays as $workDay) {
285
+        foreach ($weekDays as $workDay) {
286 286
             $day = $workDay->getDate()->format('N');
287 287
             $activities[$day] = '';
288 288
             $hours[$day] = '';
289 289
 
290
-            foreach($workDay->getTrackingActivities() as $trackingActivity) {
290
+            foreach ($workDay->getTrackingActivities() as $trackingActivity) {
291 291
                 $activities[$day] .= '<li style="list-style-position: inside; list-style: square;">';
292 292
                 if ($trackingActivity->getActivity()->getCode()) {
293 293
                     $activities[$day] .= '<b>' . htmlentities($trackingActivity->getActivity()->getCode()) . ': </b>';
Please login to merge, or discard this patch.
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -80,6 +80,10 @@  discard block
 block discarded – undo
80 80
             ]);
81 81
     }
82 82
 
83
+    /**
84
+     * @param boolean $status
85
+     * @param string $routeName
86
+     */
83 87
     protected function lockWorkdayAction(Agreement $agreement, Request $request, $status, $routeName)
84 88
     {
85 89
         $this->denyAccessUnlessGranted($status ? 'AGREEMENT_LOCK' : 'AGREEMENT_UNLOCK', $agreement);
@@ -105,6 +109,10 @@  discard block
 block discarded – undo
105 109
         return $this->redirectToRoute($routeName, ['id' => $agreement->getId()]);
106 110
     }
107 111
 
112
+    /**
113
+     * @param boolean $status
114
+     * @param string $routeName
115
+     */
108 116
     protected function lockWeekAction(Agreement $agreement, Request $request, $status, $routeName)
109 117
     {
110 118
         $this->denyAccessUnlessGranted($status ? 'AGREEMENT_LOCK' : 'AGREEMENT_UNLOCK', $agreement);
@@ -170,6 +178,10 @@  discard block
 block discarded – undo
170 178
         return $this->redirectToRoute('admin_group_student_calendar', ['id' => $agreement->getId()]);
171 179
     }
172 180
 
181
+    /**
182
+     * @param string[] $routes
183
+     * @param string $template
184
+     */
173 185
     protected function workTutorReportAction(Agreement $agreement, Request $request, $breadcrumb, $routes, $template)
174 186
     {
175 187
         $em = $this->getDoctrine()->getManager();
Please login to merge, or discard this patch.
src/AppBundle/Entity/WorkdayRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@
 block discarded – undo
233 233
         $workDays = $workday->getAgreement()->getWorkdays();
234 234
 
235 235
         /** @var Workday $day */
236
-        foreach($workDays as $day) {
236
+        foreach ($workDays as $day) {
237 237
             $numWeek = $day->getDate()->format('W');
238 238
 
239 239
             if ($numWeek != $oldNumWeek) {
Please login to merge, or discard this patch.
src/AppBundle/Entity/LearningOutcomeRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         $outcomes = new ArrayCollection();
16 16
 
17 17
         /** @var Activity $activity */
18
-        foreach($activities as $activity) {
18
+        foreach ($activities as $activity) {
19 19
             if (false === $outcomes->contains($activity->getLearningOutcome())) {
20 20
                 $outcomes->add($activity->getLearningOutcome());
21 21
             }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         $learningOutcomes = $this->getFromAgreement($agreement);
31 31
         $result = [];
32 32
 
33
-        foreach($learningOutcomes as $learningOutcome) {
33
+        foreach ($learningOutcomes as $learningOutcome) {
34 34
             $item = [];
35 35
             $item['learning_outcome'] = $learningOutcome;
36 36
             $item['activities'] = $this->getEntityManager()->getRepository('AppBundle:Activity')->getFromAgreementAndLearningOutcome($agreement, $learningOutcome);
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/ActivityType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
                 'required' => false
55 55
             ]);
56 56
 
57
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
57
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
58 58
             /** @var Activity $activity */
59 59
             $activity = $event->getData();
60 60
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/MyStudentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
262 262
         $documentDate = null;
263 263
 
264 264
         /** @var Agreement $a */
265
-        foreach($agreements as $a) {
265
+        foreach ($agreements as $a) {
266 266
             $activities[] = [$a, $this->getDoctrine()->getRepository('AppBundle:Agreement')->getActivitiesStats($a)];
267 267
             if (null === $documentDate || $a->getToDate() > $documentDate) {
268 268
                 $documentDate = $a->getToDate();
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/VisitType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
                 'choices' => $agreements,
69 69
                 'expanded' => true,
70 70
                 'choice_label' => function(Agreement $a) {
71
-                    return $a->getStudent()->getFullDisplayName().' - '.$this->translator->trans('form.'.$a->getQuarter().'Q', [], 'agreement');
71
+                    return $a->getStudent()->getFullDisplayName() . ' - ' . $this->translator->trans('form.' . $a->getQuarter() . 'Q', [], 'agreement');
72 72
                 },
73 73
                 'required' => false
74 74
             ]);
Please login to merge, or discard this patch.
src/AppBundle/Entity/WorkcenterRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
         $result = [];
42 42
 
43
-        foreach($quarters as $quarter) {
43
+        foreach ($quarters as $quarter) {
44 44
             $partial = $this->getVisitRelatedWorkcenters($user, [$quarter]);
45 45
             if ($partial) {
46 46
                 $result[$quarter] = $partial;
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/UserType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         }
113 113
 
114 114
 
115
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) {
115
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) {
116 116
             $builder = $event->getForm();
117 117
             /** @var User $data */
118 118
             $data = $event->getData();
Please login to merge, or discard this patch.
src/AppBundle/Service/SenecaAuthenticatorService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     {
130 130
         $fieldsString = '';
131 131
         foreach ($fields as $key => $value) {
132
-            $fieldsString .= $key.'='.$value.'&';
132
+            $fieldsString .= $key . '=' . $value . '&';
133 133
         }
134 134
         $fieldsString = rtrim($fieldsString, '&');
135 135
 
Please login to merge, or discard this patch.