Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
module/Organizations/src/Entity/Organization.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,17 +49,17 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * Always enabled even if there are no active jobs
51 51
      */
52
-    const PROFILE_ALWAYS_ENABLE     = 'always';
52
+    const PROFILE_ALWAYS_ENABLE = 'always';
53 53
 
54 54
     /**
55 55
      * Hide if there are no jobs available
56 56
      */
57
-    const PROFILE_ACTIVE_JOBS       = 'active-jobs';
57
+    const PROFILE_ACTIVE_JOBS = 'active-jobs';
58 58
 
59 59
     /**
60 60
      * Always disabled profile
61 61
      */
62
-    const PROFILE_DISABLED          = 'disabled';
62
+    const PROFILE_DISABLED = 'disabled';
63 63
 
64 64
     /**
65 65
      * Event name of post construct event.
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
      */
318 318
     public function getParent($returnSelf = false)
319 319
     {
320
-        return $this->parent ? : ($returnSelf ? $this : null);
320
+        return $this->parent ?: ($returnSelf ? $this : null);
321 321
     }
322 322
 
323 323
     /**
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
      */
549 549
     public function getPermissionsResourceId()
550 550
     {
551
-        return 'organization:' . $this->getId();
551
+        return 'organization:'.$this->getId();
552 552
     }
553 553
 
554 554
     /**
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
      */
615 615
     public function getImages(): ?ImageSetInterface
