Passed
Pull Request — master (#580)
by ANTHONIUS
10:05
created
module/Auth/src/Auth/Controller/Plugin/OAuth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
                 $hybridAuth->restoreSessionData($sessionDataStored);
136 136
             }
137 137
             $adapter = $hybridAuth->authenticate($this->providerKey);
138
-            $sessionData    = $hybridAuth->getSessionData();
138
+            $sessionData = $hybridAuth->getSessionData();
139 139
             if ($sessionData != $sessionDataStored) {
140 140
                 $user->updateAuthSession($this->providerKey, $sessionData);
141 141
             }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Entity/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
     /** {@inheritdoc} */
178 178
     public function setLogin($login)
179 179
     {
180
-        $this->login = trim((String)$login);
180
+        $this->login = trim((String) $login);
181 181
         return $this;
182 182
     }
183 183
 
Please login to merge, or discard this patch.
module/Install/src/Validator/MongoDbConnectionString.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  */
22 22
 class MongoDbConnectionString extends AbstractValidator
23 23
 {
24
-    const INVALID       = 'invalidConnectionString';
24
+    const INVALID = 'invalidConnectionString';
25 25
 
26 26
     /**
27 27
      * Options
Please login to merge, or discard this patch.
module/Auth/src/Auth/Options/ModuleOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      *
62 62
      * @var array()
63 63
      */
64
-    protected $enableLogins = ['facebook','xing','linkedin','google','github'];
64
+    protected $enableLogins = ['facebook', 'xing', 'linkedin', 'google', 'github'];
65 65
 
66 66
     /**
67 67
      * Enable Registration
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Options/ModuleOptionsTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function testSetGetAttachmentsMimeType()
43 43
     {
44
-        $mime=array('image','text/plain');
44
+        $mime = array('image', 'text/plain');
45 45
 
46 46
         $this->options->setAttachmentsMimeType($mime);
47 47
         $this->assertEquals($mime, $this->options->getAttachmentsMimeType());
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function testSetGetContactImageMimeType()
65 65
     {
66
-        $mime=array('image');
66
+        $mime = array('image');
67 67
 
68 68
         $this->options->setContactImageMimeType($mime);
69 69
         $this->assertEquals($mime, $this->options->getContactImageMimeType());
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function testSetGetContactImageMaxSize()
77 77
     {
78
-        $size=765432;
78
+        $size = 765432;
79 79
 
80 80
         $this->options->setContactImageMaxSize($size);
81 81
         $this->assertEquals($size, $this->options->getContactImageMaxSize());
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function testSetGetAllowedMimeTypes()
89 89
     {
90
-        $mime=array('image','application/pdf');
90
+        $mime = array('image', 'application/pdf');
91 91
 
92 92
         $this->options->setAllowedMimeTypes($mime);
93 93
         $this->assertEquals($mime, $this->options->getAllowedMimeTypes());
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Options/ModuleOptionsTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function testSetGetRole()
41 41
     {
42
-        $input='user';
42
+        $input = 'user';
43 43
         $this->options->setRole($input);
44 44
         $this->assertEquals($input, $this->options->getRole());
45 45
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function testSetGetFromName()
52 52
     {
53
-        $input='Thomas Müller';
53
+        $input = 'Thomas Müller';
54 54
         $this->options->setFromName($input);
55 55
         $this->assertEquals($input, $this->options->getFromName());
56 56
     }
@@ -96,16 +96,16 @@  discard block
 block discarded – undo
96 96
         return array(
97 97
             array('setEnableRegistration', 'getEnableRegistration', false),
98 98
             array('setEnableRegistration', 'getEnableRegistration', true),
99
-            array(null,'getEnableRegistration', true),
99
+            array(null, 'getEnableRegistration', true),
100 100
             array('setEnableResetPassword', 'getEnableResetPassword', false),
101 101
             array('setEnableResetPassword', 'getEnableResetPassword', true),
102
-            array(null,'getEnableRegistration', true),
102
+            array(null, 'getEnableRegistration', true),
103 103
             array('setFromEmail', 'getFromEmail', '[email protected]'),
104
-            array(null,'getFromEmail', '[email protected]'),
104
+            array(null, 'getFromEmail', '[email protected]'),
105 105
             array('setAuthSuffix', 'getAuthSuffix', '[email protected]'),
106
-            array(null,'getAuthSuffix', ''),
106
+            array(null, 'getAuthSuffix', ''),
107 107
             array('setMailSubjectRegistration', 'getMailSubjectRegistration', 'Mail Subject'),
108
-            array(null,'getMailSubjectRegistration', 'Welcome to YAWIK'),
108
+            array(null, 'getMailSubjectRegistration', 'Welcome to YAWIK'),
109 109
         );
110 110
     }
111 111
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function testSetGetEnableLogins()
117 117
     {
118
-        $input=['xing','linkedin'];
118
+        $input = ['xing', 'linkedin'];
119 119
         $this->options->setEnableLogins($input);
120 120
         $this->assertEquals($input, $this->options->getEnableLogins());
121 121
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/Hydrator/TemplateValuesHydratorTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function testFreeValuesKeysCanBeSetThroughConstructor()
42 42
     {
43
-        $keys = [ 'key1', 'key2' ];
43
+        $keys = ['key1', 'key2'];
44 44
         $target = new TemplateValuesHydrator($keys);
45 45
 
46 46
         $this->assertAttributeEquals($keys, 'freeValuesKeys', $target);
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     public function testSetAndGetFreeValuesKeys()
53 53
     {
54 54
         $target = new TemplateValuesHydrator();
55
-        $keys = [ 'key1', 'key2' ];
55
+        $keys = ['key1', 'key2'];
56 56
 
57 57
         $this->assertSame($target, $target->setFreeValuesKeys($keys), 'Fluent interface broken.');
58 58
         $this->assertEquals($keys, $target->getFreeValuesKeys());
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $values->freeKey1 = 'value1';
68 68
         $values->ignoredKey = 'irrelephant';
69 69
 
70
-        $target = new TemplateValuesHydrator([ 'freeKey1' ]);
70
+        $target = new TemplateValuesHydrator(['freeKey1']);
71 71
 
72 72
         $data = $target->extract($values);
73 73
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     public function testHydrate()
83 83
     {
84 84
         $values = new TemplateValues();
85
-        $target = new TemplateValuesHydrator([ 'testKeyOne' ]);
85
+        $target = new TemplateValuesHydrator(['testKeyOne']);
86 86
         $data = [
87 87
             'testKeyOne' => 'testValue',
88 88
             'ignoredKey' => 'irrelevant'
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/Provider/JobEntityProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         extract($params);
49 49
 
50 50
         if (!empty($createOrganization)) {
51
-            $organization = OrganizationEntityProvider::createEntityWithRandomData((array)$createOrganization);
51
+            $organization = OrganizationEntityProvider::createEntityWithRandomData((array) $createOrganization);
52 52
         }
53 53
 
54 54
         return array_merge($params, compact('organization'));
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Options/ModuleOptionsTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function testSetGetMultipostingApprovalMail()
33 33
     {
34
-        $mail="[email protected]";
34
+        $mail = "[email protected]";
35 35
 
36 36
         $this->options->setMultipostingApprovalMail($mail);
37 37
         $this->assertEquals($mail, $this->options->getMultipostingApprovalMail());
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function testSetGetDefaultLogo()
45 45
     {
46
-        $image="image.png";
46
+        $image = "image.png";
47 47
 
48 48
         $this->options->setDefaultLogo($image);
49 49
         $this->assertEquals($image, $this->options->getDefaultLogo());
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function testSetGetMultipostingTargetUri()
57 57
     {
58
-        $uri="http://test.de/uri";
58
+        $uri = "http://test.de/uri";
59 59
         $this->options->setMultipostingTargetUri($uri);
60 60
         $this->assertEquals($uri, $this->options->getMultipostingTargetUri());
61 61
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function testSetGetCompanyLogoMaxSize()
68 68
     {
69
-        $size='1234';
69
+        $size = '1234';
70 70
 
71 71
         $this->options->setCompanyLogoMaxSize($size);
72 72
         $this->assertEquals($size, $this->options->getCompanyLogoMaxSize());
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function testSetGetCompanyLogoMimeType()
80 80
     {
81
-        $mime=array("text/plain");
81
+        $mime = array("text/plain");
82 82
 
83 83
         $this->options->setCompanyLogoMimeType($mime);
84 84
         $this->assertEquals($mime, $this->options->getCompanyLogoMimeType());
Please login to merge, or discard this patch.