@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Initialize module |
31 | 31 | * @param array $params Collection of parameters |
32 | - * @return bool True if success |
|
32 | + * @return boolean|null True if success |
|
33 | 33 | */ |
34 | 34 | public function init(array $params = array()) |
35 | 35 | { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | return array('status' => true, 'html' => $this->getHTML($materialFieldId)); |
130 | 130 | } |
131 | 131 | |
132 | - /** |
|
132 | + /** |
|
133 | 133 | * Controller for getting quantity image in gallery. |
134 | 134 | * |
135 | 135 | * @param integer $materialFieldId identefier Table MaterialField |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | return $response; |
149 | 149 | } |
150 | 150 | |
151 | - /** |
|
151 | + /** |
|
152 | 152 | * Controller for update material image properties alt from gallery. |
153 | 153 | * |
154 | 154 | * @param int $imageId Gallery image identifier |
@@ -442,7 +442,7 @@ |
||
442 | 442 | { |
443 | 443 | /** @var string $sizeLetters Size shortcuts */ |
444 | 444 | $sizeLetters = 'BKBMBGBTBPB'; |
445 | - $factor = (int)(floor((strlen($bytes) - 1) / 3)); |
|
445 | + $factor = (int) (floor((strlen($bytes) - 1) / 3)); |
|
446 | 446 | $sizeLetter = ($factor <= 0) ? substr($sizeLetters, 0, 1) : substr($sizeLetters, $factor * 2 - 1, 2); |
447 | 447 | return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . $sizeLetter; |
448 | 448 | } |
@@ -9,7 +9,6 @@ |
||
9 | 9 | namespace samsoncms\app\gallery\tab; |
10 | 10 | |
11 | 11 | use samson\activerecord\field; |
12 | -use samson\cms\Navigation; |
|
13 | 12 | use samsoncms\form\tab\Generic; |
14 | 13 | use samsonframework\core\RenderInterface; |
15 | 14 | use samsonframework\orm\QueryInterface; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: onysko |
|
5 | - * Date: 10.06.2015 |
|
6 | - * Time: 16:43 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: onysko |
|
5 | + * Date: 10.06.2015 |
|
6 | + * Time: 16:43 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace samsoncms\app\gallery\tab; |
10 | 10 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: egorov |
|
5 | - * Date: 29.08.2015 |
|
6 | - * Time: 11:17 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: egorov |
|
5 | + * Date: 29.08.2015 |
|
6 | + * Time: 11:17 |
|
7 | + */ |
|
8 | 8 | namespace samsoncms\app\gallery; |
9 | 9 | |
10 | 10 | /** |
@@ -5,7 +5,7 @@ |
||
5 | 5 | */ |
6 | 6 | |
7 | 7 | /** Set composer autoloader */ |
8 | -require __DIR__.'/vendor/autoload.php'; |
|
8 | +require __DIR__ . '/vendor/autoload.php'; |
|
9 | 9 | |
10 | 10 | /** Set The Default Timezone */ |
11 | 11 | date_default_timezone_set('UTC'); |