Passed
Pull Request — master (#15)
by Anton
02:52
created
application/modules/media/controllers/grid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  *
21 21
  * @return array
22 22
  */
23
-return function () {
23
+return function() {
24 24
     /**
25 25
      * @var Controller $this
26 26
      */
Please login to merge, or discard this patch.
application/modules/media/controllers/crud.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
  * @throws \Bluz\Application\Exception\ForbiddenException
30 30
  * @throws \Bluz\Application\Exception\NotImplementedException
31 31
  */
32
-return function () {
32
+return function() {
33 33
     /**
34 34
      * @var Controller $this
35 35
      */
Please login to merge, or discard this patch.
application/modules/media/controllers/progress.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * @return string
19 19
  * @throws Exception
20 20
  */
21
-return function ($file) {
21
+return function($file) {
22 22
     /**
23 23
      * @var Controller $this
24 24
      */
Please login to merge, or discard this patch.
application/modules/media/controllers/upload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
  * @throws BadRequestException
27 27
  * @throws ConfigException
28 28
  */
29
-return function () {
29
+return function() {
30 30
     /**
31 31
      * @var Controller $this
32 32
      * @var UploadedFile $file
Please login to merge, or discard this patch.
application/modules/media/controllers/manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 /**
18 18
  * @return array
19 19
  */
20
-return function () {
20
+return function() {
21 21
     /**
22 22
      * @var Controller $this
23 23
      */
Please login to merge, or discard this patch.
application/models/Media/Manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
         // If file already exists, increment name
195 195
         $originFileName = $fileName;
196 196
         $counter = 0;
197
-        while (file_exists($path .'/'.$fileName.'.'.$fileExt)) {
197
+        while (file_exists($path.'/'.$fileName.'.'.$fileExt)) {
198 198
             $counter++;
199 199
             $fileName = $originFileName.'-'.$counter;
200 200
         }
Please login to merge, or discard this patch.
application/configs/testing/module.media.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
  * @return   array
9 9
  */
10 10
 return [
11
-    'path' => PATH_ROOT . '/tests/files/test.jpg',
12
-    'upload_path' => PATH_PUBLIC . '/tests/uploads'
11
+    'path' => PATH_ROOT.'/tests/files/test.jpg',
12
+    'upload_path' => PATH_PUBLIC.'/tests/uploads'
13 13
 ];
Please login to merge, or discard this patch.
application/models/Media/Service.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         // If file already exists, increment name
107 107
         $originFileName = $fileName;
108 108
         $counter = 0;
109
-        while (file_exists($fullPath .'/'.$fileName.'.'.$fileExt)) {
109
+        while (file_exists($fullPath.'/'.$fileName.'.'.$fileExt)) {
110 110
             $counter++;
111 111
             $fileName = $originFileName.'-'.$counter;
112 112
         }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     public static function thumbnail($row, $width = self::THUMB_WIDTH, $height = self::THUMB_HEIGHT)
132 132
     {
133 133
         // set full path
134
-        $image = new Thumbnail(PATH_PUBLIC .'/'. $row->file);
134
+        $image = new Thumbnail(PATH_PUBLIC.'/'.$row->file);
135 135
         $image->setWidth($width);
136 136
         $image->setHeight($height);
137 137
         $thumb = $image->generate();
Please login to merge, or discard this patch.
application/modules/media/controllers/list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 /**
18 18
  * @return array
19 19
  */
20
-return function () {
20
+return function() {
21 21
     /**
22 22
      * @var Controller $this
23 23
      */
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     $images = Table::getInstance()->getImages();
27 27
 
28
-    $images = array_map(static function ($image) {
28
+    $images = array_map(static function($image) {
29 29
         return [
30 30
             'id' => $image->id,
31 31
             'title' => $image->title,
Please login to merge, or discard this patch.