Skip to content

Commit

Permalink
[TASK] PSR2 format for the exmaples
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Jun 15, 2016
1 parent 3525a1b commit 5a0a38c
Show file tree
Hide file tree
Showing 55 changed files with 67 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ public function headerAfter($object, $params)
$params['result'] .= ' <h2>ASPECT (after)</h2>';
return $params;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ class RecordList
*/
public function mainBefore($object, $params)
{
$flashMessage = new FlashMessage('If you see this message, the list view is successfully extended with aspectAdvice::before',
'AutoloaderAspect', FlashMessage::OK);
$flashMessage = new FlashMessage(
'If you see this message, the list view is successfully extended with aspectAdvice::before',
'AutoloaderAspect',
FlashMessage::OK
);

// Add FlashMessage
$flashMessageService = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessageService');
Expand All @@ -55,14 +58,16 @@ public function mainBefore($object, $params)
*/
public function mainAfter($object, $params)
{
$flashMessage = new FlashMessage('If you see this message, the list view is successfully extended with aspectAdvice::after',
'Aspect', FlashMessage::OK);
$flashMessage = new FlashMessage(
'If you see this message, the list view is successfully extended with aspectAdvice::after',
'Aspect',
FlashMessage::OK
);

// Add FlashMessage
$flashMessageService = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessageService');
/** @var $flashMessageQueue \TYPO3\CMS\Core\Messaging\FlashMessageQueue */
$flashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();
$flashMessageQueue->enqueue($flashMessage);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ public function render_previewContentAfter($object, $params)

return $params;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_aspect', ['Aspect']);
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_aspect', ['Aspect']);
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_backendlayout', ['BackendLayout']);
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_backendlayout', ['BackendLayout']);
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ public function testCommand()
public function runCommand($text, $boolTest)
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_commandcontroller', ['CommandController']);
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_commandcontroller', ['CommandController']);
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,4 @@ public function setNewTestBodyWithRte($newTestBodyWithRte)
{
$this->newTestBodyWithRte = $newTestBodyWithRte;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@ public function getNewField()
{
return $this->newField;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
'ContentObjects',
'TcaFiles',
'SmartObjects'
]);
]);
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
'ContentObjects',
'TcaFiles',
'SmartObjects'
]);
]);
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,4 @@ public function getFieldName()
{
return $this->fieldName;
}

}
}
2 changes: 1 addition & 1 deletion Resources/Private/Examples/autoloader_csh/ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
2 changes: 1 addition & 1 deletion Resources/Private/Examples/autoloader_csh/ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
'SmartObjects',
'TcaFiles',
'ContextSensitiveHelps'
]);
]);
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
* $xxx->run();
*/

echo 'Hello World!';
echo 'Hello World!';
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_extensionid', ['ExtensionId']);
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_extensionid', ['ExtensionId']);
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_gridelement', ['Gridelement']);
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_gridelement', ['Gridelement']);
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ public function addFooterContent($params, $parentObject)
</h1>
</div>';
}

}
2 changes: 1 addition & 1 deletion Resources/Private/Examples/autoloader_hooks/ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_hooks', ['Hooks']);
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_hooks', ['Hooks']);
2 changes: 1 addition & 1 deletion Resources/Private/Examples/autoloader_icon/ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
2 changes: 1 addition & 1 deletion Resources/Private/Examples/autoloader_icon/ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extTables('HDNET', 'autoloader_icon', ['Icon']);
\HDNET\Autoloader\Loader::extTables('HDNET', 'autoloader_icon', ['Icon']);
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_language', ['LanguageOverride']);
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_language', ['LanguageOverride']);
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ public function indexAction()
public function bothAction()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ public function secondAction()
public function aNoCacheAction()
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_plugin', ['Plugins']);
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_plugin', ['Plugins']);
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extTables('HDNET', 'autoloader_plugin', ['Plugins']);
\HDNET\Autoloader\Loader::extTables('HDNET', 'autoloader_plugin', ['Plugins']);
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,4 @@ protected function autoloaderTest()

return $box;
}

}
2 changes: 1 addition & 1 deletion Resources/Private/Examples/autoloader_slots/ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_slots', ['Slots']);
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_slots', ['Slots']);
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ public function getForeignModelWithoutSpecificDbAnnotation()
{
return $this->foreignModelWithoutSpecificDbAnnotation;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ public function getFile()
{
return $this->file;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ public function getList()
{
return $this->list;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_smartobject', [
'SmartObjects',
'TcaFiles'
]);
]);
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
\HDNET\Autoloader\Loader::extTables('HDNET', 'autoloader_smartobject', [
'SmartObjects',
'TcaFiles'
]);
]);
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ public function testFunction($test)
{
return 1;
}

}
2 changes: 1 addition & 1 deletion Resources/Private/Examples/autoloader_soap/ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_soap', ['SoapServer']);
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_soap', ['SoapServer']);
2 changes: 1 addition & 1 deletion Resources/Private/Examples/autoloader_soap/ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
die('Access denied.');
}

\HDNET\Autoloader\Loader::extTables('HDNET', 'autoloader_soap', ['SoapServer']);
\HDNET\Autoloader\Loader::extTables('HDNET', 'autoloader_soap', ['SoapServer']);
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ public function convertFrom(
) {
return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ public function convertFrom(
) {
return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'autoloader' => '1.11.4-9.9.9',
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'autoloader_typeconverter', [
'TypeConverter',
]);
]);

0 comments on commit 5a0a38c

Please sign in to comment.