Completed
Push — master ( 1b9160...c5d9c5 )
by Павел
04:49
created
src/Zerg/Field/AbstractField.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
      * Check that given value is valid.
99 99
      *
100 100
      * @param $value mixed Checked value.
101
-     * @return true On success validation.
101
+     * @return boolean On success validation.
102 102
      * @throws AssertException On assertion fail.
103 103
      */
104 104
     public function validate($value)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     public function configure(array $properties)
48 48
     {
49 49
         foreach ($properties as $name => $value) {
50
-            $methodName = 'set' . ucfirst(strtolower($name));
50
+            $methodName = 'set'.ucfirst(strtolower($name));
51 51
             if (method_exists($this, $methodName)) {
52 52
                 $this->$methodName($value);
53 53
             }
Please login to merge, or discard this patch.
src/Zerg/Field/Enum.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
 
51 51
         if ($value === null) {
52 52
             throw new InvalidKeyException(
53
-                "Value '{$key}' does not correspond to a valid enum key. Presented keys: '" .
54
-                implode("', '", array_keys($values)) . "'"
53
+                "Value '{$key}' does not correspond to a valid enum key. Presented keys: '".
54
+                implode("', '", array_keys($values))."'"
55 55
             );
56 56
         }
57 57
 
Please login to merge, or discard this patch.
src/Zerg/Field/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     {
22 22
         $fieldType = array_shift($declaration);
23 23
 
24
-        $class = "\\Zerg\\Field\\" . ucfirst(strtolower($fieldType));
24
+        $class = "\\Zerg\\Field\\".ucfirst(strtolower($fieldType));
25 25
         if (class_exists($class)) {
26 26
             $reflection = new \ReflectionClass($class);
27 27
             return $reflection->newInstanceArgs($declaration);
Please login to merge, or discard this patch.
src/Zerg/Field/Conditional.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,8 @@
 block discarded – undo
79 79
             $field = $this->default;
80 80
         } else {
81 81
             throw new InvalidKeyException(
82
-                "Value '{$key}' does not correspond to a valid conditional key. Presented keys: '" .
83
-                implode("', '", array_keys($this->fields)) . "'"
82
+                "Value '{$key}' does not correspond to a valid conditional key. Presented keys: '".
83
+                implode("', '", array_keys($this->fields))."'"
84 84
             );
85 85
         }
86 86
 
Please login to merge, or discard this patch.