Questions tagged [pdepend]

PHP_Depend is a static code analyzer for PHP

See http://pdepend.org/ for more information.

9 questions
15
votes
2 answers

Why is the ternary operator more complex than if/else?

I'm testing my libraries with pdepend and some functions have incredibly high complexity. I just realized it comes from the ternary operator, but I'm not sure why. With a function like: function test($a) { return $a > 10 ? 5:20; …
leyou
  • 806
  • 1
  • 13
  • 25
3
votes
1 answer

PHP Depend (pdepend) ignores @package and uses namespaces as packages instead

I tried to compare the metrics of some PHP frameworks with PHP Depend and ran into annoying and probably unintended behavior: The @package annotation is being ignored, instead namespaces are treated as packages. This is a problem since often sub…
Fabian Schmengler
  • 24,155
  • 9
  • 79
  • 111
3
votes
1 answer

Jenkins display chart on dashboard

Possible Duplicate: Jenkins - add chart to the job interface The first question is - how can I add the pdepend chart to the Jenkins' dashboard (under the project's title) ? And the second question (I couldn't submit the post with the first one…
user1615069
  • 631
  • 4
  • 16
  • 26
2
votes
1 answer

PHP Depend code metrics analysis

I am trying to compare two PHP projects using PHP Depend (http://pdepend.org). One is a page-based PHP application written by a group of students a year ago and the second is mine that I have worked on for the past year. The objective is to provide…
Satyam
  • 645
  • 2
  • 7
  • 20
1
vote
1 answer

What is a "package" in terms of PHP Depend?

On the http://pdepend.org/documentation/handbook/reports/overview-pyramid.html it is said that: NOP - The Number Of Packages metric counts the packages within the analyzed software system. How the "package" is determined? Is it just @package…
zerkms
  • 249,484
  • 69
  • 436
  • 539
1
vote
1 answer

PDepend command not working in CakePHP

I am using CakePHP 2.3. And I have installed PDepend through composer.json. Following is code snippet of my composer.json file "require-dev": { "phpunit/phpunit": "4.2.*", "phploc/phploc": "*", "squizlabs/php_codesniffer": "2.*", …
Shivali
  • 21
  • 3
1
vote
0 answers

pdepend, no releases available

I'm trying to install PDepend on my Centos 6.3 server. For some reason I constantly receive an error that there are no packages/releases available. Things I already executed: pear upgrade pear clear-cache pear channel-discover pear.pdepend.org pear…
Ursel
  • 11
  • 2
0
votes
1 answer

Build failed ANT because pdepend is missing

I have been trying to set up an ubuntu server where ant tests my code. When I start ANT to test my code it starts with phploc-ci that goes fine. But the next check is pdepend I get the error Cannot run program "pdepend": error=2, No such file or…
Joey
  • 152
  • 3
  • 14
0
votes
1 answer

Error using PHP_Depend and PHP_PMD

I have a problem using php Depend and PMD. When I use: pdepend --summary-xml=/home//.sonar/pdepend.xml --suffix=php,php3,php4,php5,phtml,inc /home/ this is the result: Parsing... …
gopeca
  • 1,601
  • 12
  • 12