Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
module/Core/test/CoreTestUtils/TestCase/TestUsesTraitsTrait.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         if (!property_exists($this, 'traits') || !property_exists($this, 'target')) {
37 37
             throw new \PHPUnit_Framework_Exception(self::class . ': ' . static::class
38
-                                                   . ' must define the properties $target and $traits.');
38
+                                                    . ' must define the properties $target and $traits.');
39 39
         }
40 40
 
41 41
         $this->assertUsesTraits($this->traits, $this->target);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function testUsesTraits()
35 35
     {
36 36
         if (!property_exists($this, 'traits') || !property_exists($this, 'target')) {
37
-            throw new \PHPUnit_Framework_Exception(self::class . ': ' . static::class
37
+            throw new \PHPUnit_Framework_Exception(self::class.': '.static::class
38 38
                                                    . ' must define the properties $target and $traits.');
39 39
         }
40 40
 
Please login to merge, or discard this patch.
module/Core/test/CoreTestUtils/TestCase/TestInheritanceTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,18 +40,18 @@
 block discarded – undo
40 40
      */
41 41
     public function testInheritance()
42 42
     {
43
-        $errTmpl = __TRAIT__ . ': ' . get_class($this);
43
+        $errTmpl = __TRAIT__.': '.get_class($this);
44 44
 
45 45
         if (!property_exists($this, 'inheritance') || !property_exists($this, 'target')) {
46
-            throw new \PHPUnit_Framework_Exception($errTmpl . ' must define the properties "$inheritance" and "$target"');
46
+            throw new \PHPUnit_Framework_Exception($errTmpl.' must define the properties "$inheritance" and "$target"');
47 47
         }
48 48
 
49 49
         if (!is_array($this->inheritance)) {
50
-            throw new \PHPUnit_Framework_Exception($errTmpl . ': Property $inheritance must be an array');
50
+            throw new \PHPUnit_Framework_Exception($errTmpl.': Property $inheritance must be an array');
51 51
         }
52 52
 
53 53
         if (!is_object($this->target)) {
54
-            throw new \PHPUnit_Framework_Exception($errTmpl . ': Property $target must be an object');
54
+            throw new \PHPUnit_Framework_Exception($errTmpl.': Property $target must be an object');
55 55
         }
56 56
 
57 57
         $this->assertInheritance($this->inheritance, $this->target);
Please login to merge, or discard this patch.
module/Core/src/Module.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
             // assets-install info
98 98
             'assets-install [--symlink] [--relative] <target>' => 'Install assets in the given target',
99 99
             'The assets-install command will install assets in the given <target> directory. If no option given this command will copy assets into the target.',
100
-            ['--symlink','This option will install assets using absolute symlink directory'],
101
-            ['--relative','This option will install assets using relative symlink'],
100
+            ['--symlink', 'This option will install assets using absolute symlink directory'],
101
+            ['--relative', 'This option will install assets using relative symlink'],
102 102
             ""
103 103
         ];
104 104
     }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
         $eventManager->attach(
166 166
             MvcEvent::EVENT_DISPATCH_ERROR,
167
-            function ($event) {
167
+            function($event) {
168 168
                 if ($event instanceof MvcEvent) {
169 169
                     $application = $event->getApplication();
170 170
                     
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         );
181 181
         $eventManager->attach(
182 182
             MvcEvent::EVENT_DISPATCH,
183
-            function ($event) use ($eventManager) {
183
+            function($event) use ($eventManager) {
184 184
                 $eventManager->trigger('postDispatch', $event);
185 185
             },
186 186
             -150
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function getConfig()
198 198
     {
199
-        $config = include __DIR__ . '/../config/module.config.php';
199
+        $config = include __DIR__.'/../config/module.config.php';
200 200
         return $config;
201 201
     }
202 202
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     public function init(ModuleManager $manager)
207 207
     {
208 208
         $events = $manager->getEventManager();
209
-        $events->attach(ModuleEvent::EVENT_MERGE_CONFIG, [$this,'onMergeConfig']);
209
+        $events->attach(ModuleEvent::EVENT_MERGE_CONFIG, [$this, 'onMergeConfig']);
210 210
     }
211 211
 
212 212
     /**
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Factory/Form/AttachmentsFormFactoryTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,8 @@
 block discarded – undo
103 103
             ->getMockBuilder('\Core\Form\Form')
104 104
             ->disableOriginalConstructor()
105 105
             ->setMethods(['setIsDisableCapable', 'setIsDisableElementsCapable',
106
-                          'setIsDescriptionsEnabled', 'setDescription', 'setParam',
107
-                          'setLabel', 'get'])
106
+                            'setIsDescriptionsEnabled', 'setDescription', 'setParam',
107
+                            'setLabel', 'get'])
108 108
             ->getMock();
109 109
 
110 110
         $form->expects($this->once())->method('setIsDisableCapable')->with(false)->will($this->returnSelf());
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         '@testDefaultPropertyValues' => AttachmentsFormFactory::class,
39 39
     ];
40 40
 
41
-    private $inheritance = [ FileUploadFactory::class ];
41
+    private $inheritance = [FileUploadFactory::class];
42 42
 
43 43
     private $attributes = [
44 44
         'fileElement' => 'Core/FileUpload',
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
     public function provideTypes()
62 62
     {
63 63
         return [
64
-            [ null ],
65
-            [ ['text/plain'] ],
64
+            [null],
65
+            [['text/plain']],
66 66
         ];
67 67
     }
68 68
 
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Factory/Form/CvContactImageFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     private $target = CvContactImageFactory::class;
32 32
 
33
-    private $inheritance = [ UserImageFactory::class ];
33
+    private $inheritance = [UserImageFactory::class];
34 34
 
35 35
     private $attributes = [
36 36
         'fileEntityClass' => 'Cv\Entity\ContactImage',
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Controller/ViewControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      *
51 51
      * @var array
52 52
      */
53
-    private $inheritance = [ AbstractActionController::class ];
53
+    private $inheritance = [AbstractActionController::class];
54 54
 
55 55
     /**
56 56
      *
Please login to merge, or discard this patch.
Cv/test/CvTest/Repository/Event/DeleteRemovedAttachmentsSubscriberTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
 
38 38
     private $target = DeleteRemovedAttachmentsSubscriber::class;
39 39
 
40
-    private $inheritance = [ EventSubscriber::class ];
40
+    private $inheritance = [EventSubscriber::class];
41 41
 
42 42
     private $properties = [
43
-        ['subscribedEvents', ['default' => ['postRemoveEntity']] ]
43
+        ['subscribedEvents', ['default' => ['postRemoveEntity']]]
44 44
     ];
45 45
 
46 46
     public function testCallbackReturnsNullIfTargetIsNotAnAttachmentEntity()
Please login to merge, or discard this patch.
Cv/test/CvTest/Repository/Event/UpdateFilesPermissionsSubscriberTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
         '@testGetFilesAppendsContactImage' => UfpsMock::class,
42 42
     ];
43 43
 
44
-    private $inheritance = [ AbstractUpdateFilesPermissionsSubscriber::class ];
44
+    private $inheritance = [AbstractUpdateFilesPermissionsSubscriber::class];
45 45
 
46 46
     public function testDefaultAttributesValues()
47 47
     {
48 48
         $this->assertAttributeEquals(Cv::class, 'targetDocument', $this->target);
49
-        $this->assertAttributeEquals([ 'attachments' ], 'filesProperties', $this->target);
49
+        $this->assertAttributeEquals(['attachments'], 'filesProperties', $this->target);
50 50
     }
51 51
 
52 52
     public function testGetFilesAppendsContactImage()
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Entity/EmploymentTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
     private $target = Employment::class;
28 28
 
29
-    private $inheritance = [ 'Core\Entity\AbstractIdentifiableEntity' ];
29
+    private $inheritance = ['Core\Entity\AbstractIdentifiableEntity'];
30 30
 
31 31
     private $properties = [
32 32
         ['startDate', '01-01-2001'],
Please login to merge, or discard this patch.