Skip to content

Commit 389a36e

Browse files
authored
Merge pull request #398 from josegonzalez/fix-phpcs-violations
Fix phpcs violations
2 parents 95f310f + 07a9c14 commit 389a36e

File tree

6 files changed

+10
-0
lines changed

6 files changed

+10
-0
lines changed

src/File/Path/Basepath/DefaultTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function basepath()
3939
'{microtime}' => microtime(),
4040
'{DS}' => DIRECTORY_SEPARATOR,
4141
];
42+
4243
return str_replace(
4344
array_keys($replacements),
4445
array_values($replacements),

src/File/Path/Filename/DefaultTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function filename()
1818
if (is_callable($processor)) {
1919
return $processor($this->data, $this->settings);
2020
}
21+
2122
return $this->data['name'];
2223
}
2324
}

src/File/Writer/DefaultWriter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ public function writeFile(FilesystemInterface $filesystem, $file, $path)
125125
}
126126
$this->deletePath($filesystem, $tempPath);
127127
fclose($stream);
128+
128129
return $success;
129130
}
130131

src/Model/Behavior/UploadBehavior.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ public function constructFiles(Entity $entity, $data, $field, $settings, $basepa
227227
$transformerClass
228228
));
229229
}
230+
230231
return $results;
231232
}
232233
}

src/Validation/Traits/ImageValidationTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public static function isAboveMinWidth($check, $width)
1818
return false;
1919
}
2020
list($imgWidth) = getimagesize($check['tmp_name']);
21+
2122
return $width > 0 && $imgWidth >= $width;
2223
}
2324

@@ -35,6 +36,7 @@ public static function isBelowMaxWidth($check, $width)
3536
return false;
3637
}
3738
list($imgWidth) = getimagesize($check['tmp_name']);
39+
3840
return $width > 0 && $imgWidth <= $width;
3941
}
4042

@@ -52,6 +54,7 @@ public static function isAboveMinHeight($check, $height)
5254
return false;
5355
}
5456
list(, $imgHeight) = getimagesize($check['tmp_name']);
57+
5558
return $height > 0 && $imgHeight >= $height;
5659
}
5760

@@ -69,6 +72,7 @@ public static function isBelowMaxHeight($check, $height)
6972
return false;
7073
}
7174
list(, $imgHeight) = getimagesize($check['tmp_name']);
75+
7276
return $height > 0 && $imgHeight <= $height;
7377
}
7478
}

src/Validation/Traits/UploadValidationTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public static function isAboveMinSize($check, $size)
7676
if (!isset($check['size']) || !strlen($check['size'])) {
7777
return false;
7878
}
79+
7980
return $check['size'] >= $size;
8081
}
8182

@@ -92,6 +93,7 @@ public static function isBelowMaxSize($check, $size)
9293
if (!isset($check['size']) || !strlen($check['size'])) {
9394
return false;
9495
}
96+
9597
return $check['size'] <= $size;
9698
}
9799
}

0 commit comments

Comments
 (0)