Completed
Branch dependabot/composer/tijsverkoy... (491ea6)
by
unknown
32:00 queued 25:42
created
domain/services/capabilities/user_caps/RegFormListTableUserCapabilities.php 1 patch
Indentation   +128 added lines, -128 removed lines patch added patch discarded remove patch
@@ -9,132 +9,132 @@
 block discarded – undo
9 9
 
10 10
 class RegFormListTableUserCapabilities extends UserCapabilities
11 11
 {
12
-    /**
13
-     * @throws EE_Error
14
-     * @throws ReflectionException
15
-     */
16
-    public function userCanEditQuestion(EE_Question $question): bool
17
-    {
18
-        return $this->hasEntityCap(
19
-            'ee_edit_question',
20
-            'espresso_registration_form_edit_question',
21
-            $question->ID()
22
-        );
23
-    }
24
-
25
-
26
-    public function userCanTrashQuestions(): bool
27
-    {
28
-        return $this->hasGlobalCap(
29
-            'ee_delete_questions',
30
-            'espresso_registration_form_trash_question'
31
-        );
32
-    }
33
-
34
-
35
-    /**
36
-     * @throws EE_Error
37
-     * @throws ReflectionException
38
-     */
39
-    public function userCanTrashQuestion(EE_Question $question): bool
40
-    {
41
-        return $this->hasEntityCap(
42
-            'ee_delete_question',
43
-            'espresso_registration_form_trash_question',
44
-            $question->ID()
45
-        );
46
-    }
47
-
48
-
49
-    /**
50
-     * @throws EE_Error
51
-     * @throws ReflectionException
52
-     */
53
-    public function userCanRestoreQuestion(EE_Question $question): bool
54
-    {
55
-        return $this->hasEntityCap(
56
-            'ee_delete_question',
57
-            'espresso_registration_form_restore_question',
58
-            $question->ID()
59
-        );
60
-    }
61
-
62
-
63
-    /**
64
-     * @throws EE_Error
65
-     * @throws ReflectionException
66
-     */
67
-    public function userCanDeleteQuestion(EE_Question $question): bool
68
-    {
69
-        return $this->hasEntityCap(
70
-            'ee_delete_question',
71
-            'espresso_registration_form_delete_questions',
72
-            $question->ID()
73
-        );
74
-    }
75
-
76
-
77
-    /**
78
-     * @throws EE_Error
79
-     * @throws ReflectionException
80
-     */
81
-    public function userCanEditQuestionGroup(EE_Question_Group $question_group): bool
82
-    {
83
-        return $this->hasEntityCap(
84
-            'ee_edit_question_group',
85
-            'espresso_registration_form_edit_question_group',
86
-            $question_group->ID()
87
-        );
88
-    }
89
-
90
-
91
-    public function userCanTrashQuestionGroups(): bool
92
-    {
93
-        return $this->hasGlobalCap(
94
-            'ee_delete_question_groups',
95
-            'espresso_registration_form_trash_question_groups'
96
-        );
97
-    }
98
-
99
-
100
-    /**
101
-     * @throws EE_Error
102
-     * @throws ReflectionException
103
-     */
104
-    public function userCanTrashQuestionGroup(EE_Question_Group $question_group): bool
105
-    {
106
-        return $this->hasEntityCap(
107
-            'ee_delete_question_group',
108
-            'espresso_registration_form_trash_question_group',
109
-            $question_group->ID()
110
-        );
111
-    }
112
-
113
-
114
-    /**
115
-     * @throws EE_Error
116
-     * @throws ReflectionException
117
-     */
118
-    public function userCanRestoreQuestionGroup(EE_Question_Group $question_group): bool
119
-    {
120
-        return $this->hasEntityCap(
121
-            'ee_delete_question_group',
122
-            'espresso_registration_form_trash_question_group',
123
-            $question_group->ID()
124
-        );
125
-    }
126
-
127
-
128
-    /**
129
-     * @throws EE_Error
130
-     * @throws ReflectionException
131
-     */
132
-    public function userCanDeleteQuestionGroup(EE_Question_Group $question_group): bool
133
-    {
134
-        return $this->hasEntityCap(
135
-            'ee_delete_question_group',
136
-            'espresso_registration_form_delete_question_group',
137
-            $question_group->ID()
138
-        );
139
-    }
12
+	/**
13
+	 * @throws EE_Error
14
+	 * @throws ReflectionException
15
+	 */
16
+	public function userCanEditQuestion(EE_Question $question): bool
17
+	{
18
+		return $this->hasEntityCap(
19
+			'ee_edit_question',
20
+			'espresso_registration_form_edit_question',
21
+			$question->ID()
22
+		);
23
+	}
24
+
25
+
26
+	public function userCanTrashQuestions(): bool
27
+	{
28
+		return $this->hasGlobalCap(
29
+			'ee_delete_questions',
30
+			'espresso_registration_form_trash_question'
31
+		);
32
+	}
33
+
34
+
35
+	/**
36
+	 * @throws EE_Error
37
+	 * @throws ReflectionException
38
+	 */
39
+	public function userCanTrashQuestion(EE_Question $question): bool
40
+	{
41
+		return $this->hasEntityCap(
42
+			'ee_delete_question',
43
+			'espresso_registration_form_trash_question',
44
+			$question->ID()
45
+		);
46
+	}
47
+
48
+
49
+	/**
50
+	 * @throws EE_Error
51
+	 * @throws ReflectionException
52
+	 */
53
+	public function userCanRestoreQuestion(EE_Question $question): bool
54
+	{
55
+		return $this->hasEntityCap(
56
+			'ee_delete_question',
57
+			'espresso_registration_form_restore_question',
58
+			$question->ID()
59
+		);
60
+	}
61
+
62
+
63
+	/**
64
+	 * @throws EE_Error
65
+	 * @throws ReflectionException
66
+	 */
67
+	public function userCanDeleteQuestion(EE_Question $question): bool
68
+	{
69
+		return $this->hasEntityCap(
70
+			'ee_delete_question',
71
+			'espresso_registration_form_delete_questions',
72
+			$question->ID()
73
+		);
74
+	}
75
+
76
+
77
+	/**
78
+	 * @throws EE_Error
79
+	 * @throws ReflectionException
80
+	 */
81
+	public function userCanEditQuestionGroup(EE_Question_Group $question_group): bool
82
+	{
83
+		return $this->hasEntityCap(
84
+			'ee_edit_question_group',
85
+			'espresso_registration_form_edit_question_group',
86
+			$question_group->ID()
87
+		);
88
+	}
89
+
90
+
91
+	public function userCanTrashQuestionGroups(): bool
92
+	{
93
+		return $this->hasGlobalCap(
94
+			'ee_delete_question_groups',
95
+			'espresso_registration_form_trash_question_groups'
96
+		);
97
+	}
98
+
99
+
100
+	/**
101
+	 * @throws EE_Error
102
+	 * @throws ReflectionException
103
+	 */
104
+	public function userCanTrashQuestionGroup(EE_Question_Group $question_group): bool
105
+	{
106
+		return $this->hasEntityCap(
107
+			'ee_delete_question_group',
108
+			'espresso_registration_form_trash_question_group',
109
+			$question_group->ID()
110
+		);
111
+	}
112
+
113
+
114
+	/**
115
+	 * @throws EE_Error
116
+	 * @throws ReflectionException
117
+	 */
118
+	public function userCanRestoreQuestionGroup(EE_Question_Group $question_group): bool
119
+	{
120
+		return $this->hasEntityCap(
121
+			'ee_delete_question_group',
122
+			'espresso_registration_form_trash_question_group',
123
+			$question_group->ID()
124
+		);
125
+	}
126
+
127
+
128
+	/**
129
+	 * @throws EE_Error
130
+	 * @throws ReflectionException
131
+	 */
132
+	public function userCanDeleteQuestionGroup(EE_Question_Group $question_group): bool
133
+	{
134
+		return $this->hasEntityCap(
135
+			'ee_delete_question_group',
136
+			'espresso_registration_form_delete_question_group',
137
+			$question_group->ID()
138
+		);
139
+	}
140 140
 }
