Last active
January 15, 2016 10:50
-
-
Save event15/dd6886b01d030c423cc1 to your computer and use it in GitHub Desktop.
Pierwszy refaktoring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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