@@ -28,19 +28,19 @@ |
||
28 | 28 | |
29 | 29 | protected $target = Skill::class; |
30 | 30 | |
31 | - protected $inheritance = [ '\Core\Entity\AbstractIdentifiableEntity' ]; |
|
31 | + protected $inheritance = ['\Core\Entity\AbstractIdentifiableEntity']; |
|
32 | 32 | |
33 | 33 | public function propertiesProvider() |
34 | 34 | { |
35 | 35 | $options = [ |
36 | - 'default' => '@' . ArrayCollection::class, |
|
36 | + 'default' => '@'.ArrayCollection::class, |
|
37 | 37 | 'value' => new ArrayCollection(), |
38 | 38 | ]; |
39 | 39 | |
40 | 40 | return [ |
41 | - [ 'nativeLanguages', $options ], |
|
42 | - [ 'languageSkills', $options ], |
|
43 | - [ 'computerSkills', $options ], |
|
41 | + ['nativeLanguages', $options], |
|
42 | + ['languageSkills', $options], |
|
43 | + ['computerSkills', $options], |
|
44 | 44 | ]; |
45 | 45 | } |
46 | 46 | } |
@@ -29,14 +29,14 @@ |
||
29 | 29 | |
30 | 30 | private $target = ModuleOptions::class; |
31 | 31 | |
32 | - private $inheritance = [ AbstractOptions::class ]; |
|
32 | + private $inheritance = [AbstractOptions::class]; |
|
33 | 33 | |
34 | 34 | private $properties = [ |
35 | - ['attachmentsMaxSize', ['value' => '1234', 'default' => 5000000] ], |
|
35 | + ['attachmentsMaxSize', ['value' => '1234', 'default' => 5000000]], |
|
36 | 36 | ['attachmentsMimeType', [ |
37 | 37 | 'value' => ['mime/type'], |
38 | 38 | 'default' => [ |
39 | - 'image','applications/pdf', |
|
39 | + 'image', 'applications/pdf', |
|
40 | 40 | 'application/x-pdf', |
41 | 41 | 'application/acrobat', |
42 | 42 | 'applications/vnd.pdf', |
@@ -152,17 +152,17 @@ |
||
152 | 152 | 'mock' => [ |
153 | 153 | 'add', |
154 | 154 | 'setName' => ['with' => 'nativeLanguages', 'count' => 1, 'return' => '__self__'], |
155 | - 'setHydrator' => ['@with' => ['isInstanceOf', EntityHydrator::class ], 'count' => 1, 'return' => '__self__'], |
|
156 | - 'setObject' => ['@with' => ['isInstanceOf', NativeLanguage::class ], 'count' => 1, 'return' => '__self__'], |
|
155 | + 'setHydrator' => ['@with' => ['isInstanceOf', EntityHydrator::class], 'count' => 1, 'return' => '__self__'], |
|
156 | + 'setObject' => ['@with' => ['isInstanceOf', NativeLanguage::class], 'count' => 1, 'return' => '__self__'], |
|
157 | 157 | 'setLabel' => ['with' => 'Native Language', 'count' => 1] |
158 | 158 | ], |
159 | 159 | 'args' => false, |
160 | 160 | ], |
161 | 161 | ]; |
162 | 162 | |
163 | - private $inheritance = [ Fieldset::class, EmptySummaryAwareInterface::class ]; |
|
163 | + private $inheritance = [Fieldset::class, EmptySummaryAwareInterface::class]; |
|
164 | 164 | |
165 | - private $traits = [ EmptySummaryAwareTrait::class ]; |
|
165 | + private $traits = [EmptySummaryAwareTrait::class]; |
|
166 | 166 | |
167 | 167 | private function getDefaultAttributes() |
168 | 168 | { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | ], |
46 | 46 | ]; |
47 | 47 | |
48 | - private $inheritance = [ SummaryForm::class ]; |
|
48 | + private $inheritance = [SummaryForm::class]; |
|
49 | 49 | |
50 | 50 | private $attributes = [ |
51 | 51 | 'baseFieldset' => 'EmploymentFieldset', |
@@ -45,7 +45,7 @@ |
||
45 | 45 | ], |
46 | 46 | ]; |
47 | 47 | |
48 | - private $inheritance = [ SummaryForm::class ]; |
|
48 | + private $inheritance = [SummaryForm::class]; |
|
49 | 49 | |
50 | 50 | private $attributes = [ |
51 | 51 | 'baseFieldset' => 'EducationFieldset', |
@@ -45,7 +45,7 @@ |
||
45 | 45 | ], |
46 | 46 | ]; |
47 | 47 | |
48 | - private $inheritance = [ SummaryForm::class ]; |
|
48 | + private $inheritance = [SummaryForm::class]; |
|
49 | 49 | |
50 | 50 | private $attributes = [ |
51 | 51 | 'baseFieldset' => 'Cv/LanguageSkillFieldset', |
@@ -43,7 +43,7 @@ |
||
43 | 43 | 'mock' => ['setName' => ['with' => 'cv-form', 'count' => 1], 'setForms'], |
44 | 44 | ], |
45 | 45 | '@testSetsIdParamWhenEntityIsSet' => [ |
46 | - 'mock' => [ 'setParam' ], |
|
46 | + 'mock' => ['setParam'], |
|
47 | 47 | ], |
48 | 48 | ]; |
49 | 49 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | 'mock' => [ |
37 | 37 | 'setName' => ['with' => 'skill', 'count' => 1, 'return' => '__self__'], |
38 | 38 | 'setLabel' => ['with' => 'Languages', 'count' => 1, 'return' => '__self__'], |
39 | - 'setObject' => [ '@with' => ['isInstanceOf', Skill::class], 'count' => 1], |
|
39 | + 'setObject' => ['@with' => ['isInstanceOf', Skill::class], 'count' => 1], |
|
40 | 40 | 'add' |
41 | 41 | ], |
42 | 42 | ], |
@@ -39,15 +39,15 @@ discard block |
||
39 | 39 | 'mock' => [ |
40 | 40 | 'add', |
41 | 41 | 'setName' => ['with' => 'language', 'count' => 1, 'return' => '__self__'], |
42 | - 'setHydrator' => ['@with' => ['isInstanceOf', EntityHydrator::class ], 'count' => 1, 'return' => '__self__'], |
|
43 | - 'setObject' => ['@with' => ['isInstanceOf', Language::class ], 'count' => 1, 'return' => '__self__'], |
|
42 | + 'setHydrator' => ['@with' => ['isInstanceOf', EntityHydrator::class], 'count' => 1, 'return' => '__self__'], |
|
43 | + 'setObject' => ['@with' => ['isInstanceOf', Language::class], 'count' => 1, 'return' => '__self__'], |
|
44 | 44 | 'setLabel' => ['with' => 'Language', 'count' => 1] |
45 | 45 | ], |
46 | 46 | 'args' => false, |
47 | 47 | ], |
48 | 48 | ]; |
49 | 49 | |
50 | - private $inheritance = [ Fieldset::class ]; |
|
50 | + private $inheritance = [Fieldset::class]; |
|
51 | 51 | |
52 | 52 | public function testInitializesItself() |
53 | 53 | { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | $callCount = count($add); |
106 | 106 | |
107 | - $arrayContainsPairs = function ($expected, $actual) use (&$arrayContainsPairs) { |
|
107 | + $arrayContainsPairs = function($expected, $actual) use (&$arrayContainsPairs) { |
|
108 | 108 | foreach ($expected as $key => $value) { |
109 | 109 | if (!array_key_exists($key, $actual)) { |
110 | 110 | return false; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | }; |
120 | 120 | |
121 | 121 | |
122 | - $addArgValidator = function ($arg) use ($add, $callCount, $arrayContainsPairs) { |
|
122 | + $addArgValidator = function($arg) use ($add, $callCount, $arrayContainsPairs) { |
|
123 | 123 | static $count = 0; |
124 | 124 | |
125 | 125 | /* PPHUnit calls this callback again after all invokations are made |