@@ -46,7 +46,7 @@ |
||
46 | 46 | case ImagineOptions::LIB_GD: |
47 | 47 | case ImagineOptions::LIB_IMAGICK: |
48 | 48 | case ImagineOptions::LIB_GMAGICK: |
49 | - $imagineClass = '\Imagine\\' . $lib . '\Imagine'; |
|
49 | + $imagineClass = '\Imagine\\'.$lib.'\Imagine'; |
|
50 | 50 | $imagine = new $imagineClass; |
51 | 51 | break; |
52 | 52 | } |
@@ -46,7 +46,6 @@ |
||
46 | 46 | * Converts the given value so that it can be hydrated by the hydrator. |
47 | 47 | * |
48 | 48 | * @param mixed $value The original value. |
49 | - * @param array $data (optional) The original data for context. |
|
50 | 49 | * |
51 | 50 | * @return mixed Returns the value that should be hydrated. |
52 | 51 | */ |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * |
34 | 34 | * @var array |
35 | 35 | */ |
36 | - protected $headscripts = [ 'Jobs/js/forms.manager-select.js' ]; |
|
36 | + protected $headscripts = ['Jobs/js/forms.manager-select.js']; |
|
37 | 37 | |
38 | 38 | public function setHeadscripts(array $scripts) |
39 | 39 | { |
@@ -103,7 +103,7 @@ |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
106 | - * @return mixed |
|
106 | + * @return string |
|
107 | 107 | */ |
108 | 108 | protected function getJobTitle() |
109 | 109 | { |
@@ -172,11 +172,11 @@ |
||
172 | 172 | |
173 | 173 | if (!$router || !$user) { return ''; } |
174 | 174 | |
175 | - $token = $user instanceOf AnonymousUser ? '?token=' . $user->getToken() : ''; |
|
175 | + $token = $user instanceOf AnonymousUser ? '?token='.$user->getToken() : ''; |
|
176 | 176 | $href = $router->assemble( |
177 | 177 | ['id' => $this->application->getId()], |
178 | 178 | ['name'=>'lang/applications/detail', 'force_canonical'=>true] |
179 | - ) . $token; |
|
179 | + ).$token; |
|
180 | 180 | |
181 | 181 | return $href; |
182 | 182 |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | [ |
89 | 89 | 'application' => $this->application, |
90 | 90 | 'user' => $employee->getUser(), |
91 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
91 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
92 | 92 | ] |
93 | 93 | ); |
94 | 94 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | [ |
107 | 107 | 'job' => $this->application->getJob(), |
108 | 108 | 'user' => $recruiter, |
109 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
109 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
110 | 110 | ] |
111 | 111 | ); |
112 | 112 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | [ |
124 | 124 | 'application' => $this->application, |
125 | 125 | 'body' => $ackBody, |
126 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
126 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
127 | 127 | ] |
128 | 128 | ); |
129 | 129 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | 'options' => [ |
39 | 39 | 'enable_descriptions' => true, |
40 | 40 | 'description' => /*@translate*/ 'Manage the professions you want to assign to jobs.' . |
41 | - /*@translate*/ 'The order of categories can be modified by drag&drop.', |
|
41 | + /*@translate*/ 'The order of categories can be modified by drag&drop.', |
|
42 | 42 | 'display_mode' => SummaryForm::DISPLAY_SUMMARY, |
43 | 43 | ], |
44 | 44 | ], |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | 'options' => [ |
58 | 58 | 'enable_descriptions' => true, |
59 | 59 | 'description' => /*@translate*/ 'Manage the industries you want to assign to jobs.' . |
60 | - /*@translate*/ 'The order of categories can be modified by drag&drop.', |
|
60 | + /*@translate*/ 'The order of categories can be modified by drag&drop.', |
|
61 | 61 | 'display_mode' => SummaryForm::DISPLAY_SUMMARY, |
62 | 62 | ], |
63 | 63 | ], |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | 'options' => [ |
77 | 77 | 'enable_descriptions' => true, |
78 | 78 | 'description' => /*@translate*/ 'Manage the employment types you want to assign to jobs.'. |
79 | - /*@translate*/ 'The order of categories can be modified by drag&drop.', |
|
79 | + /*@translate*/ 'The order of categories can be modified by drag&drop.', |
|
80 | 80 | 'display_mode' => SummaryForm::DISPLAY_SUMMARY, |
81 | 81 | ], |
82 | 82 | ], |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | 'property' => true, |
38 | 38 | 'options' => [ |
39 | 39 | 'enable_descriptions' => true, |
40 | - 'description' => /*@translate*/ 'Manage the professions you want to assign to jobs.' . |
|
40 | + 'description' => /*@translate*/ 'Manage the professions you want to assign to jobs.'. |
|
41 | 41 | /*@translate*/ 'The order of categories can be modified by drag&drop.', |
42 | 42 | 'display_mode' => SummaryForm::DISPLAY_SUMMARY, |
43 | 43 | ], |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | 'property' => true, |
57 | 57 | 'options' => [ |
58 | 58 | 'enable_descriptions' => true, |
59 | - 'description' => /*@translate*/ 'Manage the industries you want to assign to jobs.' . |
|
59 | + 'description' => /*@translate*/ 'Manage the industries you want to assign to jobs.'. |
|
60 | 60 | /*@translate*/ 'The order of categories can be modified by drag&drop.', |
61 | 61 | 'display_mode' => SummaryForm::DISPLAY_SUMMARY, |
62 | 62 | ], |
@@ -69,6 +69,9 @@ |
||
69 | 69 | return $this; |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $network |
|
74 | + */ |
|
72 | 75 | public function getAdapter($network) |
73 | 76 | { |
74 | 77 | if (isset($this->adapters[$network])) { |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | class SocialProfiles extends AbstractPlugin |
18 | 18 | { |
19 | - protected $hybridAuth; |
|
19 | + protected $hybridAuth; |
|
20 | 20 | |
21 | 21 | protected $adapterMap = array( |
22 | 22 | 'facebook' => '\\Auth\\Controller\\Plugin\\SocialProfiles\\Facebook', |
@@ -25,9 +25,9 @@ discard block |
||
25 | 25 | |
26 | 26 | ); |
27 | 27 | |
28 | - /** |
|
29 | - * @var RequestInterface |
|
30 | - */ |
|
28 | + /** |
|
29 | + * @var RequestInterface |
|
30 | + */ |
|
31 | 31 | protected $request; |
32 | 32 | |
33 | 33 | public function __construct($hybridAuth,RequestInterface $request,array $adapters = array()) |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | protected $request; |
32 | 32 | |
33 | - public function __construct($hybridAuth,RequestInterface $request,array $adapters = array()) |
|
33 | + public function __construct($hybridAuth, RequestInterface $request, array $adapters = array()) |
|
34 | 34 | { |
35 | 35 | $this->hybridAuth = $hybridAuth; |
36 | 36 | $this->request = $request; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | throw new \InvalidArgumentException( |
71 | 71 | sprintf( |
72 | 72 | 'Adapter must be either a string or an instance of \Auth\Controller\Plugin\SocialProfiles\AbstractAdapter, but received %s', |
73 | - is_object($adapter) ? get_class($adapter) : '(' . gettype($adapter) . ')' |
|
73 | + is_object($adapter) ? get_class($adapter) : '('.gettype($adapter).')' |
|
74 | 74 | ) |
75 | 75 | ); |
76 | 76 | } |
@@ -29,7 +29,6 @@ |
||
29 | 29 | {} |
30 | 30 | |
31 | 31 | /** |
32 | - * @param string $network |
|
33 | 32 | * @return \Auth\Entity\SocialProfiles\ProfileInterface|bool |
34 | 33 | */ |
35 | 34 | public function fetch($api) |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function fetch($api) |
36 | 36 | { |
37 | - $result = $this->queryApi($api); |
|
37 | + $result = $this->queryApi($api); |
|
38 | 38 | if (!$result) { |
39 | 39 | return false; |
40 | 40 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $class = get_class($this); |
61 | 61 | $class = explode('\\', $class); |
62 | 62 | $class = array_pop($class); |
63 | - $class = '\\Auth\\Entity\\SocialProfiles\\' . $class; |
|
63 | + $class = '\\Auth\\Entity\\SocialProfiles\\'.$class; |
|
64 | 64 | |
65 | 65 | return $class; |
66 | 66 | } |
@@ -34,44 +34,44 @@ |
||
34 | 34 | { |
35 | 35 | |
36 | 36 | $this->add( |
37 | - [ |
|
38 | - 'name' => 'l', |
|
39 | - 'type' => 'LocationSelect', |
|
40 | - 'options' => [ |
|
41 | - 'label' => /*@translate*/ 'Location', |
|
42 | - 'span' => 3, |
|
43 | - 'location_entity' => Location::class, |
|
44 | - ], |
|
45 | - 'attributes' => [ |
|
46 | - 'data-width' => '100%', |
|
47 | - ], |
|
48 | - ] |
|
37 | + [ |
|
38 | + 'name' => 'l', |
|
39 | + 'type' => 'LocationSelect', |
|
40 | + 'options' => [ |
|
41 | + 'label' => /*@translate*/ 'Location', |
|
42 | + 'span' => 3, |
|
43 | + 'location_entity' => Location::class, |
|
44 | + ], |
|
45 | + 'attributes' => [ |
|
46 | + 'data-width' => '100%', |
|
47 | + ], |
|
48 | + ] |
|
49 | 49 | ); |
50 | 50 | |
51 | 51 | $this->add( |
52 | - [ |
|
53 | - 'name' => 'd', |
|
54 | - 'type' => 'Zend\Form\Element\Select', |
|
55 | - 'options' => [ |
|
56 | - 'label' => /*@translate*/ 'Distance', |
|
57 | - 'value_options' => [ |
|
58 | - '5' => '5 km', |
|
59 | - '10' => '10 km', |
|
60 | - '20' => '20 km', |
|
61 | - '50' => '50 km', |
|
62 | - '100' => '100 km' |
|
63 | - ], |
|
64 | - 'span' => 4, |
|
52 | + [ |
|
53 | + 'name' => 'd', |
|
54 | + 'type' => 'Zend\Form\Element\Select', |
|
55 | + 'options' => [ |
|
56 | + 'label' => /*@translate*/ 'Distance', |
|
57 | + 'value_options' => [ |
|
58 | + '5' => '5 km', |
|
59 | + '10' => '10 km', |
|
60 | + '20' => '20 km', |
|
61 | + '50' => '50 km', |
|
62 | + '100' => '100 km' |
|
63 | + ], |
|
64 | + 'span' => 4, |
|
65 | 65 | |
66 | - ], |
|
67 | - 'attributes' => [ |
|
68 | - 'value' => '10', // default distance |
|
69 | - 'data-searchbox' => -1, // hide the search box |
|
70 | - 'data-allowclear' => 'false', // allow to clear a selected value |
|
71 | - 'data-placeholder' => /*@translate*/ 'Distance', |
|
72 | - 'data-width' => '100%', |
|
73 | - ] |
|
74 | - ] |
|
66 | + ], |
|
67 | + 'attributes' => [ |
|
68 | + 'value' => '10', // default distance |
|
69 | + 'data-searchbox' => -1, // hide the search box |
|
70 | + 'data-allowclear' => 'false', // allow to clear a selected value |
|
71 | + 'data-placeholder' => /*@translate*/ 'Distance', |
|
72 | + 'data-width' => '100%', |
|
73 | + ] |
|
74 | + ] |
|
75 | 75 | ); |
76 | 76 | } |
77 | 77 | } |
78 | 78 | \ No newline at end of file |
@@ -66,7 +66,7 @@ |
||
66 | 66 | ], |
67 | 67 | 'attributes' => [ |
68 | 68 | 'value' => '10', // default distance |
69 | - 'data-searchbox' => -1, // hide the search box |
|
69 | + 'data-searchbox' => -1, // hide the search box |
|
70 | 70 | 'data-allowclear' => 'false', // allow to clear a selected value |
71 | 71 | 'data-placeholder' => /*@translate*/ 'Distance', |
72 | 72 | 'data-width' => '100%', |