Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
Fixed meliCode method TO NOT null return
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjosh committed Feb 5, 2017
1 parent d0f2b89 commit f8095c6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ public function city()
*/
public function meliCode()
{
$i = 0;
$i = 1;

$code= null;

while($i <= 100){
Expand Down Expand Up @@ -248,6 +249,11 @@ public function meliCode()
$i++;
continue;
}

if(is_null($code)){
continue;
}

}

return $code;
Expand Down

0 comments on commit f8095c6

Please sign in to comment.