Passed
Push — master ( cbd10b...c251ab )
by Adam
02:27
created
src/IPub/Permissions/Access/LinkChecker.php 1 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/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.
src/IPub/Permissions/Entities/Permission.php 1 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/Access/AnnotationChecker.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 use Nette\Application\UI;
21 21
 use Nette\Utils;
22 22
 use Nette\Security as NS;
23
-
24 23
 use IPub\Permissions\Entities;
25 24
 use IPub\Permissions\Exceptions;
26 25
 
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
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 namespace IPub\Permissions\Entities;
18 18
 
19 19
 use Nette;
20
-
21 20
 use IPub\Permissions\Exceptions;
22 21
 
23 22
 class Role implements IRole
Please login to merge, or discard this patch.