Passed
Push — master ( 1ac390...22382b )
by DeGracia
02:33
created
src/Manager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function score($password, array $criterias)
35 35
     {
36
-        $criteriasPassed = array_filter($criterias, function ($criteria) use ($password) {
36
+        $criteriasPassed = array_filter($criterias, function($criteria) use ($password) {
37 37
             return $criteria->passes($password);
38 38
         });
39 39
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     public function passed($password, array $criterias)
44 44
     {
45
-        $criteriasPassed = array_map(function ($criteria) use ($password) {
45
+        $criteriasPassed = array_map(function($criteria) use ($password) {
46 46
 
47 47
             return [
48 48
                 'name' => $criteria->getName(),
Please login to merge, or discard this patch.
src/Criteria.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
 class Criteria {
8 8
 
9 9
     protected $name;
10
-	protected $dictionary;
11
-	protected $occurrence;
10
+    protected $dictionary;
11
+    protected $occurrence;
12 12
 
13 13
     public function __construct($name, Contracts\Dictionary $dictionary, Contracts\Occurrence $occurrence)
14 14
     {
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function setName($name)
26 26
     {
27 27
         if (! $name) {
28
-             $name = $this->dictionary->getName() . '_' . $this->occurrence->getName();
28
+                $name = $this->dictionary->getName() . '_' . $this->occurrence->getName();
29 29
         }
30 30
 
31 31
         return $this->name = $name;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     
25 25
     public function setName($name)
26 26
     {
27
-        if (! $name) {
27
+        if (!$name) {
28 28
              $name = $this->dictionary->getName() . '_' . $this->occurrence->getName();
29 29
         }
30 30
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $tmp = [];
40 40
 
41
-        for ($i=0; $i < $size; $i++) {
41
+        for ($i = 0; $i < $size; $i++) {
42 42
 
43 43
             shuffle($dictionary);
44 44
 
Please login to merge, or discard this patch.