Skip to content

Commit

Permalink
[TASK] Fix phpcs related bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Jun 15, 2016
1 parent 6fb17ea commit c78a0ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Classes/Loader/Aspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public function prepareLoader(Loader $loader, $type)
'originClassName' => $aspectClass,
'originMethodName' => $methodReflection->getName()
];

}
}
} catch (\Exception $e) {
Expand Down
7 changes: 4 additions & 3 deletions Classes/Loader/Slots.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ public function prepareLoader(Loader $autoLoader, $type)
* @param array $slots
* @return array
*/
public function flattenSlotsByPriority(array $array) {
public function flattenSlotsByPriority(array $array)
{
krsort($array);
$result = [];
foreach($array as $priority => $slots) {
foreach($slots as $slot) {
foreach ($array as $priority => $slots) {
foreach ($slots as $slot) {
$result[] = $slot;
}
}
Expand Down
1 change: 0 additions & 1 deletion Classes/Utility/TcaUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public static function insertTabDividerBefore(&$base, $columnName, $tabTitle)

$divider = '--div--;' . $tabTitle . ',';
foreach ($base['types'] as $key => $layout) {

$tempShowitem = explode($columnName, $layout['showitem']);
$showItem = $tempShowitem[0] . $divider . $columnName . $tempShowitem[1];
$base['types'][$key]['showitem'] = $showItem;
Expand Down

0 comments on commit c78a0ed

Please sign in to comment.