Completed
Push — master ( b30f8b...b7859f )
by Basil
05:32 queued 17s
created
modules/admin/helpers/Storage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,8 @@
 block discarded – undo
103 103
         $height = 0;
104 104
         
105 105
         if (isset($dimensions[0]) && isset($dimensions[1])) {
106
-            $width = (int)$dimensions[0];
107
-            $height = (int)$dimensions[1];
106
+            $width = (int) $dimensions[0];
107
+            $height = (int) $dimensions[1];
108 108
         } elseif ($throwException) {
109 109
             throw new Exception("Unable to determine the resoltuions of the file $filePath.");
110 110
         }
Please login to merge, or discard this patch.
modules/admin/importers/StorageImporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         foreach ($imageList as $image) {
59 59
             if (array_key_exists($image['file_id'], $allStorageFileEntries)) {
60
-                $filterImage = $image['filter_id'] . '_' . $allStorageFileEntries[$image['file_id']]['name_new_compound'];
60
+                $filterImage = $image['filter_id'].'_'.$allStorageFileEntries[$image['file_id']]['name_new_compound'];
61 61
                 foreach ($storageFileList as $key => $file) {
62 62
                     if ($filterImage == pathinfo($file, PATHINFO_BASENAME)) {
63 63
                         unset($storageFileList[$key]);
Please login to merge, or discard this patch.
modules/admin/ngrest/aw/CallbackFormWidget.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     
61 61
     private function getFieldId($name)
62 62
     {
63
-        return Inflector::camel2id($this->id . $name);
63
+        return Inflector::camel2id($this->id.$name);
64 64
     }
65 65
     
66 66
     public function run()
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         // do we have option params for the button
70 70
         $params = (array_key_exists('params', $this->options)) ? $this->options['params'] : [];
71 71
         // create the angular controller name
72
-        $controller = 'Controller'.Inflector::camelize($this->id) . Inflector::camelize($this->callback) . time();
72
+        $controller = 'Controller'.Inflector::camelize($this->id).Inflector::camelize($this->callback).time();
73 73
         // render and return the view with the specific params
74 74
         return $this->render('@admin/views/aws/base/_callbackForm', [
75 75
             'angularCrudControllerName' => $controller,
Please login to merge, or discard this patch.
modules/admin/ngrest/base/ActiveWindow.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     public function getHashName()
75 75
     {
76 76
         if ($this->_hashName === null) {
77
-            $this->_hashName = sha1($this->getName() . $this->icon . $this->alias);
77
+            $this->_hashName = sha1($this->getName().$this->icon.$this->alias);
78 78
         }
79 79
         
80 80
         return $this->_hashName;
Please login to merge, or discard this patch.
modules/admin/ngrest/base/ActiveWindowView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         // do we have option params for the button
25 25
         $params = (array_key_exists('params', $options)) ? $options['params'] : [];
26 26
         // create the angular controller name
27
-        $controller = 'Controller'.Inflector::camelize($value) . Inflector::camelize($callback);
27
+        $controller = 'Controller'.Inflector::camelize($value).Inflector::camelize($callback);
28 28
         // render and return the view with the specific params
29 29
         return $this->render('@admin/views/aws/base/_callbackButton', [
30 30
             'angularCrudControllerName' => $controller,
Please login to merge, or discard this patch.
modules/admin/image/Item.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             $apply = Yii::$app->storage->addImage($this->getFileId(), $this->getFilterId());
49 49
         }
50 50
         
51
-        return ($this->getFile()) ? Yii::$app->storage->httpPath . '/' . $this->getFilterId() . '_' . $this->getFile()->getSystemFileName() : false;
51
+        return ($this->getFile()) ? Yii::$app->storage->httpPath.'/'.$this->getFilterId().'_'.$this->getFile()->getSystemFileName() : false;
52 52
     }
53 53
     
54 54
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function getServerSource()
59 59
     {
60
-        return ($this->getFile()) ? Yii::$app->storage->serverPath . '/' . $this->getFilterId() . '_' . $this->getFile()->getSystemFileName() : false;
60
+        return ($this->getFile()) ? Yii::$app->storage->serverPath.'/'.$this->getFilterId().'_'.$this->getFile()->getSystemFileName() : false;
61 61
     }
62 62
     
63 63
     /**
Please login to merge, or discard this patch.
modules/admin/file/Item.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function getHttpSource()
146 146
     {
147
-        return Yii::$app->storage->httpPath . '/' . $this->itemArray['name_new_compound'];
147
+        return Yii::$app->storage->httpPath.'/'.$this->itemArray['name_new_compound'];
148 148
     }
149 149
     
150 150
     /**
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function getServerSource()
155 155
     {
156
-        return Yii::$app->storage->serverPath . '/' . $this->itemArray['name_new_compound'];
156
+        return Yii::$app->storage->serverPath.'/'.$this->itemArray['name_new_compound'];
157 157
     }
158 158
     
159 159
     /**
Please login to merge, or discard this patch.
modules/admin/storage/QueryTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     {
89 89
         $data = array_filter($this->getDataProvider(), [$this, 'whereFilter']);
90 90
         
91
-        return (count($data) !== 0) ? $this->createItem(array_values($data)[0]): false;
91
+        return (count($data) !== 0) ? $this->createItem(array_values($data)[0]) : false;
92 92
     }
93 93
     
94 94
     /**
Please login to merge, or discard this patch.
modules/admin/components/StorageContainer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     public function getHttpPath()
111 111
     {
112 112
         if ($this->_httpPath === null) {
113
-            $this->_httpPath = $this->request->baseUrl . '/storage';
113
+            $this->_httpPath = $this->request->baseUrl.'/storage';
114 114
         }
115 115
         
116 116
         return $this->_httpPath;
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     public function getServerPath()
124 124
     {
125 125
         if ($this->_serverPath === null) {
126
-            $this->_serverPath = Yii::getAlias('@webroot') . '/storage';
126
+            $this->_serverPath = Yii::getAlias('@webroot').'/storage';
127 127
         }
128 128
         
129 129
         return $this->_serverPath;
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
         
231 231
         $newName = implode([$baseName.'_'.$fileHashName, $fileInfo->extension], '.');
232 232
         
233
-        $savePath = $this->serverPath . '/' . $newName;
233
+        $savePath = $this->serverPath.'/'.$newName;
234 234
         
235 235
         if (is_uploaded_file($fileSource)) {
236 236
             if (!@move_uploaded_file($fileSource, $savePath)) {
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
             $image = $imagine->open($fileQuery->serverSource);
323 323
             
324 324
             $fileName = $filterId.'_'.$fileQuery->systemFileName;
325
-            $fileSavePath = $this->serverPath . '/' . $fileName;
325
+            $fileSavePath = $this->serverPath.'/'.$fileName;
326 326
             if (empty($filterId)) {
327 327
                 $save = $image->save($fileSavePath);
328 328
             } else {
Please login to merge, or discard this patch.