pecm/pickling

View on GitHub

Showing 9 of 9 total issues

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

<?php
declare(strict_types = 1);
 
namespace Pickling\Resource;
 
 
Severity: Major
Found in src/Resource/PackageList.php and 1 other location - About 1 day to fix
src/Resource/CategoryList.php on lines 1..71

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

<?php
declare(strict_types = 1);
 
namespace Pickling\Resource;
 
 
Severity: Major
Found in src/Resource/CategoryList.php and 1 other location - About 1 day to fix
src/Resource/PackageList.php on lines 1..74

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

<?php
declare(strict_types = 1);
 
require_once __DIR__ . '/../vendor/autoload.php';
 
 
Severity: Major
Found in examples/11-category-feed.php and 2 other locations - About 5 hrs to fix
examples/12-package-feed.php on lines 1..34
examples/13-user-feed.php on lines 1..36

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

<?php
declare(strict_types = 1);
 
require_once __DIR__ . '/../vendor/autoload.php';
 
 
Severity: Major
Found in examples/13-user-feed.php and 2 other locations - About 5 hrs to fix
examples/11-category-feed.php on lines 1..34
examples/12-package-feed.php on lines 1..34

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

<?php
declare(strict_types = 1);
 
require_once __DIR__ . '/../vendor/autoload.php';
 
 
Severity: Major
Found in examples/12-package-feed.php and 2 other locations - About 5 hrs to fix
examples/11-category-feed.php on lines 1..34
examples/13-user-feed.php on lines 1..36

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

<?php
declare(strict_types = 1);
 
require_once __DIR__ . '/../vendor/autoload.php';
 
 
Severity: Major
Found in examples/01-package-list.php and 1 other location - About 2 hrs to fix
examples/00-category-list.php on lines 1..28

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

<?php
declare(strict_types = 1);
 
require_once __DIR__ . '/../vendor/autoload.php';
 
 
Severity: Major
Found in examples/00-category-list.php and 1 other location - About 2 hrs to fix
examples/01-package-list.php on lines 1..28

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

ChannelInterface $channel,
ClientInterface $httpClient,
RequestFactoryInterface $requestFactory,
StreamFactoryInterface $streamFactory,
string $packageName,
Severity: Minor
Found in src/Resource/Package/Release.php - About 45 mins to fix

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

    ChannelInterface $channel,
    ClientInterface $httpClient,
    RequestFactoryInterface $requestFactory,
    StreamFactoryInterface $streamFactory,
    string $packageName
    Severity: Minor
    Found in src/Resource/Package.php - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language