@@ -58,7 +58,7 @@ |
||
58 | 58 | // ), |
59 | 59 | // ) |
60 | 60 | |
61 | - // Initial configuration with which to seed the ServiceManager. |
|
62 | - // Should be compatible with Zend\ServiceManager\Config. |
|
63 | - // 'service_manager' => array(), |
|
61 | + // Initial configuration with which to seed the ServiceManager. |
|
62 | + // Should be compatible with Zend\ServiceManager\Config. |
|
63 | + // 'service_manager' => array(), |
|
64 | 64 | ); |
65 | 65 | \ No newline at end of file |
@@ -44,7 +44,7 @@ |
||
44 | 44 | 'data-placeholder' => 'Location', |
45 | 45 | 'data-autoinit' => false, |
46 | 46 | 'class' => 'geoselect', |
47 | - 'data-clear-on-reset' => true |
|
47 | + 'data-clear-on-reset' => true |
|
48 | 48 | ]], |
49 | 49 | 'count' => 1 |
50 | 50 | ], |
@@ -52,13 +52,13 @@ discard block |
||
52 | 52 | ], |
53 | 53 | ]; |
54 | 54 | |
55 | - private $inheritance = [ Select::class, HeadscriptProviderInterface::class, HydratorStrategyProviderInterface::class ]; |
|
55 | + private $inheritance = [Select::class, HeadscriptProviderInterface::class, HydratorStrategyProviderInterface::class]; |
|
56 | 56 | |
57 | - private $traits = [ HydratorStrategyProviderTrait::class ]; |
|
57 | + private $traits = [HydratorStrategyProviderTrait::class]; |
|
58 | 58 | |
59 | 59 | private $attributes = [ |
60 | 60 | 'disableInArrayValidator' => true, |
61 | - 'headscripts' => [ 'modules/Geo/js/geoselect.js' ], |
|
61 | + 'headscripts' => ['modules/Geo/js/geoselect.js'], |
|
62 | 62 | ]; |
63 | 63 | |
64 | 64 | public function propertiesProvider() |
@@ -66,13 +66,13 @@ discard block |
||
66 | 66 | return [ |
67 | 67 | ['value', [ |
68 | 68 | 'value' => 'value', |
69 | - 'post' => function () { |
|
69 | + 'post' => function() { |
|
70 | 70 | $this->assertEquals('value', $this->target->getAttribute('data-val')); |
71 | 71 | }, |
72 | 72 | ]], |
73 | 73 | ['value', [ |
74 | 74 | 'value' => ['one', 'two'], |
75 | - 'post' => function () { |
|
75 | + 'post' => function() { |
|
76 | 76 | $this->assertEquals(Json::encode(['one', 'two']), $this->target->getAttribute('data-val')); |
77 | 77 | }, |
78 | 78 | ]], |
@@ -103,8 +103,8 @@ |
||
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()); |
@@ -38,7 +38,7 @@ discard block |
||
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 |
||
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 |
@@ -30,7 +30,7 @@ |
||
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', |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * |
51 | 51 | * @var array |
52 | 52 | */ |
53 | - private $inheritance = [ AbstractActionController::class ]; |
|
53 | + private $inheritance = [AbstractActionController::class]; |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * |
@@ -37,10 +37,10 @@ |
||
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() |
@@ -41,12 +41,12 @@ |
||
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() |
@@ -26,7 +26,7 @@ |
||
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'], |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | private $target = Language::class; |
36 | 36 | |
37 | - private $inheritance = [ AbstractIdentifiableEntity::class , LanguageInterface::class ]; |
|
37 | + private $inheritance = [AbstractIdentifiableEntity::class, LanguageInterface::class]; |
|
38 | 38 | |
39 | 39 | private $properties = [ |
40 | 40 | ['language', 'English'], |