Passed
Branch main (51c2cf)
by Wagner
02:18
created
src/GeraLayout.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,17 +31,17 @@
 block discarded – undo
31 31
      * @param array $fields
32 32
      * @return GeraLayout
33 33
      */
34
-     public function geraLayoutSyspaplic(array $fields): GeraLayout
35
-     {
36
-         $this->syspaplic($fields);
34
+        public function geraLayoutSyspaplic(array $fields): GeraLayout
35
+        {
36
+            $this->syspaplic($fields);
37 37
     
38
-         return $this;
39
-     }
38
+            return $this;
39
+        }
40 40
  
41
-     /**
42
-     * @param array $fields
43
-     * @return GeraLayout
44
-     */
41
+        /**
42
+         * @param array $fields
43
+         * @return GeraLayout
44
+         */
45 45
     public function geraLayoutSyspcar(array $fields): GeraLayout
46 46
     {
47 47
         $this->syspcar($fields);
Please login to merge, or discard this patch.
src/LayoutSyspdv.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -802,8 +802,8 @@  discard block
 block discarded – undo
802 802
     }
803 803
 
804 804
     /**
805
-    * @param array $fields
806
-    */
805
+     * @param array $fields
806
+     */
807 807
     public function syspprp(array $fields): void
808 808
     {
809 809
         foreach ($fields as $data){
@@ -824,9 +824,9 @@  discard block
 block discarded – undo
824 824
     }
825 825
 
826 826
     /**
827
-    * @param array $fields
828
-    * @return array|null
829
-    */
827
+     * @param array $fields
828
+     * @return array|null
829
+     */
830 830
     public function sysppro(array $fields): void
831 831
     {
832 832
         foreach ($fields as $data){
@@ -941,8 +941,8 @@  discard block
 block discarded – undo
941 941
     }
942 942
 
943 943
     /**
944
-    * @param array $fields
945
-    */
944
+     * @param array $fields
945
+     */
946 946
     public function syspprofor(array $fields): void
947 947
     {
948 948
         foreach ($fields as $data){
@@ -961,8 +961,8 @@  discard block
 block discarded – undo
961 961
     }
962 962
 
963 963
     /**
964
-    * @param array $fields
965
-    */
964
+     * @param array $fields
965
+     */
966 966
     public function syspppl(array $fields): void
967 967
     {
968 968
         foreach ($fields as $data){
@@ -989,8 +989,8 @@  discard block
 block discarded – undo
989 989
     }
990 990
 
991 991
     /**
992
-    * @param array $fields
993
-    */
992
+     * @param array $fields
993
+     */
994 994
     public function sysppdcn(array $fields): void
995 995
     {
996 996
         foreach ($fields as $data){
@@ -1010,8 +1010,8 @@  discard block
 block discarded – undo
1010 1010
     }
1011 1011
 
1012 1012
     /**
1013
-    * @param array $fields
1014
-    */
1013
+     * @param array $fields
1014
+     */
1015 1015
     public function syspram(array $fields): void
1016 1016
     {
1017 1017
         foreach ($fields as $data){
@@ -1022,8 +1022,8 @@  discard block
 block discarded – undo
1022 1022
     }
1023 1023
 
1024 1024
     /**
1025
-    * @param array $fields
1026
-    */
1025
+     * @param array $fields
1026
+     */
1027 1027
     public function syspfab(array $fields): void
1028 1028
     {
1029 1029
         foreach ($fields as $data){
@@ -1034,8 +1034,8 @@  discard block
 block discarded – undo
1034 1034
     }
1035 1035
 
1036 1036
     /**
1037
-    * @param array $fields
1038
-    */
1037
+     * @param array $fields
1038
+     */
1039 1039
     public function syspsec(array $fields): void
1040 1040
     {
1041 1041
         foreach ($fields as $data){
@@ -1046,8 +1046,8 @@  discard block
 block discarded – undo
1046 1046
     }
1047 1047
 
1048 1048
     /**
1049
-    * @param array $fields
1050
-    */
1049
+     * @param array $fields
1050
+     */
1051 1051
     public function syspser(array $fields): void
1052 1052
     {
1053 1053
         foreach ($fields as $data){
@@ -1059,8 +1059,8 @@  discard block
 block discarded – undo
1059 1059
     }
1060 1060
 
1061 1061
     /**
1062
-    * @param array $fields
1063
-    */
1062
+     * @param array $fields
1063
+     */
1064 1064
     public function syspsbg(array $fields): void
1065 1065
     {
1066 1066
         foreach ($fields as $data){
@@ -1079,8 +1079,8 @@  discard block
 block discarded – undo
1079 1079
     }
1080 1080
 
1081 1081
     /**
1082
-    * @param array $fields
1083
-    */
1082
+     * @param array $fields
1083
+     */
1084 1084
     public function sysptxa(array $fields): void
1085 1085
     {
1086 1086
         foreach ($fields as $data){
@@ -1092,8 +1092,8 @@  discard block
 block discarded – undo
1092 1092
     }
1093 1093
 
1094 1094
     /**
1095
-    * @param array $fields
1096
-    */
1095
+     * @param array $fields
1096
+     */
1097 1097
     public function syspvdc(array $fields): void
1098 1098
     {
1099 1099
         foreach ($fields as $data){
Please login to merge, or discard this patch.
src/Helpers.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -9,51 +9,51 @@
 block discarded – undo
9 9
     /**
10 10
      * Helper constructor.
11 11
      */
12
-     public function __construct()
13
-     {
12
+        public function __construct()
13
+        {
14 14
  
15
-     }
15
+        }
16 16
  
17
-     /**
18
-     * @param string $string
19
-     * @param int $limit
20
-     * @return string
21
-     */
22
-     protected function str_limit_chars(string $string, int $limit): string
23
-     {
24
-         $string = trim(filter_var($string, FILTER_SANITIZE_SPECIAL_CHARS));
25
-         if (mb_strlen($string) <= $limit) {
26
-             return $string;
27
-         }
17
+        /**
18
+         * @param string $string
19
+         * @param int $limit
20
+         * @return string
21
+         */
22
+        protected function str_limit_chars(string $string, int $limit): string
23
+        {
24
+            $string = trim(filter_var($string, FILTER_SANITIZE_SPECIAL_CHARS));
25
+            if (mb_strlen($string) <= $limit) {
26
+                return $string;
27
+            }
28 28
  
29
-         $chars = mb_substr($string, 0, mb_strrpos(mb_substr($string, 0, $limit), "&nbsp"));
30
-         return $chars;
31
-     }
29
+            $chars = mb_substr($string, 0, mb_strrpos(mb_substr($string, 0, $limit), "&nbsp"));
30
+            return $chars;
31
+        }
32 32
  
33
-     /**
34
-     * @param string $input
35
-     * @param int $pad_length
36
-     * @param string $pad_string
37
-     * @param int $pad_style
38
-     * @param string $encoding
39
-     * @return string
40
-     */
41
-     protected function mb_str_pad(string $input, int $pad_length, string $pad_string=" ", int $pad_style=STR_PAD_RIGHT, string $encoding="UTF-8"): string
42
-     {
43
-         return str_pad($input, strlen($input)-mb_strlen($input,$encoding)+$pad_length, $pad_string, $pad_style);
44
-     } 
33
+        /**
34
+         * @param string $input
35
+         * @param int $pad_length
36
+         * @param string $pad_string
37
+         * @param int $pad_style
38
+         * @param string $encoding
39
+         * @return string
40
+         */
41
+        protected function mb_str_pad(string $input, int $pad_length, string $pad_string=" ", int $pad_style=STR_PAD_RIGHT, string $encoding="UTF-8"): string
42
+        {
43
+            return str_pad($input, strlen($input)-mb_strlen($input,$encoding)+$pad_length, $pad_string, $pad_style);
44
+        } 
45 45
  
46
-     /**
47
-     * @param string $date
48
-     * @param string $format
49
-     * @return string
50
-     * @throws Exception
51
-     */
52
-     protected function date_fmt(?string $date, string $format = "Ymd"): string
53
-     {
54
-         $date = (empty($date) ? "now" : $date);
55
-         return (new DateTime($date))->format($format);
56
-     }
46
+        /**
47
+         * @param string $date
48
+         * @param string $format
49
+         * @return string
50
+         * @throws Exception
51
+         */
52
+        protected function date_fmt(?string $date, string $format = "Ymd"): string
53
+        {
54
+            $date = (empty($date) ? "now" : $date);
55
+            return (new DateTime($date))->format($format);
56
+        }
57 57
 }
58 58
 
59 59
 
Please login to merge, or discard this patch.