Passed
Push — master ( 173a0c...14edb3 )
by Vitaly
19:05 queued 09:05
created
src/Application.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -442,7 +442,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/tab/Gallery.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Model.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
phpunit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.