@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | private $target = MetaDataHydrator::class; |
37 | 37 | |
38 | - private $inheritance = [ HydratorInterface::class ]; |
|
38 | + private $inheritance = [HydratorInterface::class]; |
|
39 | 39 | |
40 | 40 | public function testExtractionOfNonMetaDataProvider() |
41 | 41 | { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $labeldContainer = new Container(); |
42 | 42 | $labeldContainer->setLabel('testLabel'); |
43 | 43 | $topContainer = new Container(); |
44 | - $topContainer->setForm('child', [ '__instance__' => $object ]) |
|
44 | + $topContainer->setForm('child', ['__instance__' => $object]) |
|
45 | 45 | ->setLabel('top'); |
46 | 46 | |
47 | 47 | return [ |
@@ -49,85 +49,85 @@ discard block |
||
49 | 49 | 'default' => [ '/assets/twitter-bootstrap-wizard/jquery.bootstrap.wizard.js' ], |
50 | 50 | 'value' => [ 'test/scripts' ], |
51 | 51 | ]],*/ |
52 | - [ 'Form', [ |
|
52 | + ['Form', [ |
|
53 | 53 | 'value' => 'test', |
54 | - 'setter_args' => [ $object ], |
|
55 | - 'setter_exception' => [ '\InvalidArgumentException', 'Tab container must be of the type' ], |
|
54 | + 'setter_args' => [$object], |
|
55 | + 'setter_exception' => ['\InvalidArgumentException', 'Tab container must be of the type'], |
|
56 | 56 | ]], |
57 | - [ 'Form', [ |
|
57 | + ['Form', [ |
|
58 | 58 | 'value' => 'test', |
59 | - 'setter_args' => [ $container ], |
|
60 | - 'setter_exception' => [ '\InvalidArgumentException', 'Container instances must have a label' ], |
|
59 | + 'setter_args' => [$container], |
|
60 | + 'setter_exception' => ['\InvalidArgumentException', 'Container instances must have a label'], |
|
61 | 61 | ]], |
62 | - [ 'Form', [ |
|
62 | + ['Form', [ |
|
63 | 63 | 'value' => 'test', |
64 | - 'setter_args' => [ $labeldContainer ], |
|
65 | - 'getter_args' => [ 'test', true ], |
|
64 | + 'setter_args' => [$labeldContainer], |
|
65 | + 'getter_args' => ['test', true], |
|
66 | 66 | 'expect' => $labeldContainer, |
67 | 67 | ]], |
68 | - [ 'Form', [ |
|
68 | + ['Form', [ |
|
69 | 69 | 'value' => 'test', |
70 | - 'setter_args' => [ 'Test/Container' ], |
|
71 | - 'getter_args' => [ 'test', /*asInstance*/ false ], |
|
70 | + 'setter_args' => ['Test/Container'], |
|
71 | + 'getter_args' => ['test', /*asInstance*/ false], |
|
72 | 72 | 'expect' => [ |
73 | 73 | 'type' => 'Test/Container', |
74 | 74 | 'name' => 'test', |
75 | 75 | 'entity' => '*', |
76 | 76 | ], |
77 | 77 | ]], |
78 | - [ 'Form', [ |
|
78 | + ['Form', [ |
|
79 | 79 | 'value' => 'test', |
80 | - 'setter_args' => [ [ 'type' => 'Test/Container' ] ], |
|
81 | - 'getter_args' => [ 'test', false ], |
|
80 | + 'setter_args' => [['type' => 'Test/Container']], |
|
81 | + 'getter_args' => ['test', false], |
|
82 | 82 | 'expect' => [ |
83 | 83 | 'type' => 'Test/Container', |
84 | 84 | 'name' => 'test', |
85 | 85 | 'entity' => '*', |
86 | 86 | ], |
87 | 87 | ]], |
88 | - [ 'Form', [ |
|
88 | + ['Form', [ |
|
89 | 89 | 'value' => 'test', |
90 | - 'setter_args' => [ [ ] ], |
|
91 | - 'getter_args' => [ 'test', false ], |
|
90 | + 'setter_args' => [[]], |
|
91 | + 'getter_args' => ['test', false], |
|
92 | 92 | 'expect' => [ |
93 | 93 | 'type' => 'Core/Container', |
94 | 94 | 'name' => 'test', |
95 | 95 | 'entity' => '*', |
96 | 96 | ], |
97 | 97 | ]], |
98 | - [ 'Form', [ |
|
98 | + ['Form', [ |
|
99 | 99 | 'value' => 'test', |
100 | - 'setter_args' => [ [ 'forms' => [] ] ], |
|
101 | - 'getter_args' => [ 'test', false ], |
|
100 | + 'setter_args' => [['forms' => []]], |
|
101 | + 'getter_args' => ['test', false], |
|
102 | 102 | 'expect' => [ |
103 | 103 | 'type' => 'Core/Container', |
104 | 104 | 'name' => 'test', |
105 | - 'options' => [ 'forms' => [] ], |
|
105 | + 'options' => ['forms' => []], |
|
106 | 106 | 'entity' => '*', |
107 | 107 | ] |
108 | 108 | ]], |
109 | - [ 'Form', [ |
|
109 | + ['Form', [ |
|
110 | 110 | 'value' => 'test', |
111 | - 'setter_args' => [ [ '__instance__' => $object ] ], |
|
112 | - 'getter_args' => [ 'test' ], |
|
111 | + 'setter_args' => [['__instance__' => $object]], |
|
112 | + 'getter_args' => ['test'], |
|
113 | 113 | 'getter_exception' => '\UnexpectedValueException' |
114 | 114 | ]], |
115 | - [ 'Form', [ |
|
115 | + ['Form', [ |
|
116 | 116 | 'value' => 'test', |
117 | - 'setter_args' => [ [ '__instance__' => $container ] ], |
|
118 | - 'getter_args' => [ 'test' ], |
|
117 | + 'setter_args' => [['__instance__' => $container]], |
|
118 | + 'getter_args' => ['test'], |
|
119 | 119 | 'getter_exception' => '\UnexpectedValueException' |
120 | 120 | ]], |
121 | - [ 'Form', [ |
|
121 | + ['Form', [ |
|
122 | 122 | 'value' => 'test', |
123 | - 'setter_args' => [ [ '__instance__' => $labeldContainer ] ], |
|
124 | - 'getter_args' => [ 'test' ], |
|
123 | + 'setter_args' => [['__instance__' => $labeldContainer]], |
|
124 | + 'getter_args' => ['test'], |
|
125 | 125 | 'expect' => $labeldContainer |
126 | 126 | ]], |
127 | - [ 'Form', [ |
|
127 | + ['Form', [ |
|
128 | 128 | 'value' => 'test', |
129 | - 'setter_args' => [ [ '__instance__' => $topContainer ] ], |
|
130 | - 'getter_args' => [ 'test.child' ], |
|
129 | + 'setter_args' => [['__instance__' => $topContainer]], |
|
130 | + 'getter_args' => ['test.child'], |
|
131 | 131 | 'expect' => $object |
132 | 132 | ]], |
133 | 133 |
@@ -106,7 +106,7 @@ |
||
106 | 106 | [ |
107 | 107 | [ |
108 | 108 | 0 => ['name' => 'test', 'options' => ['opt' => 'value', 'label' => 'Overridden']], |
109 | - 1 => [ 't' => 'y', 'test' => 'AlsoOverridden'] |
|
109 | + 1 => ['t' => 'y', 'test' => 'AlsoOverridden'] |
|
110 | 110 | ] |
111 | 111 | ], |
112 | 112 | $this->target->addCalledWithArgs |
@@ -32,14 +32,14 @@ |
||
32 | 32 | |
33 | 33 | private $target = ManagementForm::class; |
34 | 34 | |
35 | - private $inheritance = [ SummaryForm::class, HeadscriptProviderInterface::class ]; |
|
35 | + private $inheritance = [SummaryForm::class, HeadscriptProviderInterface::class]; |
|
36 | 36 | |
37 | 37 | private $attributes = [ |
38 | 38 | 'baseFieldset' => 'Core/Tree/ManagementFieldset', |
39 | - 'attributes' => [ 'method' => 'POST', 'class' => 'yk-tree-management-form' ], |
|
39 | + 'attributes' => ['method' => 'POST', 'class' => 'yk-tree-management-form'], |
|
40 | 40 | ]; |
41 | 41 | |
42 | 42 | private $properties = [ |
43 | - [ 'headscripts', ['value' => ['testHeadScript'], 'default' => [ 'modules/Core/js/html.sortable.min.js', 'modules/Core/js/forms.tree-management.js' ]] ] |
|
43 | + ['headscripts', ['value' => ['testHeadScript'], 'default' => ['modules/Core/js/html.sortable.min.js', 'modules/Core/js/forms.tree-management.js']]] |
|
44 | 44 | ]; |
45 | 45 | } |
@@ -40,12 +40,12 @@ |
||
40 | 40 | */ |
41 | 41 | private $target = [ |
42 | 42 | ManagementFieldset::class, |
43 | - '@testInitialize' => [ 'mock' => ['add'] ], |
|
43 | + '@testInitialize' => ['mock' => ['add']], |
|
44 | 44 | ]; |
45 | 45 | |
46 | - private $inheritance = [ Fieldset::class, ViewPartialProviderInterface::class ]; |
|
46 | + private $inheritance = [Fieldset::class, ViewPartialProviderInterface::class]; |
|
47 | 47 | |
48 | - private $traits = [ ViewPartialProviderTrait::class ]; |
|
48 | + private $traits = [ViewPartialProviderTrait::class]; |
|
49 | 49 | |
50 | 50 | private $attributes = [ |
51 | 51 | 'defaultPartial' => 'core/form/tree-manage', |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | private $target = Select::class; |
34 | 34 | |
35 | - private $inheritance = [ ZfSelect::class, HydratorStrategyProviderInterface::class ]; |
|
35 | + private $inheritance = [ZfSelect::class, HydratorStrategyProviderInterface::class]; |
|
36 | 36 | |
37 | - private $traits = [ HydratorStrategyProviderTrait::class ]; |
|
37 | + private $traits = [HydratorStrategyProviderTrait::class]; |
|
38 | 38 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | '@testInitializesItself' => 'setupMock' |
38 | 38 | ]; |
39 | 39 | |
40 | - private $inheritance = [ Fieldset::class, ViewPartialProviderInterface::class, InputFilterProviderInterface::class]; |
|
40 | + private $inheritance = [Fieldset::class, ViewPartialProviderInterface::class, InputFilterProviderInterface::class]; |
|
41 | 41 | |
42 | 42 | private $traits = [ViewPartialProviderTrait::class]; |
43 | 43 | |
@@ -77,13 +77,13 @@ discard block |
||
77 | 77 | 'name' => [ |
78 | 78 | 'required' => true, |
79 | 79 | 'filters' => [ |
80 | - [ 'name' => 'StringTrim' ], |
|
80 | + ['name' => 'StringTrim'], |
|
81 | 81 | ], |
82 | 82 | ], |
83 | 83 | 'value' => [ |
84 | 84 | 'required' => false, |
85 | 85 | 'filters' => [ |
86 | - [ 'name' => 'StringTrim' ], |
|
86 | + ['name' => 'StringTrim'], |
|
87 | 87 | ], |
88 | 88 | ], |
89 | 89 | ]; |
@@ -38,7 +38,7 @@ |
||
38 | 38 | '@testConstruction' => false, |
39 | 39 | ]; |
40 | 40 | |
41 | - private $inheritance = [ AbstractHelper::class ]; |
|
41 | + private $inheritance = [AbstractHelper::class]; |
|
42 | 42 | |
43 | 43 | private function getTargetArgs() |
44 | 44 | { |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * @throws \Exception |
93 | 93 | * @dataProvider getTestClearCache |
94 | 94 | */ |
95 | - public function testClearCache($cacheDir, $expectThrow=false, $message='Test Cache Directory') |
|
95 | + public function testClearCache($cacheDir, $expectThrow = false, $message = 'Test Cache Directory') |
|
96 | 96 | { |
97 | 97 | $options = $this->getMockBuilder(ListenerOptions::class) |
98 | 98 | ->disableOriginalConstructor() |
@@ -115,9 +115,9 @@ discard block |
||
115 | 115 | { |
116 | 116 | $cacheDir = sys_get_temp_dir().'/yawik/test-cache'; |
117 | 117 | return [ |
118 | - [null,true,'Test with null cache directory'], |
|
119 | - [sys_get_temp_dir().'/foo',true,'Test with non existent directory'], |
|
120 | - [$cacheDir,false,'Test with valid cache directory'] |
|
118 | + [null, true, 'Test with null cache directory'], |
|
119 | + [sys_get_temp_dir().'/foo', true, 'Test with non existent directory'], |
|
120 | + [$cacheDir, false, 'Test with valid cache directory'] |
|
121 | 121 | ]; |
122 | 122 | } |
123 | 123 |