@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | foreach ($attachments[0] as $attachmentURL) { |
| 123 | 123 | $start = mb_strpos($attachmentURL, '/'); |
| 124 | 124 | $end = mb_strrpos($attachmentURL, '"'); |
| 125 | - $fileName = mb_substr($attachmentURL, $start + 1, $end - ($start + 1)); |
|
| 125 | + $fileName = mb_substr($attachmentURL, $start+1, $end-($start+1)); |
|
| 126 | 126 | |
| 127 | 127 | if (method_exists($this->BO, 'getAttachmentSecureURL')) { |
| 128 | 128 | $this->content = str_replace($attachmentURL, 'href="'.$this->BO->getAttachmentSecureURL($fileName).'" rel="nofollow"', $this->content); |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $type = 'png'; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | - $img = new Image($path, $image_details[0], $image_details[1], $type, 0.95, false, (boolean) $config->get('cms.images.widget.secure')); |
|
| 153 | + $img = new Image($path, $image_details[0], $image_details[1], $type, 0.95, false, (boolean)$config->get('cms.images.widget.secure')); |
|
| 154 | 154 | |
| 155 | 155 | $this->content = str_replace($attachmentURL, $img->renderHTMLLink(), $this->content); |
| 156 | 156 | } else { |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | $iv |
| 73 | 73 | ); |
| 74 | 74 | |
| 75 | - return $iv . $encryptedData; |
|
| 75 | + return $iv.$encryptedData; |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Alpha\Util\Config\ConfigProvider; |
| 7 | 7 | use Alpha\Util\Http\Request; |
| 8 | 8 | use Alpha\Util\Http\Response; |
| 9 | -use Alpha\Util\Http\Session\SessionProviderFactory; |
|
| 10 | 9 | use Alpha\View\View; |
| 11 | 10 | use Alpha\Controller\Front\FrontController; |
| 12 | 11 | |
@@ -629,15 +629,15 @@ |
||
| 629 | 629 | $unixTS = $this->getUnixValue(); |
| 630 | 630 | |
| 631 | 631 | if ($now > $unixTS) { |
| 632 | - $difference = $now - $unixTS; |
|
| 632 | + $difference = $now-$unixTS; |
|
| 633 | 633 | $tense = 'ago'; |
| 634 | 634 | } else { |
| 635 | - $difference = $unixTS - $now; |
|
| 635 | + $difference = $unixTS-$now; |
|
| 636 | 636 | $tense = 'from now'; |
| 637 | 637 | } |
| 638 | 638 | |
| 639 | - for ($i = 0; $difference >= $lengths[$i] && $i < count($lengths) - 1; ++$i) { |
|
| 640 | - $difference = round($difference / $lengths[$i]); |
|
| 639 | + for ($i = 0; $difference >= $lengths[$i] && $i < count($lengths)-1; ++$i) { |
|
| 640 | + $difference = round($difference/$lengths[$i]); |
|
| 641 | 641 | } |
| 642 | 642 | |
| 643 | 643 | $difference = round($difference); |
@@ -454,7 +454,7 @@ |
||
| 454 | 454 | * Custom version of the check rights method that only checks for a session for the config admin username/password, |
| 455 | 455 | * when the system database is not set-up. |
| 456 | 456 | * |
| 457 | - * @return bool |
|
| 457 | + * @return boolean|null |
|
| 458 | 458 | * |
| 459 | 459 | * @since 1.0 |
| 460 | 460 | */ |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | * A static method that attempts to return a ActiveRecordProviderInterface instance |
| 68 | 68 | * based on the name of the provider class supplied. |
| 69 | 69 | * |
| 70 | - * @param $providerName The fully-qualified class name of the provider class. |
|
| 70 | + * @param string $providerName The fully-qualified class name of the provider class. |
|
| 71 | 71 | * @param $BO The (optional) active record instance to pass to the persistance provider for mapping. |
| 72 | 72 | * |
| 73 | 73 | * @throws \Alpha\Exception\IllegalArguementException |
@@ -222,6 +222,7 @@ discard block |
||
| 222 | 222 | * (non-PHPdoc) |
| 223 | 223 | * |
| 224 | 224 | * @see Alpha\Model\ActiveRecord::loadAllByAttribute() |
| 225 | + * @param string $attribute |
|
| 225 | 226 | */ |
| 226 | 227 | public function loadAllByAttribute($attribute, $value, $start = 0, $limit = 0, $orderBy = 'OID', $order = 'ASC', $ignoreClassType = false, $constructorArgs = array()) |
| 227 | 228 | { |
@@ -312,7 +313,7 @@ discard block |
||
| 312 | 313 | /** |
| 313 | 314 | * Returns an array of the OIDs of the related objects. |
| 314 | 315 | * |
| 315 | - * @return array |
|
| 316 | + * @return integer[] |
|
| 316 | 317 | * |
| 317 | 318 | * @since 1.0 |
| 318 | 319 | */ |
@@ -325,7 +326,7 @@ discard block |
||
| 325 | 326 | * Used to set the OIDs of the related objects. Pass a two-item array of OIDs, the first |
| 326 | 327 | * one being the left object OID, the second being the right. |
| 327 | 328 | * |
| 328 | - * @param array $OIDs |
|
| 329 | + * @param string[] $OIDs |
|
| 329 | 330 | * |
| 330 | 331 | * @since 1.0 |
| 331 | 332 | * |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * A static method that attempts to return a CacheProviderInterface instance |
| 64 | 64 | * based on the name of the provider class supplied. |
| 65 | 65 | * |
| 66 | - * @param $providerName The class name of the provider class (fully qualified). |
|
| 66 | + * @param string $providerName The class name of the provider class (fully qualified). |
|
| 67 | 67 | * |
| 68 | 68 | * @throws \Alpha\Exception\IllegalArguementException |
| 69 | 69 | * |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * A static method that attempts to return a HighlightProviderInterface instance |
| 64 | 64 | * based on the name of the provider class supplied. |
| 65 | 65 | * |
| 66 | - * @param $providerName The fully-qualified class name of the provider class, should implement Alpha\Util\Code\Highlight\HighlightProviderInterface |
|
| 66 | + * @param string $providerName The fully-qualified class name of the provider class, should implement Alpha\Util\Code\Highlight\HighlightProviderInterface |
|
| 67 | 67 | * |
| 68 | 68 | * @throws \Alpha\Exception\IllegalArguementException |
| 69 | 69 | * |