GrafiteInc/Html

View on GitHub

Showing 50 of 50 total issues

Method styles has 286 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function styles()
    {
        return <<<CSS
            @keyframes snow {
            0% {
Severity: Major
Found in src/Tags/Animations/Spaceman.php - About 1 day to fix

    Method styles has 234 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function styles()
        {
            return <<<CSS
                .wheel-and-hamster {
                    --dur: 1s;
    Severity: Major
    Found in src/Tags/Animations/Hamster.php - About 1 day to fix

      Method styles has 197 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function styles()
          {
              return <<<CSS
                  .typewriter {
                  --blue: #5C86FF;
      Severity: Major
      Found in src/Tags/Animations/Typewriter.php - About 7 hrs to fix

        Similar blocks of code found in 2 locations. Consider refactoring.
        Open

        <?php
        
        namespace Grafite\Html\Components;
        
        use Grafite\Html\Components\HtmlComponent;
        Severity: Major
        Found in src/Components/Parallax.php and 1 other location - About 5 hrs to fix
        src/Components/ImageCompare.php on lines 1..52

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 192.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 2 locations. Consider refactoring.
        Open

        <?php
        
        namespace Grafite\Html\Components;
        
        use Grafite\Html\Components\HtmlComponent;
        Severity: Major
        Found in src/Components/ImageCompare.php and 1 other location - About 5 hrs to fix
        src/Components/Parallax.php on lines 1..52

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 192.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        File Spaceman.php has 347 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        namespace Grafite\Html\Tags\Animations;
        
        use Grafite\Html\Tags\HtmlComponent;
        Severity: Minor
        Found in src/Tags/Animations/Spaceman.php - About 4 hrs to fix

          Method js has 100 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public static function js()
              {
                  $id = self::$id;
                  $effect = self::$effect;
          
          
          Severity: Major
          Found in src/Tags/Text.php - About 4 hrs to fix

            Method boot has 84 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function boot()
                {
                    $this->publishes([
                        __DIR__ . '/../config/html.php' => base_path('config/html.php'),
                    ]);
            Severity: Major
            Found in src/HtmlProvider.php - About 3 hrs to fix

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

                  public static function process()
                  {
                      $bg = self::$background ?? 'info';
                      $message = self::$text;
                      $heading = self::$heading;
              Severity: Major
              Found in src/Tags/Announcement.php and 1 other location - About 3 hrs to fix
              src/Tags/Alert.php on lines 34..67

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 148.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

                  public static function process()
                  {
                      $bg = self::$background ?? 'info';
                      $message = self::$text;
                      $heading = self::$heading;
              Severity: Major
              Found in src/Tags/Alert.php and 1 other location - About 3 hrs to fix
              src/Tags/Announcement.php on lines 70..103

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 148.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              File Hamster.php has 266 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              
              namespace Grafite\Html\Tags\Animations;
              
              use Grafite\Html\Tags\HtmlComponent;
              Severity: Minor
              Found in src/Tags/Animations/Hamster.php - About 2 hrs to fix

                Method process has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function process()
                    {
                        $collection = self::$collection;
                        $keys = self::$keys;
                        $sortable = self::$sortable;
                Severity: Major
                Found in src/Tags/Table.php - About 2 hrs to fix

                  Method js has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function js()
                      {
                          $id = self::$id;
                  
                          return <<<JS
                  Severity: Major
                  Found in src/Tags/ImageCompare.php - About 2 hrs to fix

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    <?php
                    
                    namespace Grafite\Html\Components;
                    
                    use Grafite\Html\Tags\DropdownItem as ItemTag;
                    Severity: Major
                    Found in src/Components/DropdownItem.php and 1 other location - About 2 hrs to fix
                    src/Components/DropdownItemButton.php on lines 1..34

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 126.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    <?php
                    
                    namespace Grafite\Html\Components;
                    
                    use Grafite\Html\Tags\DropdownItemButton as ButtonTag;
                    Severity: Major
                    Found in src/Components/DropdownItemButton.php and 1 other location - About 2 hrs to fix
                    src/Components/DropdownItem.php on lines 1..32

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 126.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Method process has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public static function process()
                        {
                            self::$html = <<<HTML
                                <div class="box-of-star1">
                                    <div class="star star-position1"></div>
                    Severity: Minor
                    Found in src/Tags/Animations/Spaceman.php - About 1 hr to fix

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      <?php
                      
                      namespace Grafite\Html\Tags;
                      
                      use Illuminate\Support\Str;
                      Severity: Major
                      Found in src/Tags/DropdownButton.php and 1 other location - About 1 hr to fix
                      src/Tags/DropdownButtonAction.php on lines 1..30

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 120.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      <?php
                      
                      namespace Grafite\Html\Tags;
                      
                      use Illuminate\Support\Str;
                      Severity: Major
                      Found in src/Tags/DropdownButtonAction.php and 1 other location - About 1 hr to fix
                      src/Tags/DropdownButton.php on lines 1..29

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 120.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      <?php
                      
                      namespace Grafite\Html\Tags;
                      
                      use Grafite\Html\Tags\HtmlComponent;
                      Severity: Major
                      Found in src/Tags/ListGroup.php and 1 other location - About 1 hr to fix
                      src/Tags/Breadcrumbs.php on lines 1..38

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 119.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      <?php
                      
                      namespace Grafite\Html\Tags;
                      
                      use Grafite\Html\Tags\HtmlComponent;
                      Severity: Major
                      Found in src/Tags/Breadcrumbs.php and 1 other location - About 1 hr to fix
                      src/Tags/ListGroup.php on lines 1..35

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 119.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Severity
                      Category
                      Status
                      Source
                      Language