Please login to merge, or discard this patch.
core/domain/services/capabilities/PublicCapabilities.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
  */
16 16
 class PublicCapabilities extends CapCheck
17 17
 {
18
-    /**
19
-     * @return string
20
-     */
21
-    public function capability()
22
-    {
23
-        return '';
24
-    }
18
+	/**
19
+	 * @return string
20
+	 */
21
+	public function capability()
22
+	{
23
+		return '';
24
+	}
25 25
 }
Please login to merge, or discard this patch.
core/domain/services/capabilities/RequiresCapCheckInterface.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
  */
12 12
 interface RequiresCapCheckInterface
13 13
 {
14
-    /**
15
-     * @return CapCheckInterface
16
-     */
17
-    public function getCapCheck();
14
+	/**
15
+	 * @return CapCheckInterface
16
+	 */
17
+	public function getCapCheck();
18 18
 }
Please login to merge, or discard this patch.
core/domain/services/capabilities/CapCheckInterface.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -12,18 +12,18 @@
 block discarded – undo
12 12
  */
13 13
 interface CapCheckInterface
14 14
 {
15
-    /**
16
-     * @return string
17
-     */
18
-    public function capability();
15
+	/**
16
+	 * @return string
17
+	 */
18
+	public function capability();
19 19
 
20
-    /**
21
-     * @return string
22
-     */
23
-    public function context();
20
+	/**
21
+	 * @return string
22
+	 */
23
+	public function context();
24 24
 
25
-    /**
26
-     * @return int|string
27
-     */
28
-    public function ID();
25
+	/**
26
+	 * @return int|string
27
+	 */
28
+	public function ID();
29 29
 }
