Passed
Branch master (1d7c8a)
by Reüel
04:55
created
Category
src/DataHelper.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -28,21 +28,21 @@  discard block
 block discarded – undo
28 28
 	 *
29 29
 	 * @var array
30 30
 	 */
31
-	private static $characters_an = array( 'A-Z', 'a-z', '0-9', ' ' );
31
+	private static $characters_an = array('A-Z', 'a-z', '0-9', ' ');
32 32
 
33 33
 	/**
34 34
 	 * Strictly alphanumerical (letters and numbers only)
35 35
 	 *
36 36
 	 * @var array
37 37
 	 */
38
-	private static $characters_ans = array( 'A-Z', 'a-z', '0-9' );
38
+	private static $characters_ans = array('A-Z', 'a-z', '0-9');
39 39
 
40 40
 	/**
41 41
 	 * Numerical
42 42
 	 *
43 43
 	 * @var array
44 44
 	 */
45
-	private static $characters_n = array( '0-9' );
45
+	private static $characters_n = array('0-9');
46 46
 
47 47
 	/**
48 48
 	 * Filter the specified characters from the string
@@ -53,13 +53,13 @@  discard block
 block discarded – undo
53 53
 	 *
54 54
 	 * @return string
55 55
 	 */
56
-	private static function filter( array $characters, $string, $max = null ) {
57
-		$pattern = '#[^' . implode( $characters ) . ']#';
56
+	private static function filter(array $characters, $string, $max = null) {
57
+		$pattern = '#[^' . implode($characters) . ']#';
58 58
 
59
-		$string = preg_replace( $pattern, '', $string );
59
+		$string = preg_replace($pattern, '', $string);
60 60
 
61
-		if ( isset( $max ) ) {
62
-			$string = substr( $string, 0, $max );
61
+		if (isset($max)) {
62
+			$string = substr($string, 0, $max);
63 63
 		}
64 64
 
65 65
 		return $string;
@@ -73,16 +73,16 @@  discard block
 block discarded – undo
73 73
 	 *
74 74
 	 * @return string
75 75
 	 */
76
-	public static function an( $string, $max = null ) {
77
-		return self::filter( self::$characters_an, $string, $max );
76
+	public static function an($string, $max = null) {
77
+		return self::filter(self::$characters_an, $string, $max);
78 78
 	}
79 79
 
80
-	public static function an16( $string ) {
81
-		return self::an( $string, 16 );
80
+	public static function an16($string) {
81
+		return self::an($string, 16);
82 82
 	}
83 83
 
84
-	public static function an32( $string ) {
85
-		return self::an( $string, 32 );
84
+	public static function an32($string) {
85
+		return self::an($string, 32);
86 86
 	}
87 87
 
88 88
 	/**
@@ -93,16 +93,16 @@  discard block
 block discarded – undo
93 93
 	 *
94 94
 	 * @return string
95 95
 	 */
96
-	public static function ans( $string, $max = null ) {
97
-		return self::filter( self::$characters_ans, $string, $max );
96
+	public static function ans($string, $max = null) {
97
+		return self::filter(self::$characters_ans, $string, $max);
98 98
 	}
99 99
 
100
-	public static function ans16( $string ) {
101
-		return self::ans( $string, 16 );
100
+	public static function ans16($string) {
101
+		return self::ans($string, 16);
102 102
 	}
103 103
 
104
-	public static function ans32( $string ) {
105
-		return self::ans( $string, 32 );
104
+	public static function ans32($string) {
105
+		return self::ans($string, 32);
106 106
 	}
107 107
 
108 108
 	/**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 	 *
114 114
 	 * @return string
115 115
 	 */
116
-	public static function n( $string, $max = null ) {
117
-		return self::filter( self::$characters_n, $string, $max );
116
+	public static function n($string, $max = null) {
117
+		return self::filter(self::$characters_n, $string, $max);
118 118
 	}
119 119
 }
Please login to merge, or discard this patch.
src/Notification.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	 *
65 65
 	 * @param DateTime $date
66 66
 	 */
67
-	public function set_date( DateTime $date ) {
67
+	public function set_date(DateTime $date) {
68 68
 		$this->date = $date;
69 69
 	}
70 70
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 *
83 83
 	 * @param string $transaction_id
84 84
 	 */
85
-	public function set_transaction_id( $transaction_id ) {
85
+	public function set_transaction_id($transaction_id) {
86 86
 		$this->transaction_id = $transaction_id;
87 87
 	}
88 88
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 *
101 101
 	 * @param string $purchase_id
102 102
 	 */
103
-	public function set_purchase_id( $purchase_id ) {
103
+	public function set_purchase_id($purchase_id) {
104 104
 		$this->purchase_id = $purchase_id;
105 105
 	}
106 106
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 *
119 119
 	 * @param string $status
120 120
 	 */
121
-	public function set_status( $status ) {
121
+	public function set_status($status) {
122 122
 		$this->status = $status;
123 123
 	}
124 124
 }
Please login to merge, or discard this patch.