@@ -45,22 +45,22 @@ |
||
45 | 45 | |
46 | 46 | |
47 | 47 | $callback = $this->getMockBuilder('\Laminas\Stdlib\CallbackHandler') |
48 | - ->disableOriginalConstructor() |
|
49 | - ->getMock(); |
|
48 | + ->disableOriginalConstructor() |
|
49 | + ->getMock(); |
|
50 | 50 | |
51 | 51 | $events = $this->getMockBuilder('\Laminas\EventManager\SharedEventManagerInterface') |
52 | - ->setMethods(array('attach')) |
|
53 | - ->getMockForAbstractClass(); |
|
52 | + ->setMethods(array('attach')) |
|
53 | + ->getMockForAbstractClass(); |
|
54 | 54 | |
55 | 55 | $events->expects($this->once()) |
56 | - ->method('attach') |
|
57 | - ->with($expId, $expEvent, $expCallback, $expPriority) |
|
58 | - ->willReturn($expCallback); |
|
56 | + ->method('attach') |
|
57 | + ->with($expId, $expEvent, $expCallback, $expPriority) |
|
58 | + ->willReturn($expCallback); |
|
59 | 59 | |
60 | 60 | $events->expects($this->once()) |
61 | - ->method('detach') |
|
62 | - ->with($expCallback, 'Laminas\Mvc\Application') |
|
63 | - ->willReturn(true); |
|
61 | + ->method('detach') |
|
62 | + ->with($expCallback, 'Laminas\Mvc\Application') |
|
63 | + ->willReturn(true); |
|
64 | 64 | |
65 | 65 | |
66 | 66 | $target->attachShared($events); |
@@ -83,20 +83,20 @@ discard block |
||
83 | 83 | $options = new CaptchaOptions(); |
84 | 84 | $options->setMode("reCaptcha"); |
85 | 85 | $testedObject = new Register(null, $options); |
86 | - $captchaInput= $testedObject->get('captcha'); |
|
86 | + $captchaInput = $testedObject->get('captcha'); |
|
87 | 87 | $this->assertInstanceOf('Laminas\Form\Element\Captcha', $captchaInput); |
88 | 88 | $this->assertInstanceOf('Laminas\Captcha\ReCaptcha', $captchaInput->getOption('captcha')); |
89 | 89 | } |
90 | 90 | |
91 | 91 | public function testWithImageField() |
92 | 92 | { |
93 | - if (! function_exists("imageftbbox")) { |
|
93 | + if (!function_exists("imageftbbox")) { |
|
94 | 94 | return $this->markTestSkipped('This test requires GD FT fonts support'); |
95 | 95 | } |
96 | 96 | $options = new CaptchaOptions(); |
97 | 97 | $options->setMode("image"); |
98 | 98 | $testedObject = new Register(null, $options); |
99 | - $captchaInput= $testedObject->get('captcha'); |
|
99 | + $captchaInput = $testedObject->get('captcha'); |
|
100 | 100 | $this->assertInstanceOf('Laminas\Captcha\Image', $captchaInput->getOption('captcha')); |
101 | 101 | } |
102 | 102 | |
@@ -105,6 +105,6 @@ discard block |
||
105 | 105 | $options = new CaptchaOptions(); |
106 | 106 | $testedObject = new Register(null, $options, 'user'); |
107 | 107 | $roleField = $testedObject->get('register')->get('role'); |
108 | - $this->assertTrue($roleField->getValue() =='user'); |
|
108 | + $this->assertTrue($roleField->getValue() == 'user'); |
|
109 | 109 | } |
110 | 110 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | // ), |
65 | 65 | // ) |
66 | 66 | |
67 | - // Initial configuration with which to seed the ServiceManager. |
|
68 | - // Should be compatible with Laminas\ServiceManager\Config. |
|
69 | - // 'service_manager' => array(), |
|
67 | + // Initial configuration with which to seed the ServiceManager. |
|
68 | + // Should be compatible with Laminas\ServiceManager\Config. |
|
69 | + // 'service_manager' => array(), |
|
70 | 70 | ); |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if (false === strpos($_SERVER['REQUEST_URI'], '.') |
4 | - || is_file($_SERVER['DOCUMENT_ROOT'] . '/' . $_SERVER['SCRIPT_NAME']) |
|
4 | + || is_file($_SERVER['DOCUMENT_ROOT'].'/'.$_SERVER['SCRIPT_NAME']) |
|
5 | 5 | ) { |
6 | 6 | return false; |
7 | 7 | } |
8 | 8 | |
9 | 9 | $_SERVER['SCRIPT_NAME'] = '/index.php'; |
10 | -require __DIR__ . "/index.php"; |
|
11 | 10 | \ No newline at end of file |
11 | +require __DIR__."/index.php"; |
|
12 | 12 | \ No newline at end of file |
@@ -38,18 +38,18 @@ |
||
38 | 38 | static::assertTrue(is_a(FormatLocation::class, AbstractHelper::class, true)); |
39 | 39 | } |
40 | 40 | |
41 | - private function getLocation($prefix='') |
|
41 | + private function getLocation($prefix = '') |
|
42 | 42 | { |
43 | 43 | $location = new class extends AbstractLocation implements LocationInterface |
44 | 44 | { }; |
45 | 45 | |
46 | - $location->setStreetname($prefix . 'TestStreet'); |
|
47 | - $location->setStreetnumber($prefix . '1234'); |
|
48 | - $location->setCity($prefix . 'TestCity'); |
|
49 | - $location->setCoordinates(new Point([1,1])); |
|
50 | - $location->setCountry($prefix . 'TestCountry'); |
|
51 | - $location->setPostalCode($prefix . 'ZipCode'); |
|
52 | - $location->setRegion($prefix . 'TestRegion'); |
|
46 | + $location->setStreetname($prefix.'TestStreet'); |
|
47 | + $location->setStreetnumber($prefix.'1234'); |
|
48 | + $location->setCity($prefix.'TestCity'); |
|
49 | + $location->setCoordinates(new Point([1, 1])); |
|
50 | + $location->setCountry($prefix.'TestCountry'); |
|
51 | + $location->setPostalCode($prefix.'ZipCode'); |
|
52 | + $location->setRegion($prefix.'TestRegion'); |
|
53 | 53 | |
54 | 54 | return $location; |
55 | 55 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * @filesource |
6 | 6 | * @copyright https://yawik.org/COPYRIGHT.php |
7 | 7 | * @license MIT |
8 | - */ |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Jobs\Factory\Form\Hydrator; |
11 | 11 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | ->willReturn($jobRepo); |
41 | 41 | $event->expects($this->exactly(2)) |
42 | 42 | ->method('getParam') |
43 | - ->withConsecutive(['days',80],['limit', 0]) |
|
43 | + ->withConsecutive(['days', 80], ['limit', 0]) |
|
44 | 44 | ->willReturnOnConsecutiveCalls(30, 10) |
45 | 45 | ; |
46 | 46 | |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | { |
66 | 66 | $title = 'Test Expired Job'; |
67 | 67 | $job = $repo->findOneBy(['title' => $title]); |
68 | - if(!$job instanceof Job){ |
|
69 | - $job = $repo->create(['title' => $title],true); |
|
68 | + if (!$job instanceof Job) { |
|
69 | + $job = $repo->create(['title' => $title], true); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | return $job; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | [ |
91 | 91 | 'application' => $this->application, |
92 | 92 | 'user' => $employee->getUser(), |
93 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
93 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
94 | 94 | ] |
95 | 95 | ); |
96 | 96 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | [ |
112 | 112 | 'application' => $this->application, |
113 | 113 | 'user' => $recruiter->getUser(), |
114 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
114 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
115 | 115 | ] |
116 | 116 | ); |
117 | 117 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | [ |
127 | 127 | 'job' => $this->application->getJob(), |
128 | 128 | 'user' => $recruiter, |
129 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
129 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
130 | 130 | ] |
131 | 131 | ); |
132 | 132 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | [ |
144 | 144 | 'application' => $this->application, |
145 | 145 | 'body' => $ackBody, |
146 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
146 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
147 | 147 | ] |
148 | 148 | ); |
149 | 149 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | { |
49 | 49 | if (!$this->hydrator) { |
50 | 50 | /* @var $formElementManager FormElementManagerV3Polyfill */ |
51 | - $hydrator = new EntityHydrator(); |
|
51 | + $hydrator = new EntityHydrator(); |
|
52 | 52 | |
53 | 53 | $repositoryManager = $this->repositories; |
54 | 54 | $repOrganizationName = $repositoryManager->get('Organizations/OrganizationName'); |