Please login to merge, or discard this patch.
core/domain/services/DomainService.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
  */
20 20
 abstract class DomainService implements DomainServiceInterface
21 21
 {
22
-    /**
23
-     * DomainService constructor.
24
-     */
25
-    public function __construct()
26
-    {
27
-    }
22
+	/**
23
+	 * DomainService constructor.
24
+	 */
25
+	public function __construct()
26
+	{
27
+	}
28 28
 }
Please login to merge, or discard this patch.
core/domain/services/factories/ModelFactory.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -20,17 +20,17 @@
 block discarded – undo
20 20
  */
21 21
 class ModelFactory
22 22
 {
23
-    /**
24
-     * @param string $model_name
25
-     * @return bool|EEM_Base
26
-     * @throws EE_Error
27
-     * @throws InvalidDataTypeException
28
-     * @throws InvalidInterfaceException
29
-     * @throws InvalidArgumentException
30
-     * @throws ReflectionException
31
-     */
32
-    public static function getModel($model_name)
33
-    {
34
-        return EE_Registry::instance()->load_model($model_name);
35
-    }
23
+	/**
24
+	 * @param string $model_name
25
+	 * @return bool|EEM_Base
26
+	 * @throws EE_Error
27
+	 * @throws InvalidDataTypeException
28
+	 * @throws InvalidInterfaceException
29
+	 * @throws InvalidArgumentException
30
+	 * @throws ReflectionException
31
+	 */
32
+	public static function getModel($model_name)
33
+	{
34
+		return EE_Registry::instance()->load_model($model_name);
35
+	}
36 36
 }
Please login to merge, or discard this patch.
core/domain/services/factories/EmailAddressFactory.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -18,19 +18,19 @@
 block discarded – undo
18 18
  */
19 19
 class EmailAddressFactory implements FactoryInterface
20 20
 {
21
-    /**
22
-     * @param string $email_address
23
-     * @return EmailAddress
24
-     * @throws EmailValidationException
25
-     * @throws InvalidDataTypeException
26
-     * @throws InvalidInterfaceException
27
-     * @throws InvalidArgumentException
28
-     */
29
-    public static function create($email_address)
30
-    {
31
-        return LoaderFactory::getLoader()->getNew(
32
-            'EventEspresso\core\domain\values\EmailAddress',
33
-            array($email_address)
34
-        );
35
-    }
21
+	/**
22
+	 * @param string $email_address
23
+	 * @return EmailAddress
24
+	 * @throws EmailValidationException
25
+	 * @throws InvalidDataTypeException
26
+	 * @throws InvalidInterfaceException
27
+	 * @throws InvalidArgumentException
28
+	 */
29
+	public static function create($email_address)
30
+	{
31
+		return LoaderFactory::getLoader()->getNew(
32
+			'EventEspresso\core\domain\values\EmailAddress',
33
+			array($email_address)
34
+		);
35
+	}
36 36
 }
Please login to merge, or discard this patch.
core/domain/services/factories/CartFactory.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@
 block discarded – undo
18 18
  */
19 19
 class CartFactory
20 20
 {
21
-    /**
22
-     * @return EE_Cart
23
-     * @throws InvalidArgumentException
24
-     * @throws InvalidInterfaceException
25
-     * @throws InvalidDataTypeException
26
-     */
27
-    public static function getCart()
28
-    {
29
-        return LoaderFactory::getLoader()->getShared('EE_Cart');
30
-    }
21
+	/**
22
+	 * @return EE_Cart
23
+	 * @throws InvalidArgumentException
24
+	 * @throws InvalidInterfaceException
25
+	 * @throws InvalidDataTypeException
26
+	 */
27
+	public static function getCart()
28
+	{
29
+		return LoaderFactory::getLoader()->getShared('EE_Cart');
30
+	}
31 31
 }
Please login to merge, or discard this patch.
core/domain/services/factories/FactoryInterface.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
  */
11 11
 interface FactoryInterface
12 12
 {
13
-    /**
14
-     * @param mixed $arguments Either a Fully Qualified Class Name
15
-     *                         or array of data required for construction
16
-     * @return mixed
17
-     */
18
-    public static function create($arguments);
13
+	/**
14
+	 * @param mixed $arguments Either a Fully Qualified Class Name
15
+	 *                         or array of data required for construction
16
+	 * @return mixed
17
+	 */
18
+	public static function create($arguments);
19 19
 }
Please login to merge, or discard this patch.