@@ -92,7 +92,7 @@ |
||
92 | 92 | } |
93 | 93 | return $value; |
94 | 94 | } |
95 | - return 'id' == $property ? $auth->getIdentity() : $auth->getUser()->{'get' . $property}(); |
|
95 | + return 'id' == $property ? $auth->getIdentity() : $auth->getUser()->{'get'.$property}(); |
|
96 | 96 | } |
97 | 97 | return null; |
98 | 98 | } |
@@ -99,7 +99,6 @@ |
||
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
102 | - * @param ControllerManager $controllerManager |
|
103 | 102 | * @return \Auth\Controller\Plugin\Auth |
104 | 103 | */ |
105 | 104 | public static function factory(ServiceManager $sm) |
@@ -104,7 +104,7 @@ |
||
104 | 104 | */ |
105 | 105 | public static function factory(ServiceManager $sm) |
106 | 106 | { |
107 | - //$manager = $sm->get('ControllerManager'); |
|
107 | + //$manager = $sm->get('ControllerManager'); |
|
108 | 108 | return new static($sm->get('AuthenticationService')); |
109 | 109 | } |
110 | 110 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | 'options' => [ |
52 | 52 | 'placeholder' => /*@translate*/ 'Enter pure html code here', |
53 | 53 | ], |
54 | - 'attributes' => ['style' => 'width:100%;height:100%;',] |
|
54 | + 'attributes' => ['style' => 'width:100%;height:100%;', ] |
|
55 | 55 | ] |
56 | 56 | ); |
57 | 57 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @var String |
37 | 37 | * @ODM\Field(type="string") |
38 | 38 | */ |
39 | - protected $qualifications=''; |
|
39 | + protected $qualifications = ''; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Requirements field of the job template |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * @var String |
45 | 45 | * @ODM\Field(type="string") |
46 | 46 | */ |
47 | - protected $requirements=''; |
|
47 | + protected $requirements = ''; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Benefits field of the job template |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @var String |
53 | 53 | * @ODM\Field(type="string") |
54 | 54 | */ |
55 | - protected $benefits=''; |
|
55 | + protected $benefits = ''; |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * Job title field of the job template |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @var String |
61 | 61 | * @ODM\Field(type="string") |
62 | 62 | */ |
63 | - protected $title=''; |
|
63 | + protected $title = ''; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * Company description field of the job template |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @var String |
69 | 69 | * @ODM\Field(type="string") |
70 | 70 | */ |
71 | - protected $description=''; |
|
71 | + protected $description = ''; |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * language of the job template values. Must be a valid ISO 639-1 code |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @var String |
77 | 77 | * @ODM\Field(type="string") |
78 | 78 | */ |
79 | - protected $language='en'; |
|
79 | + protected $language = 'en'; |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Pure HTML |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * @var string |
86 | 86 | * @since 0.29 |
87 | 87 | */ |
88 | - protected $html=''; |
|
88 | + protected $html = ''; |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * free values (currently not in use) |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function setQualifications($qualifications) |
104 | 104 | { |
105 | - $this->qualifications= (string) $qualifications; |
|
105 | + $this->qualifications = (string) $qualifications; |
|
106 | 106 | return $this; |
107 | 107 | } |
108 | 108 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | public function setRequirements($requirements) |
126 | 126 | { |
127 | - $this->requirements=(string) $requirements; |
|
127 | + $this->requirements = (string) $requirements; |
|
128 | 128 | return $this; |
129 | 129 | } |
130 | 130 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | */ |
147 | 147 | public function setBenefits($benefits) |
148 | 148 | { |
149 | - $this->benefits=(string) $benefits; |
|
149 | + $this->benefits = (string) $benefits; |
|
150 | 150 | return $this; |
151 | 151 | } |
152 | 152 | |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | */ |
169 | 169 | public function setTitle($title) |
170 | 170 | { |
171 | - $this->title=(string) $title; |
|
171 | + $this->title = (string) $title; |
|
172 | 172 | return $this; |
173 | 173 | } |
174 | 174 | |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | public function setDescription($description) |
192 | 192 | { |
193 | - $this->description=(string) $description; |
|
193 | + $this->description = (string) $description; |
|
194 | 194 | return $this; |
195 | 195 | } |
196 | 196 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | */ |
213 | 213 | public function setLanguage($language) |
214 | 214 | { |
215 | - $this->language=(string) $language; |
|
215 | + $this->language = (string) $language; |
|
216 | 216 | return $this; |
217 | 217 | } |
218 | 218 | |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | |
282 | 282 | public function __get($property) |
283 | 283 | { |
284 | - $getter = "get" . ucfirst($property); |
|
284 | + $getter = "get".ucfirst($property); |
|
285 | 285 | if (method_exists($this, $getter)) { |
286 | 286 | return $this->$getter(); |
287 | 287 | } |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | public function __set($property, $value) |
297 | 297 | { |
298 | 298 | //$this->checkWriteAccess(); |
299 | - $setter = 'set' . ucfirst($property); |
|
299 | + $setter = 'set'.ucfirst($property); |
|
300 | 300 | if (method_exists($this, $setter)) { |
301 | 301 | $this->$setter($value); |
302 | 302 | return; |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * |
66 | 66 | * @param MvcEvent $event |
67 | 67 | * |
68 | - * @return null|\Zend\Http\PhpEnvironment\Response |
|
68 | + * @return null|\Zend\Stdlib\ResponseInterface |
|
69 | 69 | * @throws \UnexpectedValueException |
70 | 70 | */ |
71 | 71 | public function onRoute(MvcEvent $event) |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * @var array |
48 | 48 | */ |
49 | 49 | private $events = [ |
50 | - [ MvcEvent::EVENT_ROUTE, 'onRoute', 100 ], |
|
50 | + [MvcEvent::EVENT_ROUTE, 'onRoute', 100], |
|
51 | 51 | ]; |
52 | 52 | |
53 | 53 | /** |
@@ -59,12 +59,12 @@ discard block |
||
59 | 59 | { |
60 | 60 | parent::__construct($status); |
61 | 61 | |
62 | - $constant = 'self::' . strtoupper(str_replace(' ', '_', $status)); |
|
62 | + $constant = 'self::'.strtoupper(str_replace(' ', '_', $status)); |
|
63 | 63 | if (!defined($constant)) { |
64 | - throw new \DomainException('Unknown status: ' . $status); |
|
64 | + throw new \DomainException('Unknown status: '.$status); |
|
65 | 65 | } |
66 | - $this->name=constant($constant); |
|
67 | - $this->order=$this->getOrder(); |
|
66 | + $this->name = constant($constant); |
|
67 | + $this->order = $this->getOrder(); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function getName() |
76 | 76 | { |
77 | - return isset($this->name)?$this->name:''; |
|
77 | + return isset($this->name) ? $this->name : ''; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function __construct($basePath = '') |
51 | 51 | { |
52 | - $this->basePath = rtrim($basePath, '/') . '/'; |
|
52 | + $this->basePath = rtrim($basePath, '/').'/'; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | public function __invoke($name, array $params = []) |
65 | 65 | { |
66 | 66 | if (is_array($name)) { |
67 | - if (!isset($name[ 'ajax' ])) { |
|
67 | + if (!isset($name['ajax'])) { |
|
68 | 68 | throw new \InvalidArgumentException('Key "ajax" is required when passing array as first argument.'); |
69 | 69 | } |
70 | 70 | $params = $name; |
@@ -58,7 +58,7 @@ |
||
58 | 58 | $states = static::getStates(); |
59 | 59 | |
60 | 60 | if (!in_array($state, $states)) { |
61 | - throw new \InvalidArgumentException('Invalid state name: ' . $state); |
|
61 | + throw new \InvalidArgumentException('Invalid state name: '.$state); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | $this->state = $state; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * @param array $images |
60 | 60 | * @param PermissionsInterface $permissions |
61 | 61 | * |
62 | - * @return mixed |
|
62 | + * @return ImageSet |
|
63 | 63 | */ |
64 | 64 | public function setImages(array $images, PermissionsInterface $permissions = null); |
65 | 65 |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $imageSpecs = $this->options->getImages(); |
87 | 87 | |
88 | 88 | |
89 | - $images = [ ImageSetInterface::ORIGINAL => $this->createEntity($file, $data) ]; |
|
89 | + $images = [ImageSetInterface::ORIGINAL => $this->createEntity($file, $data)]; |
|
90 | 90 | |
91 | 91 | foreach ($imageSpecs as $key => $size) { |
92 | 92 | $newImage = ImageSetInterface::THUMBNAIL == $key |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | : $this->createImage($image, $size); |
95 | 95 | |
96 | 96 | if ($newImage) { |
97 | - $entity = $this->createEntity($newImage, $data, $key); |
|
97 | + $entity = $this->createEntity($newImage, $data, $key); |
|
98 | 98 | $images[$key] = $entity; |
99 | 99 | } |
100 | 100 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | |
143 | 143 | $entity |
144 | 144 | ->setFile($file) |
145 | - ->setName(($prefix ? "$prefix-" : '') . $data['name']) |
|
145 | + ->setName(($prefix ? "$prefix-" : '').$data['name']) |
|
146 | 146 | ->setType($data['type']) |
147 | 147 | ; |
148 | 148 |