Passed
Push — master ( 6b7895...39c748 )
by Nate
03:35
created
src/helpers/ObjectHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $object = new $class();
63 63
 
64 64
         // Populate
65
-        if($config) {
65
+        if ($config) {
66 66
             static::populate($object, $config);
67 67
         }
68 68
 
Please login to merge, or discard this patch.
src/helpers/LoggingHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public static function prefixSessionData()
35 35
     {
36
-        return function ($message) {
36
+        return function($message) {
37 37
             $request = Craft::$app->getRequest();
38 38
             $ip = $request instanceof Request ? $request->getUserIP() : '-';
39 39
 
Please login to merge, or discard this patch.
src/helpers/SiteHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public static function resolveSiteId(int $siteId = null): int
24 24
     {
25 25
 
26
-        if(is_null($siteId)) {
26
+        if (is_null($siteId)) {
27 27
 
28 28
             $siteId = Craft::$app->getSites()->currentSite->id;
29 29
 
Please login to merge, or discard this patch.
src/helpers/QueryHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
25 25
     {
26 26
 
27 27
         // No bueno
28
-        if(empty($config)) {
28
+        if (empty($config)) {
29 29
             return $query;
30 30
         }
31 31
 
32 32
         // Force array
33
-        if(!is_array($config)) {
33
+        if (!is_array($config)) {
34 34
             $config = ArrayHelper::toArray($config, [], false);
35 35
         }
36 36
 
Please login to merge, or discard this patch.
src/helpers/RecordHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     public static function conditionToCriteria($condition)
107 107
     {
108 108
         
109
-        if(empty($condition)){ 
109
+        if (empty($condition)) { 
110 110
             return $condition;
111 111
         }
112 112
 
Please login to merge, or discard this patch.
src/behaviors/RecordAccessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
         $query = $recordClass::find();
67 67
 
68
-        if($criteria) {
68
+        if ($criteria) {
69 69
 
70 70
             QueryHelper::configure(
71 71
                 $query,
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         // Do we need to set properties too
124 124
         if ($properties) {
125 125
 
126
-            if(!is_array($properties)) {
126
+            if (!is_array($properties)) {
127 127
                 $properties = ArrayHelper::toArray($properties, [], false);
128 128
             }
129 129
 
Please login to merge, or discard this patch.