reginaldojunior /
winners
This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | require 'PagseguroController.php'; |
||
| 4 | |||
| 5 | class PagamentoController |
||
| 6 | { |
||
| 7 | |||
| 8 | private $gateway = ''; |
||
| 9 | |||
| 10 | public function __construct($gateway) |
||
| 11 | { |
||
| 12 | $this->gateway = new $gateway(); |
||
|
0 ignored issues
–
show
|
|||
| 13 | } |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return void |
||
| 17 | * @param String $token |
||
| 18 | **/ |
||
| 19 | public function setToken($token) |
||
| 20 | { |
||
| 21 | $this->gateway->setToken($token); |
||
|
0 ignored issues
–
show
|
|||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return void |
||
| 26 | * @param String $email |
||
| 27 | **/ |
||
| 28 | public function setEmail($email) |
||
| 29 | { |
||
| 30 | $this->gateway->setEmail($email); |
||
|
0 ignored issues
–
show
|
|||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return String $token |
||
| 35 | **/ |
||
| 36 | public function getToken() |
||
| 37 | { |
||
| 38 | return $this->gateway->getToken(); |
||
|
0 ignored issues
–
show
|
|||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return String $email |
||
| 43 | **/ |
||
| 44 | public function getEmail() |
||
| 45 | { |
||
| 46 | return $this->gateway->getEmail(); |
||
|
0 ignored issues
–
show
|
|||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return void |
||
| 51 | * @param Array $produtos |
||
|
0 ignored issues
–
show
There is no parameter named
$produtos. Did you maybe mean $produto?
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit. Consider the following example. The parameter /**
* @param array $germany
* @param array $ireland
*/
function finale($germany, $island) {
return "2:1";
}
The most likely cause is that the parameter was changed, but the annotation was not. Loading history...
|
|||
| 52 | **/ |
||
| 53 | public function setProdutos($produto) |
||
| 54 | { |
||
| 55 | $this->gateway->setProdutos($produto); |
||
|
0 ignored issues
–
show
|
|||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return Array $produto |
||
| 60 | **/ |
||
| 61 | public function getProdutos() |
||
| 62 | { |
||
| 63 | return $this->gateway->getProdutos(); |
||
|
0 ignored issues
–
show
|
|||
| 64 | } |
||
| 65 | |||
| 66 | public function adicionarProdutosGateway() |
||
| 67 | { |
||
| 68 | return $this->gateway->adicionarProdutosGateway(); |
||
|
0 ignored issues
–
show
|
|||
| 69 | } |
||
| 70 | |||
| 71 | public function setEndereco($endereco) |
||
| 72 | { |
||
| 73 | $this->gateway->setEndereco($endereco); |
||
|
0 ignored issues
–
show
|
|||
| 74 | } |
||
| 75 | |||
| 76 | public function getEndereco() |
||
| 77 | { |
||
| 78 | return $this->gateway->getEndereco(); |
||
|
0 ignored issues
–
show
|
|||
| 79 | } |
||
| 80 | |||
| 81 | public function setEnderecoClienteGateway() |
||
| 82 | { |
||
| 83 | return $this->gateway->setEnderecoClienteGateway(); |
||
|
0 ignored issues
–
show
|
|||
| 84 | } |
||
| 85 | |||
| 86 | public function setReference($reference) |
||
| 87 | { |
||
| 88 | $this->gateway->setReference($reference); |
||
|
0 ignored issues
–
show
|
|||
| 89 | } |
||
| 90 | |||
| 91 | public function getReference() |
||
| 92 | { |
||
| 93 | return $this->gateway->getReference(); |
||
|
0 ignored issues
–
show
|
|||
| 94 | } |
||
| 95 | |||
| 96 | public function setValorFrete($valor_frete) |
||
| 97 | { |
||
| 98 | $this->gateway->setValorFrete($valor_frete); |
||
|
0 ignored issues
–
show
|
|||
| 99 | } |
||
| 100 | |||
| 101 | public function getValorFrete() |
||
| 102 | { |
||
| 103 | return $this->gateway->getValorFrete(); |
||
|
0 ignored issues
–
show
|
|||
| 104 | } |
||
| 105 | |||
| 106 | public function setCliente($cliente) |
||
| 107 | { |
||
| 108 | $this->gateway->setCliente($cliente); |
||
|
0 ignored issues
–
show
|
|||
| 109 | } |
||
| 110 | |||
| 111 | public function getCliente() |
||
| 112 | { |
||
| 113 | return $this->gateway->getCliente(); |
||
|
0 ignored issues
–
show
|
|||
| 114 | } |
||
| 115 | |||
| 116 | public function setClienteGateway() |
||
| 117 | { |
||
| 118 | return $this->gateway->setClienteGateway(); |
||
|
0 ignored issues
–
show
|
|||
| 119 | } |
||
| 120 | |||
| 121 | public function finalizarPedido() |
||
| 122 | { |
||
| 123 | return $this->gateway->finalizarPedido(); |
||
|
0 ignored issues
–
show
|
|||
| 124 | } |
||
| 125 | |||
| 126 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..