filestack/filestack-php

View on GitHub
filestack/Filelink.php

Summary

Maintainability
D
1 day
Test Coverage

Filelink has 52 functions (exceeds 20 allowed). Consider refactoring.
Open

class Filelink
{
    use Mixins\CommonMixin;
    use Mixins\TransformationMixin;

Severity: Major
Found in filestack/Filelink.php - About 7 hrs to fix

    File Filelink.php has 403 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    namespace Filestack;
    
    use GuzzleHttp\Client;
    use Filestack\FilestackConfig;
    Severity: Minor
    Found in filestack/Filelink.php - About 5 hrs to fix

      The class Filelink has an overall complexity of 61 which is very high. The configured complexity threshold is 50.
      Invalid

      class Filelink
      {
          use Mixins\CommonMixin;
          use Mixins\TransformationMixin;
      
      
      Severity: Minor
      Found in filestack/Filelink.php by phpmd

      Method collage has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function collage($files, $width, $height,
              $color = 'white', $fit = 'auto', $margin = 10, $auto_rotate = false)
      Severity: Major
      Found in filestack/Filelink.php - About 50 mins to fix

        Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function __construct($handle, $api_key = '', $security = null,
                                        $http_client = null, $cname = null)
        Severity: Minor
        Found in filestack/Filelink.php - About 35 mins to fix

          Method ascii has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public function ascii($background = 'white', $colored = false,
                  $foreground='red', $reverse = false, $size = 100)
          Severity: Minor
          Found in filestack/Filelink.php - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status