@@ -33,15 +33,15 @@ |
||
33 | 33 | if ($file && !is_null($file->getMetadata())) { |
34 | 34 | $metadata = $file->getMetadata(); |
35 | 35 | if (0 === strpos($metadata->getContentType(), 'image/')) { |
36 | - $basepath = $this->getView()->plugin('basepath'); |
|
37 | - $preview = '<img src="' . $basepath($file->getUri()) . '" class="img-polaroid" />'; |
|
36 | + $basepath = $this->getView()->plugin('basepath'); |
|
37 | + $preview = '<img src="'.$basepath($file->getUri()).'" class="img-polaroid" />'; |
|
38 | 38 | } else { |
39 | - $preview = '<span>' . $file->getName() . '(' . $file->getPrettySize() . ')</span>'; |
|
39 | + $preview = '<span>'.$file->getName().'('.$file->getPrettySize().')</span>'; |
|
40 | 40 | } |
41 | 41 | } |
42 | 42 | $notice = '<div class="iu-empty-notice" style="padding: 10px; color: #d3d3d3;"> |
43 | 43 | <div style="padding: 0px 20px 5px;"><span class="yk-icon fa-file-image-o fa-5x"></span></div> |
44 | - <small>' . $translator->translate('Click here to add an image or use drag and drop.') . '</small> |
|
44 | + <small>' . $translator->translate('Click here to add an image or use drag and drop.').'</small> |
|
45 | 45 | |
46 | 46 | </div>'; |
47 | 47 |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $renderer->headscript()->appendFile($renderer->basepath('modules/Core/js/jquery.summary-form.js')); |
68 | 68 | |
69 | 69 | $label = $form->getLabel(); |
70 | - $labelContent = $label ? '<div class="sf-headline"><h3>' . $this->getView()->translate($label) . '</h3></div>' : ''; |
|
70 | + $labelContent = $label ? '<div class="sf-headline"><h3>'.$this->getView()->translate($label).'</h3></div>' : ''; |
|
71 | 71 | $formContent = $this->renderForm($form, $layout, $parameter); |
72 | 72 | $summaryContent = $this->renderSummary($form); |
73 | 73 | |
@@ -132,8 +132,8 @@ discard block |
||
132 | 132 | public function renderForm(SummaryFormInterface $form, $layout = Form::LAYOUT_HORIZONTAL, $parameter = array()) |
133 | 133 | { |
134 | 134 | /* @var $form SummaryFormInterface|\Core\Form\SummaryForm */ |
135 | - $renderer = $this->getView(); /* @var $renderer \Laminas\View\Renderer\PhpRenderer */ |
|
136 | - $formHelper = $renderer->plugin('form'); /* @var $formHelper \Core\Form\View\Helper\Form */ |
|
135 | + $renderer = $this->getView(); /* @var $renderer \Laminas\View\Renderer\PhpRenderer */ |
|
136 | + $formHelper = $renderer->plugin('form'); /* @var $formHelper \Core\Form\View\Helper\Form */ |
|
137 | 137 | $fieldset = $form->getBaseFieldset(); |
138 | 138 | $resetPartial = false; |
139 | 139 | |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $form->prepare(); |
168 | 168 | $baseFieldset = $form->getBaseFieldset(); |
169 | 169 | if (!isset($baseFieldset)) { |
170 | - throw new \InvalidArgumentException('For the Form ' . get_class($form) . ' there is no Basefieldset'); |
|
170 | + throw new \InvalidArgumentException('For the Form '.get_class($form).' there is no Basefieldset'); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | $dataAttributesMarkup = ''; |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | } |
179 | 179 | } |
180 | 180 | |
181 | - $markup = '<div class="panel panel-default" style="min-height: 100px;"' . $dataAttributesMarkup . '> |
|
181 | + $markup = '<div class="panel panel-default" style="min-height: 100px;"'.$dataAttributesMarkup.'> |
|
182 | 182 | <div class="panel-body"><div class="sf-controls">%s</div>%s</div></div>'; |
183 | 183 | |
184 | 184 | $view = $this->getView(); |
@@ -190,9 +190,9 @@ discard block |
||
190 | 190 | . '</button>'; |
191 | 191 | |
192 | 192 | if (($controlButtons = $form->getOption('control_buttons')) !== null) { |
193 | - $buttonMarkup .= PHP_EOL . implode(PHP_EOL, array_map(function (array $buttonSpec) use ($view) { |
|
194 | - return '<button type="button" class="btn btn-default btn-xs' . (isset($buttonSpec['class']) ? ' ' . $buttonSpec['class'] : '') . '">' |
|
195 | - . (isset($buttonSpec['icon']) ? '<span class="yk-icon yk-icon-' . $buttonSpec['icon'] . '"></span> ' : '') |
|
193 | + $buttonMarkup .= PHP_EOL.implode(PHP_EOL, array_map(function(array $buttonSpec) use ($view) { |
|
194 | + return '<button type="button" class="btn btn-default btn-xs'.(isset($buttonSpec['class']) ? ' '.$buttonSpec['class'] : '').'">' |
|
195 | + . (isset($buttonSpec['icon']) ? '<span class="yk-icon yk-icon-'.$buttonSpec['icon'].'"></span> ' : '') |
|
196 | 196 | . $view->translate($buttonSpec['label']) |
197 | 197 | . '</button>'; |
198 | 198 | }, $controlButtons)); |
@@ -232,10 +232,10 @@ discard block |
||
232 | 232 | } |
233 | 233 | |
234 | 234 | if ($element instanceof ViewPartialProviderInterface) { |
235 | - $renderer = $this->getView(); /* @var $renderer \Laminas\View\Renderer\PhpRenderer */ |
|
235 | + $renderer = $this->getView(); /* @var $renderer \Laminas\View\Renderer\PhpRenderer */ |
|
236 | 236 | $origPartial = $element->getViewPartial(); |
237 | 237 | $partial = "$origPartial.view"; |
238 | - $partialParams = array( |
|
238 | + $partialParams = array( |
|
239 | 239 | 'element' => $element |
240 | 240 | ); |
241 | 241 | if (!$renderer->resolver($partial)) { |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | |
252 | 252 | if ($element instanceof FieldsetInterface) { |
253 | 253 | if (!$element instanceof FormInterface && $label) { |
254 | - $markup .= '<h4>' . $label . '</h4>'; |
|
254 | + $markup .= '<h4>'.$label.'</h4>'; |
|
255 | 255 | } |
256 | 256 | foreach ($element as $el) { |
257 | 257 | $markup .= $this->renderSummaryElement($el); |
@@ -283,11 +283,11 @@ discard block |
||
283 | 283 | } |
284 | 284 | |
285 | 285 | $optGroupLabel = isset($optVal['label']) ? $translator->translate($optVal['label']) : $optKey; |
286 | - $multiOptions[] = $optGroupLabel . ' | ' . $translator->translate($optVal['options'][$optionKey]); |
|
286 | + $multiOptions[] = $optGroupLabel.' | '.$translator->translate($optVal['options'][$optionKey]); |
|
287 | 287 | } |
288 | 288 | } |
289 | 289 | |
290 | - $elementValue = '<ul><li>' . join('</li><li>', $multiOptions) . '</li></ul>'; |
|
290 | + $elementValue = '<ul><li>'.join('</li><li>', $multiOptions).'</li></ul>'; |
|
291 | 291 | } else { |
292 | 292 | $elementValue = $translator->translate($options[$elementValue]); |
293 | 293 | } |
@@ -301,13 +301,13 @@ discard block |
||
301 | 301 | $markup .= '<div class="row">'; |
302 | 302 | $col = 12; |
303 | 303 | if ($label) { |
304 | - $markup .= '<div class="col-md-3 yk-label"><label>' . $label . '</label></div>'; |
|
304 | + $markup .= '<div class="col-md-3 yk-label"><label>'.$label.'</label></div>'; |
|
305 | 305 | $col = 9; |
306 | 306 | } |
307 | - if(is_array($elementValue)){ |
|
307 | + if (is_array($elementValue)) { |
|
308 | 308 | $elementValue = implode(",", $elementValue); |
309 | 309 | } |
310 | - $markup .= '<div class="col-md-' . $col . '">' . $elementValue . '</div>' |
|
310 | + $markup .= '<div class="col-md-'.$col.'">'.$elementValue.'</div>' |
|
311 | 311 | . '</div>'; |
312 | 312 | return $markup; |
313 | 313 | } |
@@ -195,7 +195,7 @@ |
||
195 | 195 | ->method('isValid') |
196 | 196 | ->willReturn(true); |
197 | 197 | |
198 | - $result = $this->controller->dispatch($request); |
|
198 | + $result = $this->controller->dispatch($request); |
|
199 | 199 | |
200 | 200 | $expected = array( |
201 | 201 | 'form' => $this->formMock |
@@ -53,7 +53,7 @@ |
||
53 | 53 | $fileManager = $this->fileManager; |
54 | 54 | $metadata = new ImageMetadata(); |
55 | 55 | |
56 | - if(!is_null($image = $user->getInfo()->getImage())){ |
|
56 | + if (!is_null($image = $user->getInfo()->getImage())) { |
|
57 | 57 | $user->getInfo()->setImage(null); |
58 | 58 | $this->dm->persist($user); |
59 | 59 | $this->dm->flush(); |
@@ -33,51 +33,51 @@ discard block |
||
33 | 33 | */ |
34 | 34 | class ManageController extends AbstractActionController |
35 | 35 | { |
36 | - private $userProfileContainer; |
|
36 | + private $userProfileContainer; |
|
37 | 37 | |
38 | - private $authService; |
|
38 | + private $authService; |
|
39 | 39 | |
40 | - private $socialProfileForm; |
|
40 | + private $socialProfileForm; |
|
41 | 41 | |
42 | - private $translator; |
|
42 | + private $translator; |
|
43 | 43 | |
44 | - private $repositories; |
|
44 | + private $repositories; |
|
45 | 45 | |
46 | - private $viewHelper; |
|
46 | + private $viewHelper; |
|
47 | 47 | |
48 | - private $hybridAuthAdapter; |
|
48 | + private $hybridAuthAdapter; |
|
49 | 49 | |
50 | 50 | private UploadHandler $manageHandler; |
51 | 51 | |
52 | 52 | /** |
53 | - * @param ContainerInterface $container |
|
54 | - * @return ManageController |
|
55 | - */ |
|
56 | - static public function factory(ContainerInterface $container) |
|
57 | - { |
|
58 | - $forms = $container->get('forms'); |
|
59 | - $userProfileContainer = $forms->get('Auth/UserProfileContainer'); |
|
60 | - $socialProfileForm = $forms->get('Auth/SocialProfiles'); |
|
61 | - $authService = $container->get('AuthenticationService'); |
|
62 | - $translator = $container->get('translator'); |
|
63 | - $repositories = $container->get('repositories'); |
|
64 | - $viewHelper = $container->get('ViewHelperManager'); |
|
65 | - $hybridAuthAdapter = $container->get('HybridAuthAdapter'); |
|
66 | - $uploadHandler = $container->get(UploadHandler::class); |
|
53 | + * @param ContainerInterface $container |
|
54 | + * @return ManageController |
|
55 | + */ |
|
56 | + static public function factory(ContainerInterface $container) |
|
57 | + { |
|
58 | + $forms = $container->get('forms'); |
|
59 | + $userProfileContainer = $forms->get('Auth/UserProfileContainer'); |
|
60 | + $socialProfileForm = $forms->get('Auth/SocialProfiles'); |
|
61 | + $authService = $container->get('AuthenticationService'); |
|
62 | + $translator = $container->get('translator'); |
|
63 | + $repositories = $container->get('repositories'); |
|
64 | + $viewHelper = $container->get('ViewHelperManager'); |
|
65 | + $hybridAuthAdapter = $container->get('HybridAuthAdapter'); |
|
66 | + $uploadHandler = $container->get(UploadHandler::class); |
|
67 | 67 | |
68 | - return new ManageController( |
|
69 | - $userProfileContainer, |
|
70 | - $authService, |
|
71 | - $repositories, |
|
72 | - $socialProfileForm, |
|
73 | - $translator, |
|
74 | - $viewHelper, |
|
75 | - $hybridAuthAdapter, |
|
68 | + return new ManageController( |
|
69 | + $userProfileContainer, |
|
70 | + $authService, |
|
71 | + $repositories, |
|
72 | + $socialProfileForm, |
|
73 | + $translator, |
|
74 | + $viewHelper, |
|
75 | + $hybridAuthAdapter, |
|
76 | 76 | $uploadHandler |
77 | - ); |
|
78 | - } |
|
77 | + ); |
|
78 | + } |
|
79 | 79 | |
80 | - public function __construct( |
|
80 | + public function __construct( |
|
81 | 81 | UserProfileContainer $userProfileContainer, |
82 | 82 | AuthenticationService $authService, |
83 | 83 | RepositoryService $repositories, |
@@ -86,19 +86,19 @@ discard block |
||
86 | 86 | HelperPluginManager $viewHelper, |
87 | 87 | HybridAuth $hybridAuthAdapter, |
88 | 88 | UploadHandler $manageHandler |
89 | - ) |
|
90 | - { |
|
91 | - $this->userProfileContainer = $userProfileContainer; |
|
92 | - $this->authService = $authService; |
|
93 | - $this->socialProfileForm = $socialProfileForm; |
|
94 | - $this->repositories = $repositories; |
|
95 | - $this->translator = $translator; |
|
96 | - $this->viewHelper = $viewHelper; |
|
97 | - $this->hybridAuthAdapter = $hybridAuthAdapter; |
|
89 | + ) |
|
90 | + { |
|
91 | + $this->userProfileContainer = $userProfileContainer; |
|
92 | + $this->authService = $authService; |
|
93 | + $this->socialProfileForm = $socialProfileForm; |
|
94 | + $this->repositories = $repositories; |
|
95 | + $this->translator = $translator; |
|
96 | + $this->viewHelper = $viewHelper; |
|
97 | + $this->hybridAuthAdapter = $hybridAuthAdapter; |
|
98 | 98 | $this->manageHandler = $manageHandler; |
99 | 99 | } |
100 | 100 | |
101 | - /** |
|
101 | + /** |
|
102 | 102 | * @return array|JsonModel |
103 | 103 | */ |
104 | 104 | public function profileAction() |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | $postData = $form->getOption('use_post_array') ? $_POST : array(); |
143 | 143 | //@TODO: [ZF3] option use_files_array is false by default |
144 | 144 | //$filesData = $form->getOption('use_files_array') ? $_FILES : array(); |
145 | - $filesData = $_FILES; |
|
145 | + $filesData = $_FILES; |
|
146 | 146 | $data = array_merge($postData, $filesData); |
147 | 147 | $form->setData($data); |
148 | 148 |
@@ -106,11 +106,11 @@ discard block |
||
106 | 106 | /* @var \Auth\Form\UserProfileContainer $userProfileContainer */ |
107 | 107 | $userProfileContainer = $this->userProfileContainer; |
108 | 108 | $user = $this->authService->getUser(); /* @var $user \Auth\Entity\User */ |
109 | - $postProfiles = (array)$this->params()->fromPost('social_profiles'); |
|
109 | + $postProfiles = (array) $this->params()->fromPost('social_profiles'); |
|
110 | 110 | $userProfiles = $user->getProfile(); |
111 | 111 | $formSocialProfiles = $this->socialProfileForm |
112 | 112 | ->setUseDefaultValidation(true) |
113 | - ->setData(['social_profiles' => array_map(function ($array) |
|
113 | + ->setData(['social_profiles' => array_map(function($array) |
|
114 | 114 | { |
115 | 115 | return $array['data']; |
116 | 116 | }, $userProfiles)]); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $formName = $this->params()->fromQuery('form'); |
129 | 129 | $form = $userProfileContainer->getForm($formName); |
130 | 130 | |
131 | - if(!is_null($form) && 'info.image' === $formName) { |
|
131 | + if (!is_null($form) && 'info.image' === $formName) { |
|
132 | 132 | $user = $this->manageHandler->handleUpload($user, $_FILES['image']); |
133 | 133 | $form->getParent()->setEntity($user->getInfo()); |
134 | 134 | $content = $this->viewHelper->get('form')->__invoke($form); |
@@ -138,12 +138,12 @@ discard block |
||
138 | 138 | 'content' => $content, |
139 | 139 | ) |
140 | 140 | ); |
141 | - }elseif($form) { |
|
142 | - $postData = $form->getOption('use_post_array') ? $_POST : array(); |
|
141 | + }elseif ($form) { |
|
142 | + $postData = $form->getOption('use_post_array') ? $_POST : array(); |
|
143 | 143 | //@TODO: [ZF3] option use_files_array is false by default |
144 | 144 | //$filesData = $form->getOption('use_files_array') ? $_FILES : array(); |
145 | 145 | $filesData = $_FILES; |
146 | - $data = array_merge($postData, $filesData); |
|
146 | + $data = array_merge($postData, $filesData); |
|
147 | 147 | $form->setData($data); |
148 | 148 | |
149 | 149 | if (!$form->isValid()) { |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | )); |
203 | 203 | } else { |
204 | 204 | $profile = [ |
205 | - 'auth' => (array)$authProfile, |
|
205 | + 'auth' => (array) $authProfile, |
|
206 | 206 | 'data' => \Laminas\Json\Json::decode($dataProfiles[$network]) |
207 | 207 | ]; |
208 | 208 | $user->addProfile($network, $profile); |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | } |
213 | 213 | |
214 | 214 | // keep data in sync & properly decoded |
215 | - $formSocialProfiles->setData(['social_profiles' => array_map(function ($array) |
|
215 | + $formSocialProfiles->setData(['social_profiles' => array_map(function($array) |
|
216 | 216 | { |
217 | 217 | return \Laminas\Json\Json::decode($array) ?: ''; |
218 | 218 | }, $dataProfiles)]); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | 'content' => $content, |
139 | 139 | ) |
140 | 140 | ); |
141 | - }elseif($form) { |
|
141 | + } elseif($form) { |
|
142 | 142 | $postData = $form->getOption('use_post_array') ? $_POST : array(); |
143 | 143 | //@TODO: [ZF3] option use_files_array is false by default |
144 | 144 | //$filesData = $form->getOption('use_files_array') ? $_FILES : array(); |
@@ -173,8 +173,7 @@ discard block |
||
173 | 173 | 'content' => $content, |
174 | 174 | ) |
175 | 175 | ); |
176 | - } |
|
177 | - elseif ($postProfiles) { |
|
176 | + } elseif ($postProfiles) { |
|
178 | 177 | $formSocialProfiles->setData($this->params()->fromPost()); |
179 | 178 | |
180 | 179 | if ($formSocialProfiles->isValid()) { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function getUri(): string |
31 | 31 | { |
32 | - return '/file/Auth.UserImage/' . $this->id; |
|
32 | + return '/file/Auth.UserImage/'.$this->id; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @see \Core\Repository\AbstractRepository::create() |
103 | 103 | * @return UserInterface |
104 | 104 | */ |
105 | - public function create(array $data = null, $persist=false) |
|
105 | + public function create(array $data = null, $persist = false) |
|
106 | 106 | { |
107 | 107 | $entity = parent::create($data); |
108 | 108 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | public function findByProfileIdentifier($identifier, $provider, array $options = []) |
126 | 126 | { |
127 | - return $this->findOneBy(array('profiles.' . $provider . '.auth.identifier' => $identifier), $options) ?: $this->findOneBy(array('profile.identifier' => $identifier), $options); |
|
127 | + return $this->findOneBy(array('profiles.'.$provider.'.auth.identifier' => $identifier), $options) ?: $this->findOneBy(array('profile.identifier' => $identifier), $options); |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $qb->field('_id')->notEqual($curentUserId) |
142 | 142 | ->addAnd( |
143 | 143 | $qb->expr() |
144 | - ->addOr($qb->expr()->field('profiles.' . $provider . '.auth.identifier' )->equals($identifier)) |
|
144 | + ->addOr($qb->expr()->field('profiles.'.$provider.'.auth.identifier')->equals($identifier)) |
|
145 | 145 | ->addOr($qb->expr()->field('profile.identifier')->equals($identifier)) |
146 | 146 | ); |
147 | 147 | |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | return $this->findOneBy( |
198 | 198 | array( |
199 | 199 | '$or' => array( |
200 | - array('login' => $identity . $suffix), |
|
200 | + array('login' => $identity.$suffix), |
|
201 | 201 | array('info.email' => $identity) |
202 | 202 | ) |
203 | 203 | ) |
@@ -246,10 +246,10 @@ discard block |
||
246 | 246 | public function findByQuery($query) |
247 | 247 | { |
248 | 248 | $qb = $this->createQueryBuilder(); |
249 | - $parts = explode(' ', trim($query)); |
|
249 | + $parts = explode(' ', trim($query)); |
|
250 | 250 | |
251 | 251 | foreach ($parts as $q) { |
252 | - $regex = new Regex('/^' . $query . '/i'); |
|
252 | + $regex = new Regex('/^'.$query.'/i'); |
|
253 | 253 | $qb->addOr($qb->expr()->field('info.firstName')->equals($regex)); |
254 | 254 | $qb->addOr($qb->expr()->field('info.lastName')->equals($regex)); |
255 | 255 | $qb->addOr($qb->expr()->field('info.email')->equals($regex)); |
@@ -51,9 +51,9 @@ discard block |
||
51 | 51 | |
52 | 52 | $config = $container->get('doctrine.documentmanager.odm_default')->getConfiguration(); |
53 | 53 | $config->setDefaultDB($database); |
54 | - $dm = $this->createDocumentManager($options['connection'],$config); |
|
54 | + $dm = $this->createDocumentManager($options['connection'], $config); |
|
55 | 55 | |
56 | - $plugin = new UserCreator($credentialFilter,$dm); |
|
56 | + $plugin = new UserCreator($credentialFilter, $dm); |
|
57 | 57 | return $plugin; |
58 | 58 | } |
59 | 59 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function createDocumentManager($connection, $config) |
69 | 69 | { |
70 | - try{ |
|
70 | + try { |
|
71 | 71 | $dbConn = new Client($connection, [], [ |
72 | 72 | 'typeMap' => [ |
73 | 73 | 'root' => 'array', |
@@ -75,9 +75,9 @@ discard block |
||
75 | 75 | ] |
76 | 76 | ]); |
77 | 77 | $dbConn->selectDatabase('YAWIK'); |
78 | - $dm = DocumentManager::create($dbConn,$config); |
|
78 | + $dm = DocumentManager::create($dbConn, $config); |
|
79 | 79 | return $dm; |
80 | - }catch (\Exception $e){ |
|
80 | + } catch (\Exception $e) { |
|
81 | 81 | throw new \Exception("Can't create document manager: {$e->getMessage()}"); |
82 | 82 | } |
83 | 83 | } |
@@ -77,7 +77,7 @@ |
||
77 | 77 | $dbConn->selectDatabase('YAWIK'); |
78 | 78 | $dm = DocumentManager::create($dbConn,$config); |
79 | 79 | return $dm; |
80 | - }catch (\Exception $e){ |
|
80 | + } catch (\Exception $e){ |
|
81 | 81 | throw new \Exception("Can't create document manager: {$e->getMessage()}"); |
82 | 82 | } |
83 | 83 | } |
@@ -29,17 +29,17 @@ |
||
29 | 29 | ContactImage::class, |
30 | 30 | ]; |
31 | 31 | |
32 | - private $inheritance = [ FileInterface::class ]; |
|
32 | + private $inheritance = [FileInterface::class]; |
|
33 | 33 | |
34 | 34 | public function propertiesProvider() |
35 | 35 | { |
36 | 36 | return [ |
37 | - [ 'uri', [ |
|
38 | - 'pre' => function () { |
|
37 | + ['uri', [ |
|
38 | + 'pre' => function() { |
|
39 | 39 | $this->target->setId('some-id')->setName('some-name'); |
40 | 40 | }, |
41 | 41 | 'ignore_setter' => true, |
42 | - 'value' => '/file/Cv.ContactImage/some-id/' . urlencode('some-name'), |
|
42 | + 'value' => '/file/Cv.ContactImage/some-id/'.urlencode('some-name'), |
|
43 | 43 | ]], |
44 | 44 | ]; |
45 | 45 | } |