Completed
Push — master ( 1932ea...b49884 )
by Adam
02:19
created
src/IPub/Permissions/Access/LinkChecker.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use Nette;
18 18
 use Nette\Application;
19 19
 use Nette\Application\UI;
20
-use Nette\Security as NS;
21 20
 
22 21
 class LinkChecker extends Nette\Object implements IChecker
23 22
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 			return FALSE;
86 86
 		}
87 87
 
88
-		$actionKey = UI\Presenter::ACTION_KEY . ucfirst($action);
88
+		$actionKey = UI\Presenter::ACTION_KEY.ucfirst($action);
89 89
 
90 90
 		if ($presenterReflection->hasMethod($actionKey) && !$this->requirementsChecker->isAllowed($presenterReflection->getMethod($actionKey))) {
91 91
 			return FALSE;
Please login to merge, or discard this patch.
src/IPub/Permissions/Access/AnnotationChecker.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 
17 17
 use Nette;
18 18
 use Nette\Utils;
19
-
20 19
 use IPub;
21 20
 use IPub\Permissions\Security;
22 21
 
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	}
72 72
 
73 73
 	/**
74
-	 * @param UI\ComponentReflection|UI\MethodReflection $element
74
+	 * @param \Reflector $element
75 75
 	 *
76 76
 	 * @return bool
77 77
 	 *
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	}
108 108
 
109 109
 	/**
110
-	 * @param UI\ComponentReflection|UI\MethodReflection $element
110
+	 * @param \Reflector $element
111 111
 	 *
112 112
 	 * @return bool
113 113
 	 *
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	}
148 148
 
149 149
 	/**
150
-	 * @param UI\ComponentReflection|UI\MethodReflection $element
150
+	 * @param \Reflector $element
151 151
 	 *
152 152
 	 * @return bool
153 153
 	 *
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 	}
182 182
 
183 183
 	/**
184
-	 * @param UI\ComponentReflection|UI\MethodReflection $element
184
+	 * @param \Reflector $element
185 185
 	 *
186 186
 	 * @return bool
187 187
 	 */
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 	}
217 217
 
218 218
 	/**
219
-	 * @param UI\ComponentReflection|UI\MethodReflection $element
219
+	 * @param \Reflector $element
220 220
 	 *
221 221
 	 * @return bool
222 222
 	 */
Please login to merge, or discard this patch.
src/IPub/Permissions/DI/PermissionsExtension.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,7 @@
 block discarded – undo
18 18
 
19 19
 use Nette;
20 20
 use Nette\DI;
21
-use Nette\PhpGenerator as Code;
22 21
 use Nette\Utils;
23
-
24 22
 use IPub;
25 23
 use IPub\Permissions;
26 24
 use IPub\Permissions\Access;
Please login to merge, or discard this patch.
src/IPub/Permissions/Entities/Permission.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,7 @@
 block discarded – undo
18 18
 
19 19
 use Nette;
20 20
 use Nette\Utils;
21
-
22 21
 use IPub;
23
-use IPub\Permissions\Security;
24 22
 
25 23
 class Permission implements IPermission
26 24
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,6 +128,6 @@
 block discarded – undo
128 128
 	 */
129 129
 	public function __toString()
130 130
 	{
131
-		return ((string) $this->resource) . self::DELIMITER . $this->privilege;
131
+		return ((string) $this->resource).self::DELIMITER.$this->privilege;
132 132
 	}
133 133
 }
Please login to merge, or discard this patch.
src/IPub/Permissions/Entities/Role.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 
17 17
 use Nette;
18 18
 use Nette\Utils;
19
-
20 19
 use IPub;
21 20
 use IPub\Permissions\Security;
22 21
 
Please login to merge, or discard this patch.
src/IPub/Permissions/Providers/PermissionsProvider.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,6 @@
 block discarded – undo
17 17
 namespace IPub\Permissions\Providers;
18 18
 
19 19
 use Nette;
20
-use Nette\Utils;
21
-
22 20
 use IPub\Permissions\Entities;
23 21
 use IPub\Permissions\Exceptions;
24 22
 
Please login to merge, or discard this patch.
src/IPub/Permissions/TPermission.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -14,11 +14,8 @@
 block discarded – undo
14 14
 
15 15
 namespace IPub\Permissions;
16 16
 
17
-use Nette;
18 17
 use Nette\Application;
19
-
20 18
 use IPub;
21
-use IPub\Permissions\Security;
22 19
 
23 20
 /**
24 21
  * Helper trait
Please login to merge, or discard this patch.
src/IPub/Permissions/Latte/Macros.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,6 +114,6 @@
 block discarded – undo
114 114
 	 */
115 115
 	public function macroHref(MacroNode $node, PhpWriter $writer) : string
116 116
 	{
117
-		return $writer->write(' ?> href="<?php echo %escape(' . ($node->name === 'plink' ? '$_presenter' : '$_control') . '->link(%node.word, %node.array?)) ?>"<?php ');
117
+		return $writer->write(' ?> href="<?php echo %escape('.($node->name === 'plink' ? '$_presenter' : '$_control').'->link(%node.word, %node.array?)) ?>"<?php ');
118 118
 	}
119 119
 }
Please login to merge, or discard this patch.