@@ -69,7 +69,8 @@ abstract class PluginFlyvemdmPolicyBase implements PluginFlyvemdmPolicyInterface
69
69
protected $ specificStatuses = [];
70
70
71
71
/**
72
- * get common task statuses
72
+ * Gets common task statuses
73
+ *
73
74
* @return array
74
75
*/
75
76
public static final function getEnumBaseTaskStatus () {
@@ -89,8 +90,9 @@ public static final function getEnumBaseTaskStatus() {
89
90
}
90
91
91
92
/**
92
- * get specific task statuses
93
+ * Gets specific task statuses
93
94
* To be overriden in child class
95
+ *
94
96
* @return array
95
97
*/
96
98
public static function getEnumSpecificStatus () {
@@ -109,14 +111,15 @@ public function __construct(PluginFlyvemdmPolicy $policy) {
109
111
* JSON decode properties for the policy and merges them with default values
110
112
* @param string $properties
111
113
* @param array $defaultProperties
114
+ *
112
115
* @return array
113
116
*/
114
117
protected function jsonDecodeProperties ($ properties , array $ defaultProperties ) {
115
118
if (empty ($ properties )) {
116
119
return $ defaultProperties ;
117
- } else {
118
- $ propertyCollection = json_decode ($ properties , true );
119
120
}
121
+
122
+ $ propertyCollection = json_decode ($ properties , true );
120
123
if (empty ($ propertyCollection )) {
121
124
return $ defaultProperties ;
122
125
}
@@ -130,6 +133,7 @@ protected function jsonDecodeProperties($properties, array $defaultProperties) {
130
133
* @param mixed $itemtype
131
134
* @param integer $itemId
132
135
* @param PluginFlyvemdmNotifiableInterface $notifiable
136
+ *
133
137
* @return bool
134
138
*/
135
139
public function canApply ($ value , $ itemtype , $ itemId , PluginFlyvemdmNotifiableInterface $ notifiable ) {
@@ -141,6 +145,7 @@ public function canApply($value, $itemtype, $itemId, PluginFlyvemdmNotifiableInt
141
145
* @param mixed $itemtype
142
146
* @param integer $itemId
143
147
* @param PluginFlyvemdmNotifiableInterface $notifiable
148
+ *
144
149
* @return boolean
145
150
*/
146
151
public function unicityCheck ($ value , $ itemtype , $ itemId , PluginFlyvemdmNotifiableInterface $ notifiable ) {
@@ -161,6 +166,7 @@ public function unicityCheck($value, $itemtype, $itemId, PluginFlyvemdmNotifiabl
161
166
* @param mixed $itemtype
162
167
* @param integer $itemId
163
168
* @param PluginFlyvemdmNotifiableInterface $notifiable
169
+ *
164
170
* @return boolean
165
171
*/
166
172
public function conflictCheck ($ value , $ itemtype , $ itemId , PluginFlyvemdmNotifiableInterface $ notifiable ) {
@@ -171,6 +177,7 @@ public function conflictCheck($value, $itemtype, $itemId, PluginFlyvemdmNotifiab
171
177
* @param mixed $value
172
178
* @param mixed $itemtype
173
179
* @param integer $itemId
180
+ *
174
181
* @return bool
175
182
*/
176
183
public function integrityCheck ($ value , $ itemtype , $ itemId ) {
0 commit comments