@@ -88,7 +88,7 @@ |
||
88 | 88 | * |
89 | 89 | * @param Alpha\Util\Http\Request $request |
90 | 90 | * |
91 | - * @return Alpha\Util\Http\Response |
|
91 | + * @return Response |
|
92 | 92 | * |
93 | 93 | * @since 1.0 |
94 | 94 | */ |
@@ -88,7 +88,7 @@ |
||
88 | 88 | * |
89 | 89 | * @param Alpha\Util\Http\Request $request |
90 | 90 | * |
91 | - * @return Alpha\Util\Http\Response |
|
91 | + * @return Response |
|
92 | 92 | * |
93 | 93 | * @since 1.0 |
94 | 94 | */ |
@@ -1013,7 +1013,7 @@ |
||
1013 | 1013 | /** |
1014 | 1014 | * Get the current view renderer provider. |
1015 | 1015 | * |
1016 | - * @return Alpha\View\Renderer\RendererProviderInterface |
|
1016 | + * @return RendererProviderInterface |
|
1017 | 1017 | * |
1018 | 1018 | * @since 2.0 |
1019 | 1019 | */ |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | foreach ($attachments[0] as $attachmentURL) { |
157 | 157 | $start = mb_strpos($attachmentURL, '/'); |
158 | 158 | $end = mb_strrpos($attachmentURL, '"'); |
159 | - $fileName = mb_substr($attachmentURL, $start + 1, $end - ($start + 1)); |
|
159 | + $fileName = mb_substr($attachmentURL, $start+1, $end-($start+1)); |
|
160 | 160 | |
161 | 161 | if (method_exists($this->BO, 'getAttachmentSecureURL')) { |
162 | 162 | $this->content = str_replace($attachmentURL, 'href='.$this->BO->getAttachmentSecureURL($fileName), $this->content); |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | foreach ($attachments[0] as $attachmentURL) { |
171 | 171 | $start = mb_strpos($attachmentURL, '/'); |
172 | 172 | $end = mb_strrpos($attachmentURL, '" alt'); |
173 | - $fileName = mb_substr($attachmentURL, $start + 1, $end - ($start + 1)); |
|
173 | + $fileName = mb_substr($attachmentURL, $start+1, $end-($start+1)); |
|
174 | 174 | |
175 | 175 | if ($config->get('cms.images.widget')) { |
176 | 176 | // get the details of the source image |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | $type = 'png'; |
186 | 186 | } |
187 | 187 | |
188 | - $img = new Image($path, $image_details[0], $image_details[1], $type, 0.95, false, (boolean) $config->get('cms.images.widget.secure')); |
|
188 | + $img = new Image($path, $image_details[0], $image_details[1], $type, 0.95, false, (boolean)$config->get('cms.images.widget.secure')); |
|
189 | 189 | $this->content = str_replace($attachmentURL, $img->renderHTMLLink(), $this->content); |
190 | 190 | } else { |
191 | 191 | // render a normal image link to the ViewAttachment controller |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | 'state' => 'Account state', |
115 | 115 | 'URL' => 'Your site address', |
116 | 116 | 'rights' => 'Rights Group Membership', |
117 | - 'actions' => 'Actions', ); |
|
117 | + 'actions' => 'Actions',); |
|
118 | 118 | |
119 | 119 | /** |
120 | 120 | * The name of the database table for the class. |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $this->password->isPassword(true); |
179 | 179 | $this->state = new Enum(array( |
180 | 180 | 'Active', |
181 | - 'Disabled', )); |
|
181 | + 'Disabled',)); |
|
182 | 182 | $this->state->setValue('Active'); |
183 | 183 | $this->URL = new String(); |
184 | 184 | $this->URL->setRule(Validator::OPTIONAL_HTTP_URL); |
@@ -174,7 +174,7 @@ |
||
174 | 174 | $this->set('sequence', 0); |
175 | 175 | } |
176 | 176 | |
177 | - $this->set('sequence', $this->get('sequence') + 1); |
|
177 | + $this->set('sequence', $this->get('sequence')+1); |
|
178 | 178 | $this->save(); |
179 | 179 | } |
180 | 180 |