616 616
     {
617
-        if(is_null($this->images)){
617
+        if (is_null($this->images)) {
618 618
             $this->images = new ImageSet();
619 619
         }
620 620
         return $this->images;
Please login to merge, or discard this patch.
module/Organizations/src/Entity/OrganizationImage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@
 block discarded – undo
32 32
 
33 33
     public function getUri(): string
34 34
     {
35
-        $id = (string)$this->id;
36
-        $name = (string)$this->name;
37
-        return '/'.trim('file/Organizations.OrganizationImage/' . $id . "/" . urlencode($name), '/');
35
+        $id = (string) $this->id;
36
+        $name = (string) $this->name;
37
+        return '/'.trim('file/Organizations.OrganizationImage/'.$id."/".urlencode($name), '/');
38 38
     }
39 39
 
40 40
 }
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
module/Organizations/src/ImageFileCache/Manager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function getUri(?OrganizationImage $image)
46 46
     {
47
-        if(is_null($image)){
47
+        if (is_null($image)) {
48 48
             return null;
49 49
         }
50 50
         if ($this->options->getEnabled()) {
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function matchUri($uri)
95 95
     {
96
-        $pattern = '#^' . preg_quote($this->options->getUriPath(), '#') . '/[0-9a-z]/[0-9a-z]/([0-9a-z]+)\.[a-zA-Z]{3,4}$#';
96
+        $pattern = '#^'.preg_quote($this->options->getUriPath(), '#').'/[0-9a-z]/[0-9a-z]/([0-9a-z]+)\.[a-zA-Z]{3,4}$#';
97 97
         $matches = [];
98 98
         preg_match($pattern, $uri, $matches);
99 99
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     {
151 151
         $dir = rtrim($dir, '/\\');
152 152
 
153
-        if (! is_dir($dir)) {
153
+        if (!is_dir($dir)) {
154 154
             $this->createDirectoryRecursively(dirname($dir));
155 155
 
156 156
             $oldUmask = umask(0);
Please login to merge, or discard this patch.
module/Organizations/src/ImageFileCache/ApplicationListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         /* @var OrganizationImage $image */
76 76
         $image = $fileManager->findByID(OrganizationImage::class, $id);
77 77
 
78
-        if (! $image) {
78
+        if (!$image) {
79 79
             // abort if image does not exist
80 80
             return;
81 81
         }
Please login to merge, or discard this patch.
etc/gitlab/autoload/module.auth.local.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 $LINKEDIN_APP_SECRET    = getenv('LINKEDIN_APP_SECRET');
7 7
 
8 8
 return array(
9
-	'hybridauth' => array(
9
+    'hybridauth' => array(
10 10
         "Facebook" => array ( 
11 11
             "enabled" => true,
12 12
             "keys"    => array ( "id" => $FACEBOOK_APP_ID, "secret" => $FACEBOOK_APP_SECRET ),
@@ -30,13 +30,13 @@  discard block
 block discarded – undo
30 30
             "scope"   => ''
31 31
         ),
32 32
         "Google" => array(
33
-             // see http://hybridauth.sourceforge.net/userguide/IDProvider_info_Google.html
34
-             "enabled" => false,
35
-             'keys'    => array ( "id" => '###Your Google Client-ID ###', 'secret' => '###Your GitHub Secret###'),
36
-             "scope"   => "https://www.googleapis.com/auth/userinfo.profile ". // optional
37
-                          "https://www.googleapis.com/auth/userinfo.email"   , // optional
38
-             "access_type"     => "offline",   // optional
39
-             "approval_prompt" => "force",     // optional
33
+                // see http://hybridauth.sourceforge.net/userguide/IDProvider_info_Google.html
34
+                "enabled" => false,
35
+                'keys'    => array ( "id" => '###Your Google Client-ID ###', 'secret' => '###Your GitHub Secret###'),
36
+                "scope"   => "https://www.googleapis.com/auth/userinfo.profile ". // optional
37
+                            "https://www.googleapis.com/auth/userinfo.email"   , // optional
38
+                "access_type"     => "offline",   // optional
39
+                "approval_prompt" => "force",     // optional
40 40
         ),
41 41
 
42 42
 
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
     ),
48 48
     
49 49
     'Auth' => array(
50
-    	'first_login' => array (
51
-    	    'role' => '%%role%%',                                            // role set on the first login.
52
-    	    'auth_suffix' => '%%auth.suffix%%',                              // an auth suffix is needed, if you plan to add external apps.
53
-    	),
54
-    	// this allows an external application to use the YAWIK API
55
-    	// applications[USERPOSTFIX] => AppKey
50
+        'first_login' => array (
51
+            'role' => '%%role%%',                                            // role set on the first login.
52
+            'auth_suffix' => '%%auth.suffix%%',                              // an auth suffix is needed, if you plan to add external apps.
53
+        ),
54
+        // this allows an external application to use the YAWIK API
55
+        // applications[USERPOSTFIX] => AppKey
56 56
         'external_applications' => array(
57 57
             '%%external.app.prefix%%' => '%%external.app.key%%',
58 58
         ),
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -7,36 +7,36 @@  discard block
 block discarded – undo
7 7
 
8 8
 return array(
9 9
 	'hybridauth' => array(
10
-        "Facebook" => array ( 
10
+        "Facebook" => array( 
11 11
             "enabled" => true,
12
-            "keys"    => array ( "id" => $FACEBOOK_APP_ID, "secret" => $FACEBOOK_APP_SECRET ),
13
-            "scope"   => "email, user_about_me, user_birthday, user_hometown, user_work_history, user_education_history",// optional
12
+            "keys"    => array("id" => $FACEBOOK_APP_ID, "secret" => $FACEBOOK_APP_SECRET),
13
+            "scope"   => "email, user_about_me, user_birthday, user_hometown, user_work_history, user_education_history", // optional
14 14
             "display" => "popup"
15 15
 
16 16
         ),
17
-        "LinkedIn" => array (
17
+        "LinkedIn" => array(
18 18
             "enabled" => true,
19
-            "keys"    => array ( "id" => $LINKEDIN_APP_ID, "secret" => $LINKEDIN_APP_SECRET ),
19
+            "keys"    => array("id" => $LINKEDIN_APP_ID, "secret" => $LINKEDIN_APP_SECRET),
20 20
             "scope"   => "r_basicprofile,r_emailaddress"
21 21
         ),
22 22
         "XING" => array(
23 23
             "enabled" => false,
24
-            'keys'    => array ( "key" => '###XING APP KEY###', 'secret' => '### XING APP SECRET ###'),
24
+            'keys'    => array("key" => '###XING APP KEY###', 'secret' => '### XING APP SECRET ###'),
25 25
             "scope"   => ''
26 26
         ),
27 27
         "Github" => array(
28 28
             "enabled" => false,
29
-            'keys'    => array ( "id" => '###Your GitHub AppID ###', 'secret' => '###Your GitHub Secret###'),
29
+            'keys'    => array("id" => '###Your GitHub AppID ###', 'secret' => '###Your GitHub Secret###'),
30 30
             "scope"   => ''
31 31
         ),
32 32
         "Google" => array(
33 33
              // see http://hybridauth.sourceforge.net/userguide/IDProvider_info_Google.html
34 34
              "enabled" => false,
35
-             'keys'    => array ( "id" => '###Your Google Client-ID ###', 'secret' => '###Your GitHub Secret###'),
36
-             "scope"   => "https://www.googleapis.com/auth/userinfo.profile ". // optional
37
-                          "https://www.googleapis.com/auth/userinfo.email"   , // optional
38
-             "access_type"     => "offline",   // optional
39
-             "approval_prompt" => "force",     // optional
35
+             'keys'    => array("id" => '###Your Google Client-ID ###', 'secret' => '###Your GitHub Secret###'),
36
+             "scope"   => "https://www.googleapis.com/auth/userinfo.profile ".// optional
37
+                          "https://www.googleapis.com/auth/userinfo.email", // optional
38
+             "access_type"     => "offline", // optional
39
+             "approval_prompt" => "force", // optional
40 40
         ),
41 41
 
42 42
 
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
     ),
48 48
     
49 49
     'Auth' => array(
50
-    	'first_login' => array (
51
-    	    'role' => '%%role%%',                                            // role set on the first login.
52
-    	    'auth_suffix' => '%%auth.suffix%%',                              // an auth suffix is needed, if you plan to add external apps.
50
+    	'first_login' => array(
51
+    	    'role' => '%%role%%', // role set on the first login.
52
+    	    'auth_suffix' => '%%auth.suffix%%', // an auth suffix is needed, if you plan to add external apps.
53 53
     	),
54 54
     	// this allows an external application to use the YAWIK API
55 55
     	// applications[USERPOSTFIX] => AppKey
Please login to merge, or discard this patch.
etc/gitlab/autoload/MailServiceOptions.config.local.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
         'Core/MailServiceOptions' => [
16 16
             'options' => [
17 17
                 'transportClass' => 'file',
18
-                'path' => realpath(__DIR__ . '/../../build/mails')
18
+                'path' => realpath(__DIR__.'/../../build/mails')
19 19
             ],
20 20
         ],
21 21
     ]
Please login to merge, or discard this patch.
module/Jobs/src/View/Helper/JsonLd.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@
 block discarded – undo
64 64
         );
65 65
 
66 66
         return '<script type="application/ld+json">'
67
-               . $jsonLdProvider->toJsonLd()
68
-               . '</script>';
67
+                . $jsonLdProvider->toJsonLd()
68
+                . '</script>';
69 69
     }
70 70
 
71 71
     /**
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/View/Helper/JsonLdTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     /** @var string|JsonLd */
37 37
     private $target = JsonLd::class;
38 38
 
39
-    private $inheritance = [ AbstractHelper::class ];
39
+    private $inheritance = [AbstractHelper::class];
40 40
 
41 41
     public function propertiesProvider()
42 42
     {
Please login to merge, or discard this patch.
module/Applications/src/Mail/StatusChange.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,11 +131,11 @@
 block discarded – undo
131 131
     protected function getApplicationLink()
132 132
     {
133 133
         $user = $this->application->getUser();
134
-        $token = $user instanceof AnonymousUser ? '?token=' . $user->getToken() : '';
134
+        $token = $user instanceof AnonymousUser ? '?token='.$user->getToken() : '';
135 135
         $href = $this->router->assemble(
136 136
             ['id' => $this->application->getId()],
137 137
             ['name' => 'lang/applications/detail', 'force_canonical' => true]
138
-        ) . $token;
138
+        ).$token;
139 139
 
140 140
         return $href;
141 141
     }
Please login to merge, or discard this patch.