Skip to content

Instantly share code, notes, and snippets.

@event15
Last active January 15, 2016 10:50
Show Gist options
  • Save event15/dd6886b01d030c423cc1 to your computer and use it in GitHub Desktop.
Save event15/dd6886b01d030c423cc1 to your computer and use it in GitHub Desktop.
Pierwszy refaktoring
<?php
namespace Kata;
class PrimeFactors
{
public function factorize($number)
{
if($number > 1) {
return [$number];
}
return [];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment