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
Branch develop (6645aa)
by Borut
16:04
created
src/Application/Controller/ApiController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      * @param Request     $request
15 15
      * @param Application $app
16 16
      *
17
-     * @return Response
17
+     * @return \Symfony\Component\HttpFoundation\JsonResponse
18 18
      */
19 19
     public function indexAction(Request $request, Application $app)
20 20
     {
Please login to merge, or discard this patch.
src/Application/Entity/PostEntity.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -161,6 +161,10 @@  discard block
 block discarded – undo
161 161
     }
162 162
 
163 163
     /*** Image upload dir ***/
164
+
165
+    /**
166
+     * @return string
167
+     */
164 168
     public function getImageUploadDir()
165 169
     {
166 170
         return $this->imageUploadDir;
@@ -179,6 +183,9 @@  discard block
 block discarded – undo
179 183
         return $this->imageUrl;
180 184
     }
181 185
 
186
+    /**
187
+     * @param string $imageUrl
188
+     */
182 189
     public function setImageUrl($imageUrl)
183 190
     {
184 191
         $this->imageUrl = $imageUrl;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 
273 273
     public function addPostMeta(PostMetaEntity $postMeta)
274 274
     {
275
-        if (! $this->postMetas->contains($postMeta)) {
275
+        if (!$this->postMetas->contains($postMeta)) {
276 276
             $postMeta->setPost($this);
277 277
             $this->postMetas->add($postMeta);
278 278
         }
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
         $slugify = new Slugify();
326 326
         $metas = $this->getMetas();
327 327
 
328
-        if (! empty($metas)) {
328
+        if (!empty($metas)) {
329 329
             foreach ($metas as $metaKey => $metaValue) {
330 330
                 $metaEntity = new PostMetaEntity();
331 331
 
Please login to merge, or discard this patch.
src/Application/Entity/PostMetaEntity.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -133,6 +133,10 @@
 block discarded – undo
133 133
     {
134 134
         return $this->post;
135 135
     }
136
+
137
+    /**
138
+     * @param PostEntity|null $post
139
+     */
136 140
     public function setPost($post)
137 141
     {
138 142
         $this->post = $post;
Please login to merge, or discard this patch.
src/Application/Entity/ProfileEntity.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -243,6 +243,10 @@  discard block
 block discarded – undo
243 243
     }
244 244
 
245 245
     /*** Image upload dir ***/
246
+
247
+    /**
248
+     * @return string
249
+     */
246 250
     public function getImageUploadDir()
247 251
     {
248 252
         return $this->imageUploadDir;
@@ -265,6 +269,9 @@  discard block
 block discarded – undo
265 269
         return $this->imageUrl;
266 270
     }
267 271
 
272
+    /**
273
+     * @param string $imageUrl
274
+     */
268 275
     public function setImageUrl($imageUrl)
269 276
     {
270 277
         $this->imageUrl = $imageUrl;
Please login to merge, or discard this patch.
src/Application/Entity/UserEntity.php 3 patches
Doc Comments   +19 added lines, -16 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     /*************** Methods ***************/
176 176
     /***** Constructor *****/
177 177
     /**
178
-     * @return void
178
+     * @return ProfileEntity
179 179
      */
180 180
     public function __construct()
181 181
     {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     }
299 299
 
300 300
     /**
301
-     * @param $password
301
+     * @param string $password
302 302
      *
303 303
      * @return \Application\Entity\UserEntity
304 304
      */
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     }
376 376
 
377 377
     /**
378
-     * @param $salt
378
+     * @param string $salt
379 379
      *
380 380
      * @return \Application\Entity\UserEntity
381 381
      */
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
     }
397 397
 
398 398
     /**
399
-     * @param $token
399
+     * @param string $token
400 400
      *
401 401
      * @return \Application\Entity\UserEntity
402 402
      */
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
     }
418 418
 
419 419
     /**
420
-     * @param $accessToken
420
+     * @param string $accessToken
421 421
      *
422 422
      * @return \Application\Entity\UserEntity
423 423
      */
@@ -445,6 +445,9 @@  discard block
 block discarded – undo
445 445
         return $this->getEnabled();
446 446
     }
447 447
 
448
+    /**
449
+     * @param boolean $enabled
450
+     */
448 451
     public function setEnabled($enabled)
449 452
     {
450 453
         $this->enabled = $enabled;
@@ -490,7 +493,7 @@  discard block
 block discarded – undo
490 493
     }
491 494
 
492 495
     /**
493
-     * @param $locked
496
+     * @param boolean $locked
494 497
      *
495 498
      * @return \Application\Entity\UserEntity
496 499
      */
@@ -523,7 +526,7 @@  discard block
 block discarded – undo
523 526
 
524 527
     /*** Reset password code ***/
525 528
     /**
526
-     * @return boolean
529
+     * @return string
527 530
      */
528 531
     public function getResetPasswordCode()
529 532
     {
@@ -531,7 +534,7 @@  discard block
 block discarded – undo
531 534
     }
532 535
 
533 536
     /**
534
-     * @param $resetPasswordCode
537
+     * @param string $resetPasswordCode
535 538
      *
536 539
      * @return \Application\Entity\UserEntity
537 540
      */
@@ -552,7 +555,7 @@  discard block
 block discarded – undo
552 555
     }
553 556
 
554 557
     /**
555
-     * @param $activationCode
558
+     * @param string $activationCode
556 559
      *
557 560
      * @return \Application\Entity\UserEntity
558 561
      */
@@ -565,7 +568,7 @@  discard block
 block discarded – undo
565 568
 
566 569
     /*** Time last active ***/
567 570
     /**
568
-     * @return Datetime
571
+     * @return \DateTime
569 572
      */
570 573
     public function getTimeLastActive()
571 574
     {
@@ -586,7 +589,7 @@  discard block
 block discarded – undo
586 589
 
587 590
     /*** Time created ***/
588 591
     /**
589
-     * @return Datetime
592
+     * @return \DateTime
590 593
      */
591 594
     public function getTimeCreated()
592 595
     {
@@ -607,7 +610,7 @@  discard block
 block discarded – undo
607 610
 
608 611
     /*** Time updated ***/
609 612
     /**
610
-     * @return Datetime
613
+     * @return \DateTime
611 614
      */
612 615
     public function getTimeUpdated()
613 616
     {
@@ -678,7 +681,7 @@  discard block
 block discarded – undo
678 681
 
679 682
    /*** Roles ***/
680 683
     /**
681
-     * @return array
684
+     * @return string[]
682 685
      */
683 686
     public function getRoles()
684 687
     {
@@ -703,7 +706,7 @@  discard block
 block discarded – undo
703 706
     /**
704 707
      * @param $role
705 708
      *
706
-     * @return \Application\Entity\UserEntity
709
+     * @return boolean
707 710
      */
708 711
     public function hasRole($role)
709 712
     {
@@ -715,7 +718,7 @@  discard block
 block discarded – undo
715 718
 
716 719
     /*** Profile ***/
717 720
     /**
718
-     * @return Application\Entity\ProfileEntity
721
+     * @return ProfileEntity
719 722
      */
720 723
     public function getProfile()
721 724
     {
@@ -791,7 +794,7 @@  discard block
 block discarded – undo
791 794
     }
792 795
 
793 796
     /**
794
-     * @return array
797
+     * @return string
795 798
      */
796 799
     public function serialize()
797 800
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -676,7 +676,7 @@
 block discarded – undo
676 676
         return ! $this->getExpired();
677 677
     }
678 678
 
679
-   /*** Roles ***/
679
+    /*** Roles ***/
680 680
     /**
681 681
      * @return array
682 682
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
      */
519 519
     public function isAccountNonLocked()
520 520
     {
521
-        return ! $this->isLocked();
521
+        return !$this->isLocked();
522 522
     }
523 523
 
524 524
     /*** Reset password code ***/
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
      */
649 649
     public function isAccountNonExpired()
650 650
     {
651
-        return ! $this->getExpired();
651
+        return !$this->getExpired();
652 652
     }
653 653
 
654 654
     /*** Credentials expired ***/
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
      */
674 674
     public function isCredentialsNonExpired()
675 675
     {
676
-        return ! $this->getExpired();
676
+        return !$this->getExpired();
677 677
     }
678 678
 
679 679
    /*** Roles ***/
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
      */
764 764
     public function isEqualTo(AdvancedUserInterface $user)
765 765
     {
766
-        if (! $user instanceof AdvancedUserInterface) {
766
+        if (!$user instanceof AdvancedUserInterface) {
767 767
             return false;
768 768
         }
769 769
 
Please login to merge, or discard this patch.
src/Application/Twig/FileExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-     * @return string|boolean
47
+     * @return string|false
48 48
      */
49 49
     public function fileContents($path)
50 50
     {
Please login to merge, or discard this patch.
src/Application/Controller/MembersArea/MyController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
              *   when the validation kicks in, and one refresh later,
75 75
              *   you're logged in as that user.
76 76
              */
77
-             $app['user']->setUsername($currentUserUsername);
77
+                $app['user']->setUsername($currentUserUsername);
78 78
 
79 79
             if ($form->isValid()) {
80 80
                 $userEntity = $form->getData();
Please login to merge, or discard this patch.
src/Application/Controller/MembersArea/PostsController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
         $data = array();
25 25
 
26 26
         if (
27
-            ! $app['security']->isGranted('ROLE_POSTS_EDITOR') &&
28
-            ! $app['security']->isGranted('ROLE_ADMIN')
27
+            !$app['security']->isGranted('ROLE_POSTS_EDITOR') &&
28
+            !$app['security']->isGranted('ROLE_ADMIN')
29 29
         ) {
30 30
             $app->abort(403);
31 31
         }
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
         $data = array();
79 79
 
80 80
         if (
81
-            ! $app['security']->isGranted('ROLE_POSTS_EDITOR') &&
82
-            ! $app['security']->isGranted('ROLE_ADMIN')
81
+            !$app['security']->isGranted('ROLE_POSTS_EDITOR') &&
82
+            !$app['security']->isGranted('ROLE_ADMIN')
83 83
         ) {
84 84
             $app->abort(403);
85 85
         }
@@ -145,15 +145,15 @@  discard block
 block discarded – undo
145 145
         $data = array();
146 146
 
147 147
         if (
148
-            ! $app['security']->isGranted('ROLE_POSTS_EDITOR') &&
149
-            ! $app['security']->isGranted('ROLE_ADMIN')
148
+            !$app['security']->isGranted('ROLE_POSTS_EDITOR') &&
149
+            !$app['security']->isGranted('ROLE_ADMIN')
150 150
         ) {
151 151
             $app->abort(403);
152 152
         }
153 153
 
154 154
         $post = $app['orm.em']->find('Application\Entity\PostEntity', $id);
155 155
 
156
-        if (! $post) {
156
+        if (!$post) {
157 157
             $app->abort(404);
158 158
         }
159 159
 
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
         $data = array();
220 220
 
221 221
         if (
222
-            ! $app['security']->isGranted('ROLE_POSTS_EDITOR') &&
223
-            ! $app['security']->isGranted('ROLE_ADMIN')
222
+            !$app['security']->isGranted('ROLE_POSTS_EDITOR') &&
223
+            !$app['security']->isGranted('ROLE_ADMIN')
224 224
         ) {
225 225
             $app->abort(403);
226 226
         }
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
         if (
245 245
             (
246
-                ! $post &&
246
+                !$post &&
247 247
                 $ids === false
248 248
             ) ||
249 249
             (
Please login to merge, or discard this patch.
src/Application/Controller/MembersArea/SettingsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $data = array();
25 25
 
26
-        if (! $app['security']->isGranted('ROLE_ADMIN')) {
26
+        if (!$app['security']->isGranted('ROLE_ADMIN')) {
27 27
             $app->abort(403);
28 28
         }
29 29
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             if ($form->isValid()) {
38 38
                 $data = $form->getData();
39 39
 
40
-                if (! empty($data)) {
40
+                if (!empty($data)) {
41 41
                     foreach ($data as $key => $value) {
42 42
                         $settingEntity = $app['orm.em']
43 43
                             ->getRepository('Application\Entity\SettingEntity')
Please login to merge, or discard this patch.